# Create image generation

```http
POST /projects/{project_reference}/image-generations
```

Generate 1 to 10 images from a text prompt with the EU image model and return their URLs; every image is billed in credits. Requires project.files.write.

## Parameters

| Name                | In   | Required | Description                                                |
| ------------------- | ---- | -------- | ---------------------------------------------------------- |
| `project_reference` | path | Yes      | Project slug, UUID, or domain that identifies the project. |

## Request body

| Field    | Type    | Required | Description                                                 |
| -------- | ------- | -------- | ----------------------------------------------------------- |
| `prompt` | string  | Yes      | Text description of the desired image (max 1000 characters) |
| `count`  | integer |          | Number of images to generate (1-10, default: 1)             |
| `seed`   | integer |          | Random seed for reproducible generation                     |

## Responses

| Status | Description                                                                                                                                                |
| ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 200    | Images are generated by the EU Azure FLUX.2-pro deployment and stored as project uploads. Returned as API upload URLs.                                     |
| 400    | Invalid input - prompt too long or invalid count                                                                                                           |
| 401    | Unauthorized                                                                                                                                               |
| 402    | Payment required - not enough credits for the first image                                                                                                  |
| 403    | Forbidden - insufficient permissions                                                                                                                       |
| 404    | Project not found                                                                                                                                          |
| 500    | Server error - Image generation failed                                                                                                                     |
| 503    | Service unavailable - Image generation not configured, the AI provider spend limit is reached, provider spend cannot be verified, or no image was produced |
