# Imágenes

| Endpoint | Body |
|---|---|
| `POST /v1/images/generations` | JSON: `model`, `prompt`, `n`, `size`, `response_format` |
| `POST /v1/images/edits` | multipart: `image`, `prompt`, `mask` opcional |
| `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": "<modelo de imagen>", "prompt": "un faro al atardecer", "n": 1, "size": "1024x1024"}'
```

El modelo tiene que generar imágenes: `GET /v1/models?output_modalities=image`.
La respuesta la decide el proveedor (`b64_json` o `url`, según `response_format`).
