Images
POST /v1/images/generations
Request body
| Field | Type | Required | Description |
|---|---|---|---|
model | string | required | Image model id, e.g. black-forest-labs/FLUX-1.1-pro. |
prompt | string | required | Text prompt. |
n | integer | default: 1 | 1–4 images. |
size | string | default: 1024x1024 | 512x512 · 768x768 · 1024x1024 · 1024x768 · 768x1024. |
Example
curl https://api.aix.theaimart.co/v1/images/generations \
-H "Authorization: Bearer $AIX_KEY" \
-H "Content-Type: application/json" \
-d '{ "model": "black-forest-labs/FLUX-1.1-pro", "prompt": "a red apple", "size": "1024x1024" }'
Response
{
"created": 1718900000,
"data": [{ "b64_json": "iVBORw0KGgo…" }]
}
Each item contains b64_json (base64 image data) or a temporary url, according to the
selected model’s output mode. Billed per image (n × price).