Images
POST /v1/images/generations — text-to-image, using the OpenAI images schema.
Request
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 black titanium monolith, studio light",
"n": 1,
"size": "1024x1024"
}'
img = client.images.generate(
model="black-forest-labs/FLUX-1.1-pro",
prompt="a black titanium monolith, studio light",
size="1024x1024",
)
Parameters
| Field | Type | Notes |
|---|---|---|
model | string | Required. e.g. black-forest-labs/FLUX-1.1-pro. |
prompt | string | Required. |
n | int | 1–4. Default 1. |
size | string | 512x512, 768x768, 1024x1024, 1024x768, 768x1024. |
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. Billing is per image (n × price).