> ## Documentation Index
> Fetch the complete documentation index at: https://snowseo.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Generate AI Image

> Generate an AI image from a text prompt.

Generate an AI image from a text prompt and add it to the team's media library. Returns the hosted image URL and a generated caption.

### Request body

| Field    | Type   | Description                                        |
| -------- | ------ | -------------------------------------------------- |
| `prompt` | string | **Required.** Image description, 1–250 characters. |
| `teamId` | string | **Required.** Team the image belongs to.           |

### Response

| Field     | Type   | Description                         |
| --------- | ------ | ----------------------------------- |
| `url`     | string | Hosted URL of the generated image.  |
| `caption` | string | AI-generated caption for the image. |

<Note>
  This endpoint consumes credits — image generation is billed to the organization. Requires an active plan and team membership.
</Note>
