API
Images endpoint
POST /api/v1/images — generate an image on your connected provider key and fetch it back by id.
On this page
Request
POST /api/v1/images generates one image on your connected key for the model's provider (OpenAI, xAI, Google, or OpenRouter catalog models on paid plans) and saves it privately to your account.
| Field | Type | Notes |
|---|---|---|
prompt | string (required) | What to draw. |
model | string (optional) | An image model id. Omit to use the first model your connected providers offer. |
size | string (optional) | A size the model supports, e.g. 1024x1024 or an aspect preset like 16:9. |
quality | string (optional) | A quality tier the model supports, e.g. auto, high, 2K. |
curl https://www.lumivoralabs.com/api/v1/images \
-H "Authorization: Bearer lv_live_..." \
-H "Content-Type: application/json" \
-d '{ "prompt": "A lighthouse at dusk, cinematic light" }'Response
{
"image": {
"id": "9b1f...",
"provider": "openai",
"modelId": "...",
"modelLabel": "...",
"prompt": "A lighthouse at dusk, cinematic light",
"size": "1024x1024",
"quality": "auto",
"contentType": "image/png",
"byteSize": 1843200,
"createdAt": "2026-12-01T12:00:00.000Z",
"url": "/api/v1/images/9b1f..."
},
"credits": { "charged": 1, "remaining": 1998 }
}If the image is created by your provider but cannot be saved, the run is not charged and the error says so.
Fetch the image
GET /api/v1/images/:id streams the image bytes with its stored content type. The id is scoped to your account — another account's id returns 404. Authentication is the same Bearer key.
Questions this page does not answer? Email support@lumivoralabs.com.
