# Images

| Endpoint | Body |
|---|---|
| `POST /v1/images/generations` | JSON: `model`, `prompt`, `n`, `size`, `response_format` |
| `POST /v1/images/edits` | multipart: `image`, `prompt`, optional `mask` |
| `POST /v1/images/variations` | multipart: `image` |

```bash
curl "$APIX_BASE/v1/images/generations" \
  -H "Authorization: Bearer $APIX_KEY" \
  -H "content-type: application/json" \
  -d '{"model": "<image model>", "prompt": "a lighthouse at dusk", "n": 1, "size": "1024x1024"}'
```

The model must generate images: `GET /v1/models?output_modalities=image`. The
provider decides the reply (`b64_json` or `url`, depending on `response_format`).
