CQTAI
Sora Image · Image

Synchronous call (GPT-Image)NEW

📌 What is thisGenerate an image synchronously via the OpenAI Images protocol — a single request returns the image (url or b64_json), no polling.
💡 When to useUse when you want the result synchronously (no polling), or already use an OpenAI SDK / images client.
Synchronous callThis synchronous endpoint uses the OpenAI Images protocol and is offered in parallel with the async sora channel (POST /api/cqt/generator/sora); a single request returns the image directly — no taskId, no polling. ⚠ Pricing differs from the async sora channel: here gpt-image-1 / 1.5 / 2 are all 6/img; the async sora channel is 4 / 6 / 12. Image-to-image / variations use multipart /v1/images/edits and /v1/images/variations.

Endpoints

UsageMethodPath
Synchronous callPOST/v1/images/generations
🔗 ProtocolOpenAI Images protocol · a single request returns the result directly — no taskId, no polling

Request Parameters

ParamTypeRequiredDescription
modelstringRequiredgpt-image-1 / gpt-image-1.5 / gpt-image-2 (all 6/img)
promptstringRequiredImage description
nintegerNumber of images; billed x n when >1, default 1
sizestringOutput size (official pixels, default 1024x1024)
qualitystringQuality: low / medium / high / auto
response_formatstringurl or b64_json (gpt-image-1 often returns b64_json)

Request Example

curl -X POST https://api.cqtai.com/v1/images/generations \
  -H 'Authorization: Bearer <API_KEY>' \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "gpt-image-2",
    "prompt": "a red panda astronaut, studio lighting",
    "n": 1,
    "size": "1024x1024"
  }'
# -> { "created": 1710000000, "data": [{ "url": "https://.../image.png" }] }

Response Example

{
  "created": 1710000000,
  "data": [
    { "url": "https://.../image.png" }
  ]
}

Billing & Credits

gpt-image-1 / gpt-image-1.5 / gpt-image-2 all 6 credits/img x n (this sync channel; differs from the async sora channel 4/6/12) (x your user rate). Auto-refunded on failure.