TheaimartAIx DOCS
Home Get API key

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

FieldTypeNotes
modelstringRequired. e.g. black-forest-labs/FLUX-1.1-pro.
promptstringRequired.
nint1–4. Default 1.
sizestring512x512, 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).

Last updated July 18, 2026

Was this page helpful?