---
title: "Generate Image"
method: POST
path: "/v1/teams/{team_id}/artifacts/generate"
tags: ["artifacts"]
---

# Generate Image

`POST /v1/teams/{team_id}/artifacts/generate`

## Request

- Base URL: `https://api.stormy.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.stormy.ai/v1/teams/{team_id}/artifacts/generate`
- Auth: none declared

Make a new image from a prompt and keep it as an artifact.

The bytes land in the same store as a customer's photo, which is what
makes them usable: an id to attach or file, signed access for the bytes,
and the automatic vision readback that lets a text-only lane know what
the picture actually shows.

## Path parameters

- `team_id` string, uuid, required

## Headers

- `authorization` string, nullable
- `x-darwin-token` string, nullable
- `x-darwin-run-id` string, nullable

## Request body

- GenerateImageRequest
  - `prompt` string, required
  - `title` string, nullable
  - `aspect_ratio` string
  - `quality` string, nullable
  - `kind` string
  - `work_item_id` string, uuid, nullable
  - `source_execution_type` string, nullable
  - `source_execution_id` string, uuid, nullable
  - `metadata` object
  - `idempotency_key` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/stormy/apis/stormy-control-plane.md) · [All operations](https://skmtc.dev/stormy/apis/stormy-control-plane/llms.txt) · [OpenAPI document](https://skmtc.dev/stormy/apis/stormy-control-plane/revisions/a40e83844eaa?raw)
