Model Library
GPT Image 2 — Image generation API
| Item | Value |
|---|---|
| Model | gpt-image-2 |
| Alias | openai/gpt-image-2 |
| Endpoint | POST https://api.quotaflow.ai/openai/v1/images/generations |
| Execution | Synchronous V3 runtime |
| Billing | Immutable 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
- Streaming (
streamandpartial_images) is unavailable; requests using it are rejected. images[].file_idandmask.file_id: OpenAI supports files uploaded to the caller's own OpenAI account (Files API, purposevision); we cannot read that account, so sendimage_url(an https URL or a base64 data URL) or multipartimage[]/maskinstead.userandsafety_identifierare accepted and forwarded upstream as a keyed-hashsafety_identifier(a non-emptysafety_identifierwins overuser; the raw value is never sent).response_format: OpenAI's GPT image models refuseresponse_formatentirely (measured); we accepturl(the link is valid for 24 hours, measured) andb64_json.- Today, omitted
qualitydefaults tomedium;size=autois sent upstream as1024x1024.