Quotaflow
llms.txtOpenAPIDashboard
Model Library

GPT Image 2 — Image generation API

ItemValue
Modelgpt-image-2
Aliasopenai/gpt-image-2
EndpointPOST https://api.quotaflow.ai/openai/v1/images/generations
ExecutionSynchronous V3 runtime
BillingImmutable token-based Image2 BillingFact
curl https://api.quotaflow.ai/openai/v1/images/generations \
  -H "Authorization: Bearer $QUOTAFLOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-image-2",
    "prompt": "A clean editorial illustration of an AI workflow.",
    "size": "1024x1024",
    "quality": "medium",
    "response_format": "b64_json"
  }'

The active V3 profile is generation-only. Image edits, masks, multi-reference edits, async jobs, and Responses image_generation remain unavailable until each capability has its own signed audit receipt and snapshot entry. They do not fall back to legacy execution.

Request parameters

For gpt-image-2, size accepts arbitrary WIDTHxHEIGHT strings when both dimensions are divisible by 16, the aspect ratio is between 1:3 and 3:1, and the size is at most 3840x2160, with 655,360 to 8,294,400 total pixels. background=transparent requires output_format=png or webp; partial_images returns HTTP 400 because streaming is unavailable; background, moderation, and output_compression are forwarded upstream.

Not supported / differences from OpenAI