# Generate a picture from a description

`POST /creative/images` · Rivier · files

Generate a picture from a description. The brand kit is applied, the plan allowance is checked first, and the result is saved in the asset library as an AI-generated draft waiting for review. Answers 409 not_configured when no picture model is connected, and 422 safety_refusal when the provider declines the description.

- Scope: files:write
- Mcp: rivier_creative_image_generate
- Graphql: Mutation.filesCreativeImage
- Sdk: files.creative.image
- Cli: files creative image

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "prompt": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2000,
      "description": "What the picture should show."
    },
    "aspect": {
      "type": "string",
      "enum": [
        "square",
        "landscape",
        "portrait",
        "wide",
        "tall"
      ],
      "description": "The shape: square, landscape, portrait, wide or tall."
    },
    "seed": {
      "type": "integer",
      "minimum": 0,
      "maximum": 4294967295
    },
    "purpose": {
      "type": "string",
      "maxLength": 80,
      "description": "Where it will be used, for example a campaign or a page; kept as a tag on the asset."
    },
    "modelId": {
      "type": "string",
      "maxLength": 80
    },
    "useBrandKit": {
      "type": "boolean",
      "description": "Apply the project's brand colours and style to the description. On unless false."
    }
  },
  "required": [
    "prompt"
  ],
  "additionalProperties": false
}
```

## Responses

- `201`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/creative/images' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "prompt": "string"
}'
```
