curl --request POST \ --url https://aireiter.com/api/openapi/submit \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "gpt_image_2_6_flare", "params": { "prompt": "A flat vector style poster: a fox sitting under a crescent moon, title text \"NIGHT SHIFT\", solid color blocks, white background", "aspect_ratio": "16:9", "resolution": "1K" }, "out_task_id": "my_task_123456" }'
curl --request POST \ --url https://aireiter.com/api/openapi/submit \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "gpt_image_2_6_sunburst", "params": { "prompt": "Change the orange cube into a cardboard box, keep the rest of the image unchanged", "image_url": ["https://example.com/product.png"], "aspect_ratio": "1:1", "resolution": "2K" }, "out_task_id": "my_task_edit_001" }'
curl --request POST \ --url https://aireiter.com/api/openapi/submit \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "gpt_image_2_6_flare", "params": { "prompt": "A flat vector style poster: a fox sitting under a crescent moon, title text \"NIGHT SHIFT\", solid color blocks, white background", "size": "2048x1152" }, "out_task_id": "my_task_size_001" }'
curl --request POST \ --url https://aireiter.com/api/openapi/submit \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "gpt_image_2_6_flare", "params": { "prompt": "A kitten wearing a red paw-print scarf stands up and waves its paw, cozy living room, returns to initial pose after waving, seamless loop", "output_format": "gif", "aspect_ratio": "1:1", "frame_count": 9, "frame_duration_ms": 200 }, "out_task_id": "my_task_gif_001" }'
import requestsurl = "https://aireiter.com/api/openapi/submit"payload = { "model": "gpt_image_2_6_flare", "params": { "prompt": "A flat vector style poster: a fox sitting under a crescent moon, title text \"NIGHT SHIFT\", solid color blocks, white background", "aspect_ratio": "16:9", "resolution": "1K" }, "out_task_id": "my_task_123456"}headers = { "Authorization": "Bearer <token>", "Content-Type": "application/json"}response = requests.post(url, json=payload, headers=headers)print(response.json())
const url = "https://aireiter.com/api/openapi/submit";const payload = { model: "gpt_image_2_6_flare", params: { prompt: "A flat vector style poster: a fox sitting under a crescent moon, title text \"NIGHT SHIFT\", solid color blocks, white background", aspect_ratio: "16:9", resolution: "1K" }, out_task_id: "my_task_123456"};fetch(url, { method: "POST", headers: { Authorization: "Bearer <token>", "Content-Type": "application/json" }, body: JSON.stringify(payload)}) .then((response) => response.json()) .then((data) => console.log(data));
package mainimport ( "bytes" "encoding/json" "fmt" "io" "net/http")func main() { url := "https://aireiter.com/api/openapi/submit" payload := map[string]interface{}{ "model": "gpt_image_2_6_flare", "params": map[string]interface{}{ "prompt": "A flat vector style poster: a fox sitting under a crescent moon, title text \"NIGHT SHIFT\", solid color blocks, white background", "aspect_ratio": "16:9", "resolution": "1K", }, "out_task_id": "my_task_123456", } jsonData, _ := json.Marshal(payload) req, _ := http.NewRequest("POST", url, bytes.NewBuffer(jsonData)) req.Header.Set("Authorization", "Bearer <token>") req.Header.Set("Content-Type", "application/json") resp, err := http.DefaultClient.Do(req) if err != nil { panic(err) } defer resp.Body.Close() body, _ := io.ReadAll(resp.Body) fmt.Println(string(body))}
{ "error": { "code": 401, "message": "Authentication failed, please check your API key" }}
{ "error": { "code": 500, "message": "Internal server error, please try again later" }}
GPT-Image-2.6
GPT-Image-2.6 Image Generation
Asynchronous processing mode, returns a task ID for subsequent queries
OpenAI GPT-Image 2.6 family: Flare (faster image generation) and Sunburst (greater emphasis on detail and editing fidelity)
Supports text-to-image / image-to-image / reference image editing, with up to 10 reference images
Supports 14 aspect ratios (including auto), passed via aspect_ratio
Supports resolution tiers of 1K / 2K / 4K, as well as API-exclusive custom size in pixels
Supports animated GIF output: pass gif to output_format, with configurable frame count (2–9) and duration per frame
Each request returns 1 image (PNG or GIF)
Submitted prompts undergo platform sensitive word / safety review, and violating content will be directly rejected
POST
/
api
/
openapi
/
submit
curl --request POST \ --url https://aireiter.com/api/openapi/submit \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "gpt_image_2_6_flare", "params": { "prompt": "A flat vector style poster: a fox sitting under a crescent moon, title text \"NIGHT SHIFT\", solid color blocks, white background", "aspect_ratio": "16:9", "resolution": "1K" }, "out_task_id": "my_task_123456" }'
curl --request POST \ --url https://aireiter.com/api/openapi/submit \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "gpt_image_2_6_sunburst", "params": { "prompt": "Change the orange cube into a cardboard box, keep the rest of the image unchanged", "image_url": ["https://example.com/product.png"], "aspect_ratio": "1:1", "resolution": "2K" }, "out_task_id": "my_task_edit_001" }'
curl --request POST \ --url https://aireiter.com/api/openapi/submit \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "gpt_image_2_6_flare", "params": { "prompt": "A flat vector style poster: a fox sitting under a crescent moon, title text \"NIGHT SHIFT\", solid color blocks, white background", "size": "2048x1152" }, "out_task_id": "my_task_size_001" }'
curl --request POST \ --url https://aireiter.com/api/openapi/submit \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "gpt_image_2_6_flare", "params": { "prompt": "A kitten wearing a red paw-print scarf stands up and waves its paw, cozy living room, returns to initial pose after waving, seamless loop", "output_format": "gif", "aspect_ratio": "1:1", "frame_count": 9, "frame_duration_ms": 200 }, "out_task_id": "my_task_gif_001" }'
import requestsurl = "https://aireiter.com/api/openapi/submit"payload = { "model": "gpt_image_2_6_flare", "params": { "prompt": "A flat vector style poster: a fox sitting under a crescent moon, title text \"NIGHT SHIFT\", solid color blocks, white background", "aspect_ratio": "16:9", "resolution": "1K" }, "out_task_id": "my_task_123456"}headers = { "Authorization": "Bearer <token>", "Content-Type": "application/json"}response = requests.post(url, json=payload, headers=headers)print(response.json())
const url = "https://aireiter.com/api/openapi/submit";const payload = { model: "gpt_image_2_6_flare", params: { prompt: "A flat vector style poster: a fox sitting under a crescent moon, title text \"NIGHT SHIFT\", solid color blocks, white background", aspect_ratio: "16:9", resolution: "1K" }, out_task_id: "my_task_123456"};fetch(url, { method: "POST", headers: { Authorization: "Bearer <token>", "Content-Type": "application/json" }, body: JSON.stringify(payload)}) .then((response) => response.json()) .then((data) => console.log(data));
package mainimport ( "bytes" "encoding/json" "fmt" "io" "net/http")func main() { url := "https://aireiter.com/api/openapi/submit" payload := map[string]interface{}{ "model": "gpt_image_2_6_flare", "params": map[string]interface{}{ "prompt": "A flat vector style poster: a fox sitting under a crescent moon, title text \"NIGHT SHIFT\", solid color blocks, white background", "aspect_ratio": "16:9", "resolution": "1K", }, "out_task_id": "my_task_123456", } jsonData, _ := json.Marshal(payload) req, _ := http.NewRequest("POST", url, bytes.NewBuffer(jsonData)) req.Header.Set("Authorization", "Bearer <token>") req.Header.Set("Content-Type", "application/json") resp, err := http.DefaultClient.Do(req) if err != nil { panic(err) } defer resp.Body.Close() body, _ := io.ReadAll(resp.Body) fmt.Println(string(body))}
{ "error": { "code": 401, "message": "Authentication failed, please check your API key" }}
{ "error": { "code": 500, "message": "Internal server error, please try again later" }}
GPT-Image 2.6 has two model names in AIReiter: gpt_image_2_6_flare and gpt_image_2_6_sunburst, with no standalone gpt_image_2_6. The parameters for both models are completely identical.output_format can be png (default) or gif. This endpoint does not expose quality, output_n, or background, nor does it support SVG vector graphics and mask / selection local editing.
All endpoints require Bearer Token authenticationGet the API key:Visit the API Key Management page to get your API KeyAdd to the request header when using:
Supports Chinese and English; detailed descriptions are recommended
When editing images, clearly specify what to change and what must remain unchanged
If a transparent background is required, please specify directly in the prompt (e.g., “transparent background”); whether it is transparent is determined by the model
Submissions undergo platform sensitive words / safety moderation; any violating content will directly return an error
gif - Looping animated image, used with frame_count and frame_duration_ms
When gif, image_url reference images are not supported (passing them will cause the task to fail), resolution is not used, and aspect_ratio only supports auto, 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3; passing other ratios returns 400.
Only aspect ratio strings or auto are supported; passing pixel dimensions (e.g., 1024x1024) will return an error directly. If exact pixels are needed, please use size.
Custom pixel dimensions (API only, mutually exclusive with aspect_ratio / resolution)Format is widthxheight, for example 2048x1536, 3840x2160.Usage Limitations:
Format must be ^\d+x\d+$
Both width and height must be multiples of 16
Each side must not exceed 3840
Long side / short side must not exceed 3:1
Total pixels (width × height) must be between 655,360 ~ 8,294,400
Mutually exclusive with aspect_ratio and resolution; passing them simultaneously returns 400
When gif, it will be converted proportionally to the closest GIF frame size (see the GIF frame size table below)
GPT-Image 2.6 is an asynchronous image generation model. After submitting a task, please use out_task_id to query the task status. You can also refer to Get Task Status.
After the query succeeds and is completed, the output array in the response will contain the generated image (PNG or GIF).In actual testing, a single 1K image takes about 25–45 seconds to complete, and a GIF takes about 25–70 seconds. Sunburst is usually slightly slower than Flare; the higher the resolution and the more reference images, the longer it takes. Please continue polling and do not submit repeatedly.
When only prompt is passed, it is text-to-image; when image_url is passed, it performs editing based on the reference image, and parts not mentioned in the prompt will be kept unchanged as much as possible.
Each request returns only 1 image; if multiple images are needed, please submit them separately.
The default output is PNG; pass output_format: "gif" to output a looping animated GIF.
GIFs are generated based only on prompt. Please clearly describe the subject, action, and looping method in the prompt (e.g., “wave and return to the initial pose”); the simpler the action, the more coherent the frames.
The 4K tier is suitable for scenarios requiring large-format delivery; for realistic images with high detail requirements, it is recommended to first use 1K / 2K to confirm the composition before generating 4K.
curl --request POST \ --url https://aireiter.com/api/openapi/submit \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "gpt_image_2_6_flare", "params": { "prompt": "A flat vector style poster: a fox sitting under a crescent moon, title text \"NIGHT SHIFT\", solid color blocks, white background", "aspect_ratio": "16:9", "resolution": "1K" }, "out_task_id": "my_task_123456" }'
curl --request POST \ --url https://aireiter.com/api/openapi/submit \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "gpt_image_2_6_sunburst", "params": { "prompt": "Change the orange cube into a cardboard box, keep the rest of the image unchanged", "image_url": ["https://example.com/product.png"], "aspect_ratio": "1:1", "resolution": "2K" }, "out_task_id": "my_task_edit_001" }'
curl --request POST \ --url https://aireiter.com/api/openapi/submit \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "gpt_image_2_6_flare", "params": { "prompt": "A flat vector style poster: a fox sitting under a crescent moon, title text \"NIGHT SHIFT\", solid color blocks, white background", "size": "2048x1152" }, "out_task_id": "my_task_size_001" }'
curl --request POST \ --url https://aireiter.com/api/openapi/submit \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "gpt_image_2_6_flare", "params": { "prompt": "A kitten wearing a red paw-print scarf stands up and waves its paw, cozy living room, returns to initial pose after waving, seamless loop", "output_format": "gif", "aspect_ratio": "1:1", "frame_count": 9, "frame_duration_ms": 200 }, "out_task_id": "my_task_gif_001" }'
import requestsurl = "https://aireiter.com/api/openapi/submit"payload = { "model": "gpt_image_2_6_flare", "params": { "prompt": "A flat vector style poster: a fox sitting under a crescent moon, title text \"NIGHT SHIFT\", solid color blocks, white background", "aspect_ratio": "16:9", "resolution": "1K" }, "out_task_id": "my_task_123456"}headers = { "Authorization": "Bearer <token>", "Content-Type": "application/json"}response = requests.post(url, json=payload, headers=headers)print(response.json())
const url = "https://aireiter.com/api/openapi/submit";const payload = { model: "gpt_image_2_6_flare", params: { prompt: "A flat vector style poster: a fox sitting under a crescent moon, title text \"NIGHT SHIFT\", solid color blocks, white background", aspect_ratio: "16:9", resolution: "1K" }, out_task_id: "my_task_123456"};fetch(url, { method: "POST", headers: { Authorization: "Bearer <token>", "Content-Type": "application/json" }, body: JSON.stringify(payload)}) .then((response) => response.json()) .then((data) => console.log(data));
package mainimport ( "bytes" "encoding/json" "fmt" "io" "net/http")func main() { url := "https://aireiter.com/api/openapi/submit" payload := map[string]interface{}{ "model": "gpt_image_2_6_flare", "params": map[string]interface{}{ "prompt": "A flat vector style poster: a fox sitting under a crescent moon, title text \"NIGHT SHIFT\", solid color blocks, white background", "aspect_ratio": "16:9", "resolution": "1K", }, "out_task_id": "my_task_123456", } jsonData, _ := json.Marshal(payload) req, _ := http.NewRequest("POST", url, bytes.NewBuffer(jsonData)) req.Header.Set("Authorization", "Bearer <token>") req.Header.Set("Content-Type", "application/json") resp, err := http.DefaultClient.Do(req) if err != nil { panic(err) } defer resp.Body.Close() body, _ := io.ReadAll(resp.Body) fmt.Println(string(body))}
{ "error": { "code": 401, "message": "Authentication failed, please check your API key" }}
{ "error": { "code": 500, "message": "Internal server error, please try again later" }}
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"AIReiter","colors":{"primary":"#2563EB","light":"#2563EB","dark":"#3B82F6"},"favicon":"https://mintcdn.com/none-ddc89343/TN7VcsS1Y5LyZOIO/favicon.svg?fit=max\u0026auto=format\u0026n=TN7VcsS1Y5LyZOIO\u0026q=85\u0026s=dec8ef99945d8ca995297b7888deeef3","navbar":{"primary":{"type":"button","label":"Dashboard","href":"https://aireiter.com"}},"footer":{"socials":{"x":"https://x.com/mintlify","github":"https://github.com/mintlify","linkedin":"https://linkedin.com/company/mintlify"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"languages":[{"language":"zh","href":"zh/overview"},{"language":"en","href":"en/overview"},{"language":"ja","href":"ja/overview"},{"language":"ko","href":"ko/overview"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"none-ddc89343","hasAudioNarration":false,"actualSubdomain":"none-ddc89343","customDomains":["docs.aireiter.com"],"gitSource":{"type":"github","owner":"liushayusha","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{},"buildId":"6aed73593b3043bfd6ed65cb","clientVersion":"0.0.4087","searchFilterCounts":[{"language":"en","tag":"Image Series","count":33},{"language":"ja","tag":"画像シリーズ","count":33},{"language":"ko","tag":"이미지 시리즈","count":33},{"language":"zh","tag":"图片系列","count":33},{"language":"en","tag":"Video Series","count":25},{"language":"ja","tag":"動画シリーズ","count":25},{"language":"ko","tag":"비디오 시리즈","count":25},{"language":"zh","tag":"视频系列","count":25},{"language":"en","tag":"Audio Series","count":14},{"language":"ja","tag":"オーディオシリーズ","count":14},{"language":"ko","tag":"오디오 시리즈","count":14},{"language":"zh","tag":"音频系列","count":14},{"language":"en","tag":"Flow Music","count":9},{"language":"ja","tag":"Flow Music","count":9},{"language":"ko","tag":"Flow Music","count":9},{"language":"zh","tag":"Flow Music","count":9},{"language":"en","tag":"Suno","count":4},{"language":"en","tag":"Text Series","count":4},{"language":"ja","tag":"Suno","count":4},{"language":"ja","tag":"テキストシリーズ","count":4},{"language":"ko","tag":"Suno","count":4},{"language":"ko","tag":"텍스트 시리즈","count":4},{"language":"zh","tag":"Suno","count":4},{"language":"zh","tag":"文字系列","count":4},{"language":"en","tag":"Midjourney V7","count":3},{"language":"en","tag":"Midjourney V8.1","count":3},{"language":"ja","tag":"Midjourney V7","count":3},{"language":"ja","tag":"Midjourney V8.1","count":3},{"language":"ko","tag":"Midjourney V7","count":3},{"language":"ko","tag":"Midjourney V8.1","count":3},{"language":"zh","tag":"Midjourney V7","count":3},{"language":"zh","tag":"Midjourney V8.1","count":3},{"language":"en","tag":"GPT-Image-2","count":2},{"language":"en","tag":"Grok Imagine Image 2.0","count":2},{"language":"ja","tag":"GPT-Image-2","count":2},{"language":"ja","tag":"Grok Imagine Image 2.0","count":2},{"language":"ko","tag":"GPT-Image-2","count":2},{"language":"ko","tag":"Grok Imagine Image 2.0","count":2},{"language":"zh","tag":"GPT-Image-2","count":2},{"language":"zh","tag":"Grok Imagine Image 2.0","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"en/api-reference/images/gpt-image-2-6/generation","slug":"/en/api-reference/images/gpt-image-2-6/generation","pageMetadata":{"title":"GPT-Image-2.6 Image Generation","description":"- Asynchronous processing mode, returns a task ID for subsequent queries\n- OpenAI GPT-Image 2.6 family: Flare (faster image generation) and Sunburst (greater emphasis on detail and editing fidelity)\n- Supports text-to-image / image-to-image / reference image editing, with up to 10 reference images\n- Supports 14 aspect ratios (including auto), passed via aspect_ratio\n- Supports resolution tiers of 1K / 2K / 4K, as well as API-exclusive custom size in pixels\n- Supports animated GIF output: pass gif to output_format, with configurable frame count (2–9) and duration per frame\n- Each request returns 1 image (PNG or GIF)\n- Submitted prompts undergo platform sensitive word / safety review, and violating content will be directly rejected\n","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/images/gpt-image-2-6/generation"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n li: \"li\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.ul, {\n children: [\"\\n\", _jsx(_components.li, {\n children: \"Asynchronous processing mode, returns a task ID for subsequent queries\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"OpenAI GPT-Image 2.6 family: Flare (faster image generation) and Sunburst (greater emphasis on detail and editing fidelity)\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Supports text-to-image / image-to-image / reference image editing, with up to 10 reference images\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Supports 14 aspect ratios (including auto), passed via aspect_ratio\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Supports resolution tiers of 1K / 2K / 4K, as well as API-exclusive custom size in pixels\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Supports animated GIF output: pass gif to output_format, with configurable frame count (2–9) and duration per frame\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Each request returns 1 image (PNG or GIF)\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Submitted prompts undergo platform sensitive word / safety review, and violating content will be directly rejected\"\n }), \"\\n\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];const apiKeyUrl=`https://aireiter.com/keys`;function _createMdxContent(props){const _components={a:`a`,blockquote:`blockquote`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Note,ParamField,ResponseField,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(Note,{children:[_jsxs(_components.p,{children:[`GPT-Image 2.6 has two model names in AIReiter: `,_jsx(_components.code,{children:`gpt_image_2_6_flare`}),` and `,_jsx(_components.code,{children:`gpt_image_2_6_sunburst`}),`, with no standalone `,_jsx(_components.code,{children:`gpt_image_2_6`}),`. The parameters for both models are completely identical.`]}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`output_format`}),` can be `,_jsx(_components.code,{children:`png`}),` (default) or `,_jsx(_components.code,{children:`gif`}),`. This endpoint does not expose `,_jsx(_components.code,{children:`quality`}),`, `,_jsx(_components.code,{children:`output_n`}),`, or `,_jsx(_components.code,{children:`background`}),`, nor does it support SVG vector graphics and mask / selection local editing.`]})]}),`\n`,_jsx(Heading,{level:`2`,id:`authorizations`,children:`Authorizations`}),`\n`,_jsxs(ParamField,{header:`Authorization`,type:`string`,required:true,id:`param-authorization`,children:[_jsx(_components.p,{children:`All endpoints require Bearer Token authentication`}),_jsx(_components.p,{children:`Get the API key:`}),_jsxs(_components.p,{children:[`Visit the `,_jsx(_components.a,{href:apiKeyUrl,target:`_blank`,children:`API Key Management page`}),` to get your API Key`]}),_jsx(_components.p,{children:`Add to the request header when using:`}),_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Authorization: Bearer YOUR_API_KEY`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`body`,children:`Body`}),`\n`,_jsxs(ParamField,{body:`model`,type:`string`,required:true,id:`param-model`,children:[_jsx(_components.p,{children:`Model name, choose one of two:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`\"gpt_image_2_6_flare\"`}),` — Flare, faster image generation, suitable for drafts and batch generation`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`\"gpt_image_2_6_sunburst\"`}),` — Sunburst, more detail-focused, suitable for edits requiring preservation of characters, products, or layouts`]}),`\n`]}),_jsx(_components.p,{children:`When comparing the two models, please keep the prompt, reference images, aspect ratio, and resolution consistent.`})]}),`\n`,_jsxs(ParamField,{body:`params`,type:`object`,required:true,id:`param-params`,children:[_jsx(_components.p,{children:`Model parameter object`}),_jsxs(Expandable,{title:`params Object Properties`,children:[_jsxs(ParamField,{body:`prompt`,type:`string`,required:true,id:`param-prompt`,children:[_jsx(_components.p,{children:`Text description for image generation`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Supports Chinese and English; detailed descriptions are recommended`}),`\n`,_jsx(_components.li,{children:`When editing images, clearly specify what to change and what must remain unchanged`}),`\n`,_jsx(_components.li,{children:`If a transparent background is required, please specify directly in the prompt (e.g., “transparent background”); whether it is transparent is determined by the model`}),`\n`,_jsx(_components.li,{children:`Submissions undergo platform sensitive words / safety moderation; any violating content will directly return an error`}),`\n`]})]}),_jsxs(ParamField,{body:`output_format`,type:`string`,default:`png`,id:`param-output-format`,children:[_jsxs(_components.p,{children:[`Output format, default `,_jsx(_components.code,{children:`png`})]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`png`}),` - Static image`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`gif`}),` - Looping animated image, used with `,_jsx(_components.code,{children:`frame_count`}),` and `,_jsx(_components.code,{children:`frame_duration_ms`})]}),`\n`]}),_jsx(Warning,{children:_jsxs(_components.p,{children:[`When `,_jsx(_components.code,{children:`gif`}),`, `,_jsx(_components.code,{children:`image_url`}),` reference images are not supported (passing them will cause the task to fail), `,_jsx(_components.code,{children:`resolution`}),` is not used, and `,_jsx(_components.code,{children:`aspect_ratio`}),` only supports `,_jsx(_components.code,{children:`auto`}),`, `,_jsx(_components.code,{children:`1:1`}),`, `,_jsx(_components.code,{children:`16:9`}),`, `,_jsx(_components.code,{children:`9:16`}),`, `,_jsx(_components.code,{children:`4:3`}),`, `,_jsx(_components.code,{children:`3:4`}),`, `,_jsx(_components.code,{children:`3:2`}),`, `,_jsx(_components.code,{children:`2:3`}),`; passing other ratios returns 400.`]})})]}),_jsxs(ParamField,{body:`image_url`,type:`string[]`,id:`param-image-url`,children:[_jsxs(_components.p,{children:[`Array of reference images; triggers image-to-image / editing mode when provided (only available when `,_jsx(_components.code,{children:`output_format`}),` is `,_jsx(_components.code,{children:`png`}),`)`]}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Up to 10 reference images`}),`\n`,_jsx(_components.li,{children:`If omitted, falls back to text-to-image mode`}),`\n`,_jsxs(_components.li,{children:[`Supports the following two formats:`,`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Publicly accessible URL`}),`\n`,_jsxs(_components.li,{children:[`Base64 encoded format`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Must use the complete Data URI format: `,_jsx(_components.code,{children:`data:image/{format};base64,{base64_data}`})]}),`\n`,_jsx(_components.li,{children:`Supported image formats: jpeg, png, webp`}),`\n`,_jsxs(_components.li,{children:[`Example: `,_jsx(_components.code,{children:`data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABg...`})]}),`\n`,_jsxs(_components.li,{children:[`⚠️ Note: Must include the `,_jsx(_components.code,{children:`data:image/jpeg;base64,`}),` prefix`]}),`\n`]}),`\n`]}),`\n`]}),`\n`]}),`\n`]})]}),_jsxs(ParamField,{body:`aspect_ratio`,type:`string`,default:`auto`,id:`param-aspect-ratio`,children:[_jsxs(_components.p,{children:[`Aspect ratio for image generation, default `,_jsx(_components.code,{children:`auto`})]}),_jsx(_components.p,{children:`Supports the following values:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`auto`}),` - Automatically select the most suitable aspect ratio`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`1:1`}),` - Square`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`16:9`}),` / `,_jsx(_components.code,{children:`9:16`}),` - Widescreen landscape / portrait`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`4:3`}),` / `,_jsx(_components.code,{children:`3:4`}),` - Standard landscape / portrait`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`3:2`}),` / `,_jsx(_components.code,{children:`2:3`}),` - Classic landscape / portrait`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`5:4`}),` / `,_jsx(_components.code,{children:`4:5`}),` - Near-square landscape / portrait`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`2:1`}),` / `,_jsx(_components.code,{children:`1:2`}),` - Wide landscape / tall portrait`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`21:9`}),` / `,_jsx(_components.code,{children:`9:21`}),` - Ultrawide landscape / ultra-tall portrait`]}),`\n`]}),_jsx(Warning,{children:_jsxs(_components.p,{children:[`Only aspect ratio strings or `,_jsx(_components.code,{children:`auto`}),` are supported; passing pixel dimensions (e.g., `,_jsx(_components.code,{children:`1024x1024`}),`) will return an error directly. If exact pixels are needed, please use `,_jsx(_components.code,{children:`size`}),`.`]})})]}),_jsxs(ParamField,{body:`resolution`,type:`string`,default:`1K`,id:`param-resolution`,children:[_jsxs(_components.p,{children:[`Resolution tier, default `,_jsx(_components.code,{children:`1K`})]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`1K`}),` - Approx. 1024 baseline`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`2K`}),` - Approx. 2048 baseline`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`4K`}),` - Approx. 3840 baseline`]}),`\n`]}),_jsx(Warning,{children:_jsxs(_components.p,{children:[`Do not pass `,_jsx(_components.code,{children:`resolution`}),` / `,_jsx(_components.code,{children:`aspect_ratio`}),` when passing `,_jsx(_components.code,{children:`size`}),`; otherwise, 400 will be returned.`]})})]}),_jsxs(ParamField,{body:`frame_count`,type:`integer`,default:`9`,id:`param-frame-count`,children:[_jsxs(_components.p,{children:[`GIF frame count, only takes effect when `,_jsx(_components.code,{children:`output_format`}),` is `,_jsx(_components.code,{children:`gif`}),`, default `,_jsx(_components.code,{children:`9`})]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Value range `,_jsx(_components.code,{children:`2`}),` to `,_jsx(_components.code,{children:`9`}),`; returns 400 if out of range`]}),`\n`]})]}),_jsxs(ParamField,{body:`frame_duration_ms`,type:`integer`,default:`200`,id:`param-frame-duration-ms`,children:[_jsxs(_components.p,{children:[`GIF frame duration (in milliseconds), only takes effect when `,_jsx(_components.code,{children:`output_format`}),` is `,_jsx(_components.code,{children:`gif`}),`, default `,_jsx(_components.code,{children:`200`})]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Value range `,_jsx(_components.code,{children:`100`}),` to `,_jsx(_components.code,{children:`500`}),`, rounded to multiples of 10 ms; returns 400 if out of range`]}),`\n`,_jsx(_components.li,{children:`For example, 9 frames × 200 ms results in a 1.8-second loop`}),`\n`]})]}),_jsxs(ParamField,{body:`size`,type:`string`,id:`param-size`,children:[_jsxs(_components.p,{children:[`Custom pixel dimensions (API only, `,_jsx(_components.strong,{children:`mutually exclusive`}),` with `,_jsx(_components.code,{children:`aspect_ratio`}),` / `,_jsx(_components.code,{children:`resolution`}),`)`]}),_jsxs(_components.p,{children:[`Format is `,_jsx(_components.code,{children:`widthxheight`}),`, for example `,_jsx(_components.code,{children:`2048x1536`}),`, `,_jsx(_components.code,{children:`3840x2160`}),`.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Usage Limitations:`})}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Format must be `,_jsx(_components.code,{children:`^\\\\d+x\\\\d+$`})]}),`\n`,_jsx(_components.li,{children:`Both width and height must be multiples of 16`}),`\n`,_jsx(_components.li,{children:`Each side must not exceed 3840`}),`\n`,_jsx(_components.li,{children:`Long side / short side must not exceed 3:1`}),`\n`,_jsxs(_components.li,{children:[`Total pixels (width × height) must be between `,_jsx(_components.strong,{children:`655,360 ~ 8,294,400`})]}),`\n`,_jsxs(_components.li,{children:[`Mutually exclusive with `,_jsx(_components.code,{children:`aspect_ratio`}),` and `,_jsx(_components.code,{children:`resolution`}),`; passing them simultaneously returns 400`]}),`\n`,_jsxs(_components.li,{children:[`When `,_jsx(_components.code,{children:`gif`}),`, it will be converted proportionally to the closest GIF frame size (see the GIF frame size table below)`]}),`\n`]})]})]})]}),`\n`,_jsxs(ParamField,{body:`out_task_id`,type:`string`,required:true,id:`param-out-task-id`,children:[_jsx(_components.p,{children:`Initiator task ID`}),_jsxs(_components.p,{children:[`User-defined task identifier, required. Use the same value to call `,_jsx(_components.code,{children:`POST /api/openapi/query`}),` when querying results.`]})]}),`\n`,_jsx(Heading,{level:`2`,id:`尺寸-×-分辨率映射表`,children:`尺寸 × 分辨率映射表`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`aspect_ratio × resolution`}),` → Actual pixels (`,_jsx(_components.code,{children:`auto`}),` is selected by the model and not included in the table):`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`aspect_ratio`}),_jsx(_components.th,{children:_jsx(_components.code,{children:`1K`})}),_jsx(_components.th,{children:_jsx(_components.code,{children:`2K`})}),_jsx(_components.th,{children:_jsx(_components.code,{children:`4K`})})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`1:1`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1024×1024`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2048×2048`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2880×2880`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`3:2`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1536×1024`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2048×1360`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`3520×2336`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`2:3`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1024×1536`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1360×2048`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2336×3520`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`4:3`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1024×768`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2048×1536`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`3312×2480`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`3:4`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`768×1024`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1536×2048`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2480×3312`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`5:4`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1280×1024`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2560×2048`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`3216×2576`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`4:5`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1024×1280`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2048×2560`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2576×3216`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`16:9`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1536×864`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2048×1152`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`3840×2160`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`9:16`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`864×1536`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1152×2048`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2160×3840`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`2:1`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1760×880`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2688×1344`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`3840×1920`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`1:2`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`880×1760`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1344×2688`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1920×3840`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`21:9`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1904×816`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2688×1152`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`3840×1648`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`9:21`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`816×1904`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1152×2688`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1648×3840`})]})]})]}),`\n`,_jsxs(_components.blockquote,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`3:2`}),` / `,_jsx(_components.code,{children:`2:3`}),` @ 2K is actually 2048×1360 (approximate ratio). For aspect ratios not in the table, please use `,_jsx(_components.code,{children:`size`}),`.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`gif-帧尺寸`,children:`GIF 帧尺寸`}),`\n`,_jsxs(_components.p,{children:[`When `,_jsx(_components.code,{children:`output_format`}),` is `,_jsx(_components.code,{children:`gif`}),`, the size of each frame is determined by `,_jsx(_components.code,{children:`aspect_ratio`}),` (`,_jsx(_components.code,{children:`auto`}),` defaults to `,_jsx(_components.code,{children:`1:1`}),`):`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`aspect_ratio`}),_jsx(_components.th,{children:`Frame Size`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`1:1`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`896×896`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`16:9`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1088×608`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`9:16`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`608×1088`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`4:3`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`960×720`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`3:4`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`720×960`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`3:2`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1008×672`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`2:3`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`672×1008`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`out_task_id`,type:`string`,id:`param-out-task-id-1`,children:_jsx(_components.p,{children:`Initiator task ID, can be used to query results`})}),`\n`,_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status`,children:_jsxs(_components.p,{children:[`Initial status, usually `,_jsx(_components.code,{children:`\"pending\"`})]})}),`\n`,_jsx(ResponseField,{name:`created_at`,type:`string`,id:`param-created-at`,children:_jsx(_components.p,{children:`Creation time (ISO format)`})}),`\n`,_jsx(Heading,{level:`2`,id:`query-task`,children:`Query Task`}),`\n`,_jsxs(_components.p,{children:[`GPT-Image 2.6 is an asynchronous image generation model. After submitting a task, please use `,_jsx(_components.code,{children:`out_task_id`}),` to query the task status. You can also refer to `,_jsx(_components.a,{href:`/en/api-reference/tasks/status`,children:`Get Task Status`}),`.`]}),`\n`,_jsx(ParamField,{body:`out_task_id`,type:`string`,required:true,id:`param-out-task-id-2`,children:_jsx(_components.p,{children:`The initiator task ID passed when submitting the task.`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://aireiter.com/api/openapi/query`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization: Bearer \u003ctoken>'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"out_task_id\": \"my_task_123456\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`After the query succeeds and is completed, the `,_jsx(_components.code,{children:`output`}),` array in the response will contain the generated image (PNG or GIF).`]}),`\n`,_jsx(_components.p,{children:`In actual testing, a single 1K image takes about 25–45 seconds to complete, and a GIF takes about 25–70 seconds. Sunburst is usually slightly slower than Flare; the higher the resolution and the more reference images, the longer it takes. Please continue polling and do not submit repeatedly.`}),`\n`,_jsx(Heading,{level:`2`,id:`使用说明`,children:`使用说明`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`When only `,_jsx(_components.code,{children:`prompt`}),` is passed, it is text-to-image; when `,_jsx(_components.code,{children:`image_url`}),` is passed, it performs editing based on the reference image, and parts not mentioned in the prompt will be kept unchanged as much as possible.`]}),`\n`,_jsx(_components.li,{children:`Each request returns only 1 image; if multiple images are needed, please submit them separately.`}),`\n`,_jsxs(_components.li,{children:[`The default output is PNG; pass `,_jsx(_components.code,{children:`output_format: \"gif\"`}),` to output a looping animated GIF.`]}),`\n`,_jsxs(_components.li,{children:[`GIFs are generated based only on `,_jsx(_components.code,{children:`prompt`}),`. Please clearly describe the subject, action, and looping method in the prompt (e.g., “wave and return to the initial pose”); the simpler the action, the more coherent the frames.`]}),`\n`,_jsx(_components.li,{children:`The 4K tier is suitable for scenarios requiring large-format delivery; for realistic images with high detail requirements, it is recommended to first use 1K / 2K to confirm the composition before generating 4K.`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`request-examples`,children:`Request Examples`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{apiKeyUrl,default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"GPT-Image-2.6 Image Generation","description":"- Asynchronous processing mode, returns a task ID for subsequent queries\n- OpenAI GPT-Image 2.6 family: Flare (faster image generation) and Sunburst (greater emphasis on detail and editing fidelity)\n- Supports text-to-image / image-to-image / reference image editing, with up to 10 reference images\n- Supports 14 aspect ratios (including auto), passed via aspect_ratio\n- Supports resolution tiers of 1K / 2K / 4K, as well as API-exclusive custom size in pixels\n- Supports animated GIF output: pass gif to output_format, with configurable frame count (2–9) and duration per frame\n- Each request returns 1 image (PNG or GIF)\n- Submitted prompts undergo platform sensitive word / safety review, and violating content will be directly rejected\n","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/images/gpt-image-2-6/generation"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];const apiKeyUrl=`https://aireiter.com/keys`;function _createMdxContent(props){const _components={a:`a`,blockquote:`blockquote`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Note,ParamField,RequestExample,ResponseExample,ResponseField,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(Note,{children:[_jsxs(_components.p,{children:[`GPT-Image 2.6 has two model names in AIReiter: `,_jsx(_components.code,{children:`gpt_image_2_6_flare`}),` and `,_jsx(_components.code,{children:`gpt_image_2_6_sunburst`}),`, with no standalone `,_jsx(_components.code,{children:`gpt_image_2_6`}),`. The parameters for both models are completely identical.`]}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`output_format`}),` can be `,_jsx(_components.code,{children:`png`}),` (default) or `,_jsx(_components.code,{children:`gif`}),`. This endpoint does not expose `,_jsx(_components.code,{children:`quality`}),`, `,_jsx(_components.code,{children:`output_n`}),`, or `,_jsx(_components.code,{children:`background`}),`, nor does it support SVG vector graphics and mask / selection local editing.`]})]}),`\n`,_jsx(Heading,{level:`2`,id:`authorizations`,children:`Authorizations`}),`\n`,_jsxs(ParamField,{header:`Authorization`,type:`string`,required:true,id:`param-authorization`,children:[_jsx(_components.p,{children:`All endpoints require Bearer Token authentication`}),_jsx(_components.p,{children:`Get the API key:`}),_jsxs(_components.p,{children:[`Visit the `,_jsx(_components.a,{href:apiKeyUrl,target:`_blank`,children:`API Key Management page`}),` to get your API Key`]}),_jsx(_components.p,{children:`Add to the request header when using:`}),_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Authorization: Bearer YOUR_API_KEY`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`body`,children:`Body`}),`\n`,_jsxs(ParamField,{body:`model`,type:`string`,required:true,id:`param-model`,children:[_jsx(_components.p,{children:`Model name, choose one of two:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`\"gpt_image_2_6_flare\"`}),` — Flare, faster image generation, suitable for drafts and batch generation`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`\"gpt_image_2_6_sunburst\"`}),` — Sunburst, more detail-focused, suitable for edits requiring preservation of characters, products, or layouts`]}),`\n`]}),_jsx(_components.p,{children:`When comparing the two models, please keep the prompt, reference images, aspect ratio, and resolution consistent.`})]}),`\n`,_jsxs(ParamField,{body:`params`,type:`object`,required:true,id:`param-params`,children:[_jsx(_components.p,{children:`Model parameter object`}),_jsxs(Expandable,{title:`params Object Properties`,children:[_jsxs(ParamField,{body:`prompt`,type:`string`,required:true,id:`param-prompt`,children:[_jsx(_components.p,{children:`Text description for image generation`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Supports Chinese and English; detailed descriptions are recommended`}),`\n`,_jsx(_components.li,{children:`When editing images, clearly specify what to change and what must remain unchanged`}),`\n`,_jsx(_components.li,{children:`If a transparent background is required, please specify directly in the prompt (e.g., “transparent background”); whether it is transparent is determined by the model`}),`\n`,_jsx(_components.li,{children:`Submissions undergo platform sensitive words / safety moderation; any violating content will directly return an error`}),`\n`]})]}),_jsxs(ParamField,{body:`output_format`,type:`string`,default:`png`,id:`param-output-format`,children:[_jsxs(_components.p,{children:[`Output format, default `,_jsx(_components.code,{children:`png`})]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`png`}),` - Static image`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`gif`}),` - Looping animated image, used with `,_jsx(_components.code,{children:`frame_count`}),` and `,_jsx(_components.code,{children:`frame_duration_ms`})]}),`\n`]}),_jsx(Warning,{children:_jsxs(_components.p,{children:[`When `,_jsx(_components.code,{children:`gif`}),`, `,_jsx(_components.code,{children:`image_url`}),` reference images are not supported (passing them will cause the task to fail), `,_jsx(_components.code,{children:`resolution`}),` is not used, and `,_jsx(_components.code,{children:`aspect_ratio`}),` only supports `,_jsx(_components.code,{children:`auto`}),`, `,_jsx(_components.code,{children:`1:1`}),`, `,_jsx(_components.code,{children:`16:9`}),`, `,_jsx(_components.code,{children:`9:16`}),`, `,_jsx(_components.code,{children:`4:3`}),`, `,_jsx(_components.code,{children:`3:4`}),`, `,_jsx(_components.code,{children:`3:2`}),`, `,_jsx(_components.code,{children:`2:3`}),`; passing other ratios returns 400.`]})})]}),_jsxs(ParamField,{body:`image_url`,type:`string[]`,id:`param-image-url`,children:[_jsxs(_components.p,{children:[`Array of reference images; triggers image-to-image / editing mode when provided (only available when `,_jsx(_components.code,{children:`output_format`}),` is `,_jsx(_components.code,{children:`png`}),`)`]}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Up to 10 reference images`}),`\n`,_jsx(_components.li,{children:`If omitted, falls back to text-to-image mode`}),`\n`,_jsxs(_components.li,{children:[`Supports the following two formats:`,`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Publicly accessible URL`}),`\n`,_jsxs(_components.li,{children:[`Base64 encoded format`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Must use the complete Data URI format: `,_jsx(_components.code,{children:`data:image/{format};base64,{base64_data}`})]}),`\n`,_jsx(_components.li,{children:`Supported image formats: jpeg, png, webp`}),`\n`,_jsxs(_components.li,{children:[`Example: `,_jsx(_components.code,{children:`data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABg...`})]}),`\n`,_jsxs(_components.li,{children:[`⚠️ Note: Must include the `,_jsx(_components.code,{children:`data:image/jpeg;base64,`}),` prefix`]}),`\n`]}),`\n`]}),`\n`]}),`\n`]}),`\n`]})]}),_jsxs(ParamField,{body:`aspect_ratio`,type:`string`,default:`auto`,id:`param-aspect-ratio`,children:[_jsxs(_components.p,{children:[`Aspect ratio for image generation, default `,_jsx(_components.code,{children:`auto`})]}),_jsx(_components.p,{children:`Supports the following values:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`auto`}),` - Automatically select the most suitable aspect ratio`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`1:1`}),` - Square`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`16:9`}),` / `,_jsx(_components.code,{children:`9:16`}),` - Widescreen landscape / portrait`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`4:3`}),` / `,_jsx(_components.code,{children:`3:4`}),` - Standard landscape / portrait`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`3:2`}),` / `,_jsx(_components.code,{children:`2:3`}),` - Classic landscape / portrait`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`5:4`}),` / `,_jsx(_components.code,{children:`4:5`}),` - Near-square landscape / portrait`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`2:1`}),` / `,_jsx(_components.code,{children:`1:2`}),` - Wide landscape / tall portrait`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`21:9`}),` / `,_jsx(_components.code,{children:`9:21`}),` - Ultrawide landscape / ultra-tall portrait`]}),`\n`]}),_jsx(Warning,{children:_jsxs(_components.p,{children:[`Only aspect ratio strings or `,_jsx(_components.code,{children:`auto`}),` are supported; passing pixel dimensions (e.g., `,_jsx(_components.code,{children:`1024x1024`}),`) will return an error directly. If exact pixels are needed, please use `,_jsx(_components.code,{children:`size`}),`.`]})})]}),_jsxs(ParamField,{body:`resolution`,type:`string`,default:`1K`,id:`param-resolution`,children:[_jsxs(_components.p,{children:[`Resolution tier, default `,_jsx(_components.code,{children:`1K`})]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`1K`}),` - Approx. 1024 baseline`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`2K`}),` - Approx. 2048 baseline`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`4K`}),` - Approx. 3840 baseline`]}),`\n`]}),_jsx(Warning,{children:_jsxs(_components.p,{children:[`Do not pass `,_jsx(_components.code,{children:`resolution`}),` / `,_jsx(_components.code,{children:`aspect_ratio`}),` when passing `,_jsx(_components.code,{children:`size`}),`; otherwise, 400 will be returned.`]})})]}),_jsxs(ParamField,{body:`frame_count`,type:`integer`,default:`9`,id:`param-frame-count`,children:[_jsxs(_components.p,{children:[`GIF frame count, only takes effect when `,_jsx(_components.code,{children:`output_format`}),` is `,_jsx(_components.code,{children:`gif`}),`, default `,_jsx(_components.code,{children:`9`})]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Value range `,_jsx(_components.code,{children:`2`}),` to `,_jsx(_components.code,{children:`9`}),`; returns 400 if out of range`]}),`\n`]})]}),_jsxs(ParamField,{body:`frame_duration_ms`,type:`integer`,default:`200`,id:`param-frame-duration-ms`,children:[_jsxs(_components.p,{children:[`GIF frame duration (in milliseconds), only takes effect when `,_jsx(_components.code,{children:`output_format`}),` is `,_jsx(_components.code,{children:`gif`}),`, default `,_jsx(_components.code,{children:`200`})]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Value range `,_jsx(_components.code,{children:`100`}),` to `,_jsx(_components.code,{children:`500`}),`, rounded to multiples of 10 ms; returns 400 if out of range`]}),`\n`,_jsx(_components.li,{children:`For example, 9 frames × 200 ms results in a 1.8-second loop`}),`\n`]})]}),_jsxs(ParamField,{body:`size`,type:`string`,id:`param-size`,children:[_jsxs(_components.p,{children:[`Custom pixel dimensions (API only, `,_jsx(_components.strong,{children:`mutually exclusive`}),` with `,_jsx(_components.code,{children:`aspect_ratio`}),` / `,_jsx(_components.code,{children:`resolution`}),`)`]}),_jsxs(_components.p,{children:[`Format is `,_jsx(_components.code,{children:`widthxheight`}),`, for example `,_jsx(_components.code,{children:`2048x1536`}),`, `,_jsx(_components.code,{children:`3840x2160`}),`.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Usage Limitations:`})}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Format must be `,_jsx(_components.code,{children:`^\\\\d+x\\\\d+$`})]}),`\n`,_jsx(_components.li,{children:`Both width and height must be multiples of 16`}),`\n`,_jsx(_components.li,{children:`Each side must not exceed 3840`}),`\n`,_jsx(_components.li,{children:`Long side / short side must not exceed 3:1`}),`\n`,_jsxs(_components.li,{children:[`Total pixels (width × height) must be between `,_jsx(_components.strong,{children:`655,360 ~ 8,294,400`})]}),`\n`,_jsxs(_components.li,{children:[`Mutually exclusive with `,_jsx(_components.code,{children:`aspect_ratio`}),` and `,_jsx(_components.code,{children:`resolution`}),`; passing them simultaneously returns 400`]}),`\n`,_jsxs(_components.li,{children:[`When `,_jsx(_components.code,{children:`gif`}),`, it will be converted proportionally to the closest GIF frame size (see the GIF frame size table below)`]}),`\n`]})]})]})]}),`\n`,_jsxs(ParamField,{body:`out_task_id`,type:`string`,required:true,id:`param-out-task-id`,children:[_jsx(_components.p,{children:`Initiator task ID`}),_jsxs(_components.p,{children:[`User-defined task identifier, required. Use the same value to call `,_jsx(_components.code,{children:`POST /api/openapi/query`}),` when querying results.`]})]}),`\n`,_jsx(Heading,{level:`2`,id:`尺寸-×-分辨率映射表`,children:`尺寸 × 分辨率映射表`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`aspect_ratio × resolution`}),` → Actual pixels (`,_jsx(_components.code,{children:`auto`}),` is selected by the model and not included in the table):`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`aspect_ratio`}),_jsx(_components.th,{children:_jsx(_components.code,{children:`1K`})}),_jsx(_components.th,{children:_jsx(_components.code,{children:`2K`})}),_jsx(_components.th,{children:_jsx(_components.code,{children:`4K`})})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`1:1`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1024×1024`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2048×2048`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2880×2880`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`3:2`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1536×1024`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2048×1360`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`3520×2336`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`2:3`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1024×1536`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1360×2048`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2336×3520`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`4:3`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1024×768`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2048×1536`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`3312×2480`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`3:4`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`768×1024`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1536×2048`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2480×3312`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`5:4`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1280×1024`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2560×2048`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`3216×2576`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`4:5`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1024×1280`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2048×2560`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2576×3216`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`16:9`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1536×864`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2048×1152`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`3840×2160`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`9:16`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`864×1536`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1152×2048`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2160×3840`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`2:1`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1760×880`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2688×1344`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`3840×1920`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`1:2`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`880×1760`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1344×2688`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1920×3840`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`21:9`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1904×816`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2688×1152`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`3840×1648`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`9:21`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`816×1904`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1152×2688`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1648×3840`})]})]})]}),`\n`,_jsxs(_components.blockquote,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`3:2`}),` / `,_jsx(_components.code,{children:`2:3`}),` @ 2K is actually 2048×1360 (approximate ratio). For aspect ratios not in the table, please use `,_jsx(_components.code,{children:`size`}),`.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`gif-帧尺寸`,children:`GIF 帧尺寸`}),`\n`,_jsxs(_components.p,{children:[`When `,_jsx(_components.code,{children:`output_format`}),` is `,_jsx(_components.code,{children:`gif`}),`, the size of each frame is determined by `,_jsx(_components.code,{children:`aspect_ratio`}),` (`,_jsx(_components.code,{children:`auto`}),` defaults to `,_jsx(_components.code,{children:`1:1`}),`):`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`aspect_ratio`}),_jsx(_components.th,{children:`Frame Size`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`1:1`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`896×896`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`16:9`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1088×608`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`9:16`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`608×1088`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`4:3`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`960×720`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`3:4`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`720×960`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`3:2`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1008×672`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`2:3`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`672×1008`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`out_task_id`,type:`string`,id:`param-out-task-id-1`,children:_jsx(_components.p,{children:`Initiator task ID, can be used to query results`})}),`\n`,_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status`,children:_jsxs(_components.p,{children:[`Initial status, usually `,_jsx(_components.code,{children:`\"pending\"`})]})}),`\n`,_jsx(ResponseField,{name:`created_at`,type:`string`,id:`param-created-at`,children:_jsx(_components.p,{children:`Creation time (ISO format)`})}),`\n`,_jsx(Heading,{level:`2`,id:`query-task`,children:`Query Task`}),`\n`,_jsxs(_components.p,{children:[`GPT-Image 2.6 is an asynchronous image generation model. After submitting a task, please use `,_jsx(_components.code,{children:`out_task_id`}),` to query the task status. You can also refer to `,_jsx(_components.a,{href:`/en/api-reference/tasks/status`,children:`Get Task Status`}),`.`]}),`\n`,_jsx(ParamField,{body:`out_task_id`,type:`string`,required:true,id:`param-out-task-id-2`,children:_jsx(_components.p,{children:`The initiator task ID passed when submitting the task.`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://aireiter.com/api/openapi/query`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization: Bearer \u003ctoken>'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"out_task_id\": \"my_task_123456\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`After the query succeeds and is completed, the `,_jsx(_components.code,{children:`output`}),` array in the response will contain the generated image (PNG or GIF).`]}),`\n`,_jsx(_components.p,{children:`In actual testing, a single 1K image takes about 25–45 seconds to complete, and a GIF takes about 25–70 seconds. Sunburst is usually slightly slower than Flare; the higher the resolution and the more reference images, the longer it takes. Please continue polling and do not submit repeatedly.`}),`\n`,_jsx(Heading,{level:`2`,id:`使用说明`,children:`使用说明`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`When only `,_jsx(_components.code,{children:`prompt`}),` is passed, it is text-to-image; when `,_jsx(_components.code,{children:`image_url`}),` is passed, it performs editing based on the reference image, and parts not mentioned in the prompt will be kept unchanged as much as possible.`]}),`\n`,_jsx(_components.li,{children:`Each request returns only 1 image; if multiple images are needed, please submit them separately.`}),`\n`,_jsxs(_components.li,{children:[`The default output is PNG; pass `,_jsx(_components.code,{children:`output_format: \"gif\"`}),` to output a looping animated GIF.`]}),`\n`,_jsxs(_components.li,{children:[`GIFs are generated based only on `,_jsx(_components.code,{children:`prompt`}),`. Please clearly describe the subject, action, and looping method in the prompt (e.g., “wave and return to the initial pose”); the simpler the action, the more coherent the frames.`]}),`\n`,_jsx(_components.li,{children:`The 4K tier is suitable for scenarios requiring large-format delivery; for realistic images with high detail requirements, it is recommended to first use 1K / 2K to confirm the composition before generating 4K.`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`request-examples`,children:`Request Examples`}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`cURL (Flare + aspect_ratio)`,numberOfLines:`13`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`13`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://aireiter.com/api/openapi/submit`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization: Bearer \u003ctoken>'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"gpt_image_2_6_flare\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"params\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\": \"A flat vector style poster: a fox sitting under a crescent moon, title text \\\\\"NIGHT SHIFT\\\\\", solid color blocks, white background\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"aspect_ratio\": \"16:9\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"resolution\": \"1K\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"out_task_id\": \"my_task_123456\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`cURL (Sunburst + Reference Image)`,numberOfLines:`14`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`14`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://aireiter.com/api/openapi/submit`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization: Bearer \u003ctoken>'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"gpt_image_2_6_sunburst\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"params\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\": \"Change the orange cube into a cardboard box, keep the rest of the image unchanged\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"image_url\": [\"https://example.com/product.png\"],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"aspect_ratio\": \"1:1\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"resolution\": \"2K\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"out_task_id\": \"my_task_edit_001\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`cURL (size Custom Size)`,numberOfLines:`12`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://aireiter.com/api/openapi/submit`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization: Bearer \u003ctoken>'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"gpt_image_2_6_flare\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"params\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\": \"A flat vector style poster: a fox sitting under a crescent moon, title text \\\\\"NIGHT SHIFT\\\\\", solid color blocks, white background\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"size\": \"2048x1152\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"out_task_id\": \"my_task_size_001\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`cURL (GIF Animation)`,numberOfLines:`15`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`15`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://aireiter.com/api/openapi/submit`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization: Bearer \u003ctoken>'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"gpt_image_2_6_flare\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"params\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\": \"A kitten wearing a red paw-print scarf stands up and waves its paw, cozy living room, returns to initial pose after waving, seamless loop\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"output_format\": \"gif\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"aspect_ratio\": \"1:1\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"frame_count\": 9,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"frame_duration_ms\": 200`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"out_task_id\": \"my_task_gif_001\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`21`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`21`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`url `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://aireiter.com/api/openapi/submit\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`payload `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gpt_image_2_6_flare\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"params\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"A flat vector style poster: a fox sitting under a crescent moon, title text `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`NIGHT SHIFT`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`, solid color blocks, white background\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"aspect_ratio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"16:9\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"resolution\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1K\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"out_task_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"my_task_123456\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`headers `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bearer \u003ctoken>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"application/json\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.post(url, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`json`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`payload, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`headers)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(response.json())`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`JavaScript`,numberOfLines:`22`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`22`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` url`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://aireiter.com/api/openapi/submit\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` payload`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` model:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"gpt_image_2_6_flare\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` params:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` prompt:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"A flat vector style poster: a fox sitting under a crescent moon, title text `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`NIGHT SHIFT`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`, solid color blocks, white background\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` aspect_ratio:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"16:9\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` resolution:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"1K\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` out_task_id:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"my_task_123456\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`};`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`url`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"POST\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Authorization:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Bearer \u003ctoken>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"application/json\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`payload`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`})`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`then`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`((`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`())`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`then`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`((`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`));`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Go`,numberOfLines:`33`,language:`go`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`go`,children:_jsxs(_components.code,{language:`go`,numberOfLines:`33`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`package`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` main`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#CE9178`},children:`bytes`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#CE9178`},children:`encoding/json`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#CE9178`},children:`fmt`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#CE9178`},children:`io`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#CE9178`},children:`net/http`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`func`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` main`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` url`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://aireiter.com/api/openapi/submit\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` payload`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` map`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:`string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`interface`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{}{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gpt_image_2_6_flare\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"params\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`map`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:`string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`interface`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{}{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"A flat vector style poster: a fox sitting under a crescent moon, title text `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`NIGHT SHIFT`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`, solid color blocks, white background\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"aspect_ratio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"16:9\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"resolution\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1K\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"out_task_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"my_task_123456\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` jsonData`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`_`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Marshal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`payload`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` req`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`_`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` http`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`NewRequest`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"POST\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`url`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`bytes`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`NewBuffer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`jsonData`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`))`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` req`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Header`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Set`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Authorization\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bearer \u003ctoken>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` req`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Header`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Set`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Content-Type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"application/json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` resp`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`err`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` http`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`DefaultClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Do`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`req`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` err`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` !=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` nil`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` panic`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`err`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` defer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` resp`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Body`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Close`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`_`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` io`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`ReadAll`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`resp`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Body`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` fmt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Println`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:`string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`body`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`))`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),`\n`,_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`200`,numberOfLines:`9`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"statusCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`200`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"out_task_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"my_task_123456\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pending\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-11-06T06:00:00.000Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`400`,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"statusCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`400`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Invalid request parameters\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"ok\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`401`,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`401`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Authentication failed, please check your API key\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`500`,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`500`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Internal server error, please try again later\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{apiKeyUrl,default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"GPT-Image-2.6 Image Generation","description":"- Asynchronous processing mode, returns a task ID for subsequent queries\n- OpenAI GPT-Image 2.6 family: Flare (faster image generation) and Sunburst (greater emphasis on detail and editing fidelity)\n- Supports text-to-image / image-to-image / reference image editing, with up to 10 reference images\n- Supports 14 aspect ratios (including auto), passed via aspect_ratio\n- Supports resolution tiers of 1K / 2K / 4K, as well as API-exclusive custom size in pixels\n- Supports animated GIF output: pass gif to output_format, with configurable frame count (2–9) and duration per frame\n- Each request returns 1 image (PNG or GIF)\n- Submitted prompts undergo platform sensitive word / safety review, and violating content will be directly rejected\n","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/images/gpt-image-2-6/generation"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Authorizations","slug":"authorizations","depth":2,"children":[]},{"title":"Body","slug":"body","depth":2,"children":[]},{"title":"尺寸 × 分辨率映射表","slug":"尺寸-×-分辨率映射表","depth":2,"children":[]},{"title":"GIF 帧尺寸","slug":"gif-帧尺寸","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]},{"title":"Query Task","slug":"query-task","depth":2,"children":[]},{"title":"使用说明","slug":"使用说明","depth":2,"children":[]},{"title":"Request Examples","slug":"request-examples","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL (Flare + aspect_ratio)","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"13\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --request\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --url\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> https://aireiter.com/api/openapi/submit\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --header\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Authorization: Bearer \u0026#x3C;token>'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --header\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Content-Type: application/json'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --data\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"model\": \"gpt_image_2_6_flare\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"params\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"prompt\": \"A flat vector style poster: a fox sitting under a crescent moon, title text \\\"NIGHT SHIFT\\\", solid color blocks, white background\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"aspect_ratio\": \"16:9\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"resolution\": \"1K\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"out_task_id\": \"my_task_123456\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"cURL (Sunburst + Reference Image)","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"14\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --request\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --url\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> https://aireiter.com/api/openapi/submit\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --header\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Authorization: Bearer \u0026#x3C;token>'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --header\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Content-Type: application/json'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --data\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"model\": \"gpt_image_2_6_sunburst\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"params\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"prompt\": \"Change the orange cube into a cardboard box, keep the rest of the image unchanged\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"image_url\": [\"https://example.com/product.png\"],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"aspect_ratio\": \"1:1\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"resolution\": \"2K\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"out_task_id\": \"my_task_edit_001\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"cURL (size Custom Size)","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"12\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --request\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --url\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> https://aireiter.com/api/openapi/submit\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --header\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Authorization: Bearer \u0026#x3C;token>'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --header\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Content-Type: application/json'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --data\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"model\": \"gpt_image_2_6_flare\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"params\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"prompt\": \"A flat vector style poster: a fox sitting under a crescent moon, title text \\\"NIGHT SHIFT\\\", solid color blocks, white background\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"size\": \"2048x1152\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"out_task_id\": \"my_task_size_001\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"cURL (GIF Animation)","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"15\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --request\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --url\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> https://aireiter.com/api/openapi/submit\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --header\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Authorization: Bearer \u0026#x3C;token>'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --header\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Content-Type: application/json'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --data\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"model\": \"gpt_image_2_6_flare\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"params\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"prompt\": \"A kitten wearing a red paw-print scarf stands up and waves its paw, cozy living room, returns to initial pose after waving, seamless loop\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"output_format\": \"gif\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"aspect_ratio\": \"1:1\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"frame_count\": 9,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"frame_duration_ms\": 200\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"out_task_id\": \"my_task_gif_001\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Python","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"python\">\u003ccode language=\"python\" numberOfLines=\"21\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> requests\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">url \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://aireiter.com/api/openapi/submit\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">payload \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"model\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"gpt_image_2_6_flare\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"params\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"prompt\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"A flat vector style poster: a fox sitting under a crescent moon, title text \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\">\\\"\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">NIGHT SHIFT\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\">\\\"\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">, solid color blocks, white background\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"aspect_ratio\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"16:9\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"resolution\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"1K\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"out_task_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"my_task_123456\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">headers \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Bearer \u0026#x3C;token>\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"application/json\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">response \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> requests.post(url, \u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\">json\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">payload, \u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\">headers\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">headers)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\">print\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(response.json())\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"JavaScript","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"javascript\">\u003ccode language=\"javascript\" numberOfLines=\"22\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> url\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://aireiter.com/api/openapi/submit\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> payload\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> model:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"gpt_image_2_6_flare\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> params:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> prompt:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"A flat vector style poster: a fox sitting under a crescent moon, title text \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\">\\\"\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">NIGHT SHIFT\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\">\\\"\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">, solid color blocks, white background\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> aspect_ratio:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"16:9\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> resolution:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"1K\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> out_task_id:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"my_task_123456\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">};\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">fetch\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">url\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> method:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"POST\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> headers:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> Authorization:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Bearer \u0026#x3C;token>\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"application/json\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> body:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> JSON\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">stringify\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">payload\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">})\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> .\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">then\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">((\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\">response\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">) \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">=>\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> response\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">json\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">())\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> .\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">then\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">((\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\">data\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">) \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">=>\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> console\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">log\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">data\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">));\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Go","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"go\">\u003ccode language=\"go\" numberOfLines=\"33\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">package\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\"> main\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> (\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#CE9178\">bytes\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#CE9178\">encoding/json\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#CE9178\">fmt\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#CE9178\">io\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#CE9178\">net/http\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">func\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> main\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">() {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> url\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> :=\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://aireiter.com/api/openapi/submit\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> payload\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> :=\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> map\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">[\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#4EC9B0\">string\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">]\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">interface\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{}{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"model\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"gpt_image_2_6_flare\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"params\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">map\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">[\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#4EC9B0\">string\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">]\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">interface\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{}{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"prompt\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"A flat vector style poster: a fox sitting under a crescent moon, title text \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\">\\\"\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">NIGHT SHIFT\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\">\\\"\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">, solid color blocks, white background\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"aspect_ratio\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"16:9\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"resolution\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"1K\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"out_task_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"my_task_123456\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> jsonData\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">_\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> :=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> json\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">Marshal\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">payload\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> req\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">_\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> :=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> http\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">NewRequest\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"POST\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">url\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">bytes\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">NewBuffer\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">jsonData\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">))\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> req\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">Header\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">Set\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Authorization\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Bearer \u0026#x3C;token>\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> req\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">Header\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">Set\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Content-Type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"application/json\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> resp\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">err\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> :=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> http\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">DefaultClient\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">Do\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">req\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> if\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> err\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> !=\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> nil\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> panic\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">err\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> defer\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> resp\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">Body\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">Close\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">()\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> body\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">_\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> :=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> io\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">ReadAll\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">resp\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">Body\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> fmt\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">Println\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#4EC9B0\">string\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">body\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">))\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"200","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"9\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"statusCode\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">200\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"data\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"out_task_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"my_task_123456\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"pending\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"created_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-11-06T06:00:00.000Z\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"400","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"5\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"statusCode\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">400\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Invalid request parameters\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"ok\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"401","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"6\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">401\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Authentication failed, please check your API key\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"500","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"6\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">500\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Internal server error, please try again later\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"GPT-Image-2.6 Image Generation","path":"/api/openapi/submit","servers":[{"url":"https://aireiter.com"}],"method":"post","request":{"security":[],"parameters":{"query":{},"header":{"Authorization":{"schema":[{"type":"string","description":"All endpoints require Bearer Token authentication Get the API key: Visit the to get your API Key Add to the request header when using:","required":true}]}},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"model":[{"type":"string","description":"Model name, choose one of two: `\"gpt_image_2_6_flare\"` — Flare, faster image generation, suitable for drafts and batch generation `\"gpt_image_2_6_sunburst\"` — Sunburst, more detail-focused, suitable for edits requiring preservation of characters, products, or layouts When comparing the two models, please keep the prompt, reference images, aspect ratio, and resolution consistent.","required":true}],"params":[{"type":"object","properties":{"prompt":[{"type":"string","description":"Text description for image generation Supports Chinese and English; detailed descriptions are recommended When editing images, clearly specify what to change and what must remain unchanged If a transparent background is required, please specify directly in the prompt (e.g., “transparent background”); whether it is transparent is determined by the model Submissions undergo platform sensitive words / safety moderation; any violating content will directly return an error","required":true}],"output_format":[{"type":"string","description":"Output format, default `png` `png` - Static image `gif` - Looping animated image, used with `frame_count` and `frame_duration_ms`"}],"image_url":[{"type":"array","items":[{"type":"string"}],"description":"Array of reference images; triggers image-to-image / editing mode when provided (only available when `output_format` is `png` ) Up to 10 reference images If omitted, falls back to text-to-image mode Supports the following two formats: Publicly accessible URL Base64 encoded format Must use the complete Data URI format: `data:image/{format};base64,{base64_data}` Supported image formats: jpeg, png, webp Example: `data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABg...` ⚠️ Note: Must include the `data:image/jpeg;base64,` prefix"}],"aspect_ratio":[{"type":"string","description":"Aspect ratio for image generation, default `auto` Supports the following values: `auto` - Automatically select the most suitable aspect ratio `1:1` - Square `16:9` / `9:16` - Widescreen landscape / portrait `4:3` / `3:4` - Standard landscape / portrait `3:2` / `2:3` - Classic landscape / portrait `5:4` / `4:5` - Near-square landscape / portrait `2:1` / `1:2` - Wide landscape / tall portrait `21:9` / `9:21` - Ultrawide landscape / ultra-tall portrait"}],"resolution":[{"type":"string","description":"Resolution tier, default `1K` `1K` - Approx. 1024 baseline `2K` - Approx. 2048 baseline `4K` - Approx. 3840 baseline"}],"frame_count":[{"type":"integer","description":"GIF frame count, only takes effect when `output_format` is `gif` , default `9` Value range `2` to `9` ; returns 400 if out of range"}],"frame_duration_ms":[{"type":"integer","description":"GIF frame duration (in milliseconds), only takes effect when `output_format` is `gif` , default `200` Value range `100` to `500` , rounded to multiples of 10 ms; returns 400 if out of range For example, 9 frames × 200 ms results in a 1.8-second loop"}],"size":[{"type":"string","description":"Custom pixel dimensions (API only, mutually exclusive with `aspect_ratio` / `resolution` ) Format is `widthxheight` , for example `2048x1536` , `3840x2160` . Usage Limitations: Format must be `^\\d+x\\d+$` Both width and height must be multiples of 16 Each side must not exceed 3840 Long side / short side must not exceed 3:1 Total pixels (width × height) must be between 655,360 ~ 8,294,400 Mutually exclusive with `aspect_ratio` and `resolution` ; passing them simultaneously returns 400 When `gif` , it will be converted proportionally to the closest GIF frame size (see the GIF frame size table below)"}]},"description":"Model parameter object","required":true}],"out_task_id":[{"type":"string","description":"The initiator task ID passed when submitting the task.","required":true}]}}],"examples":{"example":{"value":{"model":"\u003cstring>","params":{"prompt":"\u003cstring>","output_format":"\u003cstring>","image_url":["\u003cstring>"],"aspect_ratio":"\u003cstring>","resolution":"\u003cstring>","frame_count":123,"frame_duration_ms":123,"size":"\u003cstring>"},"out_task_id":"\u003cstring>"}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"out_task_id":[{"type":"string","description":"Initiator task ID, can be used to query results"}],"status":[{"type":"string","description":"Initial status, usually `\"pending\"`"}],"created_at":[{"type":"string","description":"Creation time (ISO format)"}]}}],"examples":{"example":{"value":{"out_task_id":"\u003cstring>","status":"\u003cstring>","created_at":"\u003cstring>"}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"none-ddc89343","siteName":"AIReiter","title":"GPT-Image-2.6 Image Generation - AIReiter","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"zh":{"href":"/zh/api-reference/images/gpt-image-2-6/generation","matchLevel":1},"en":{"href":"/en/api-reference/images/gpt-image-2-6/generation","matchLevel":0},"ja":{"href":"/ja/api-reference/images/gpt-image-2-6/generation","matchLevel":1},"ko":{"href":"/ko/api-reference/images/gpt-image-2-6/generation","matchLevel":1}}},"lastModified":"2026-11-06T06:27:54.936Z","originalFileLocation":"en/api-reference/images/gpt-image-2-6/generation.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"- Asynchronous processing mode, returns a task ID for subsequent queries - OpenAI GPT-Image 2.6 family: Flare (faster image generation) and Sunburst (greater emphasis on detail and editing fidelity) - Supports text-to-image / image-to-image / reference image editing, with up to 10 reference images - Supports 14 aspect ratios (including auto), passed via aspect_ratio - Supports resolution tiers of 1K / 2K / 4K, as well as API-exclusive custom size in pixels - Supports animated GIF output: pass gif to output_format, with configurable frame count (2–9) and duration per frame - Each request returns 1 image (PNG or GIF) - Submitted prompts undergo platform sensitive word / safety review, and violating content will be directly rejected\">\u003cmeta data-mint-head name=\"application-name\" content=\"AIReiter\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/none-ddc89343/uT9ex3S7MwmkeLBG/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/none-ddc89343/uT9ex3S7MwmkeLBG/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/none-ddc89343/uT9ex3S7MwmkeLBG/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/none-ddc89343/uT9ex3S7MwmkeLBG/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/none-ddc89343/uT9ex3S7MwmkeLBG/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/none-ddc89343/uT9ex3S7MwmkeLBG/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/none-ddc89343/uT9ex3S7MwmkeLBG/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/none-ddc89343/uT9ex3S7MwmkeLBG/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/none-ddc89343/uT9ex3S7MwmkeLBG/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"GPT-Image-2.6 Image Generation - AIReiter\">\u003cmeta data-mint-head property=\"og:description\" content=\"- Asynchronous processing mode, returns a task ID for subsequent queries - OpenAI GPT-Image 2.6 family: Flare (faster image generation) and Sunburst (greater emphasis on detail and editing fidelity) - Supports text-to-image / image-to-image / reference image editing, with up to 10 reference images - Supports 14 aspect ratios (including auto), passed via aspect_ratio - Supports resolution tiers of 1K / 2K / 4K, as well as API-exclusive custom size in pixels - Supports animated GIF output: pass gif to output_format, with configurable frame count (2–9) and duration per frame - Each request returns 1 image (PNG or GIF) - Submitted prompts undergo platform sensitive word / safety review, and violating content will be directly rejected\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"AIReiter\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.aireiter.com/en/api-reference/images/gpt-image-2-6/generation\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://none-ddc89343.mintlify.site/_mintlify/api/og/v2?division=GPT-Image-2.6\u0026amp;title=GPT-Image-2.6+Image+Generation\u0026amp;description=-+Asynchronous+processing+mode%2C+returns+a+task+ID+for+subsequent+queries%0A-+OpenAI+GPT-Image+2.6+family%3A+Flare+%28faster+image+generation%29+and+Sunburst+%28greater+em\u0026amp;theme=64470f610240a2cb772d6400\u0026amp;signature=3667abc88cc88626f39c8b945506376e479e0265b4e3cb480837b1a632e73a63\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"GPT-Image-2.6 Image Generation - AIReiter\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"- Asynchronous processing mode, returns a task ID for subsequent queries - OpenAI GPT-Image 2.6 family: Flare (faster image generation) and Sunburst (greater emphasis on detail and editing fidelity) - Supports text-to-image / image-to-image / reference image editing, with up to 10 reference images - Supports 14 aspect ratios (including auto), passed via aspect_ratio - Supports resolution tiers of 1K / 2K / 4K, as well as API-exclusive custom size in pixels - Supports animated GIF output: pass gif to output_format, with configurable frame count (2–9) and duration per frame - Each request returns 1 image (PNG or GIF) - Submitted prompts undergo platform sensitive word / safety review, and violating content will be directly rejected\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://none-ddc89343.mintlify.site/_mintlify/api/og/v2?division=GPT-Image-2.6\u0026amp;title=GPT-Image-2.6+Image+Generation\u0026amp;description=-+Asynchronous+processing+mode%2C+returns+a+task+ID+for+subsequent+queries%0A-+OpenAI+GPT-Image+2.6+family%3A+Flare+%28faster+image+generation%29+and+Sunburst+%28greater+em\u0026amp;theme=64470f610240a2cb772d6400\u0026amp;signature=3667abc88cc88626f39c8b945506376e479e0265b4e3cb480837b1a632e73a63\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/none-ddc89343/uT9ex3S7MwmkeLBG/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"AIReiter\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2563EB\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.aireiter.com/en/api-reference/images/gpt-image-2-6/generation\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/en/api-reference/images/gpt-image-2-6/generation.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.aireiter.com/en/api-reference/images/gpt-image-2-6/generation\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.aireiter.com/zh/api-reference/images/gpt-image-2-6/generation\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://docs.aireiter.com/ja/api-reference/images/gpt-image-2-6/generation\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ko\" href=\"https://docs.aireiter.com/ko/api-reference/images/gpt-image-2-6/generation\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.aireiter.com/zh/api-reference/images/gpt-image-2-6/generation\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.aireiter.com/#organization\",\"name\":\"AIReiter\",\"url\":\"https://docs.aireiter.com\"},{\"@type\":\"WebSite\",\"@id\":\"https://docs.aireiter.com#website\",\"name\":\"AIReiter\",\"url\":\"https://docs.aireiter.com\",\"publisher\":{\"@id\":\"https://docs.aireiter.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.aireiter.com/en/api-reference/images/gpt-image-2-6/generation#webpage\",\"url\":\"https://docs.aireiter.com/en/api-reference/images/gpt-image-2-6/generation\",\"name\":\"GPT-Image-2.6 Image Generation\",\"description\":\"- Asynchronous processing mode, returns a task ID for subsequent queries - OpenAI GPT-Image 2.6 family: Flare (faster image generation) and Sunburst (greater emphasis on detail and editing fidelity) - Supports text-to-image / image-to-image / reference image editing, with up to 10 reference images - Supports 14 aspect ratios (including auto), passed via aspect_ratio - Supports resolution tiers of 1K / 2K / 4K, as well as API-exclusive custom size in pixels - Supports animated GIF output: pass gif to output_format, with configurable frame count (2–9) and duration per frame - Each request returns 1 image (PNG or GIF) - Submitted prompts undergo platform sensitive word / safety review, and violating content will be directly rejected\",\"dateModified\":\"2026-11-06T06:27:54.936Z\",\"isPartOf\":{\"@id\":\"https://docs.aireiter.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.aireiter.com/en/api-reference/images/gpt-image-2-6/generation#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.aireiter.com/en/api-reference/images/gpt-image-2-6/generation#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Image Series\",\"item\":\"https://docs.aireiter.com/en/api-reference/images/gemini-3-pro/generation\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"GPT-Image-2.6 Image Generation\",\"item\":\"https://docs.aireiter.com/en/api-reference/images/gpt-image-2-6/generation\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.aireiter.com/en/api-reference/images/gpt-image-2-6/generation#apireference\",\"headline\":\"GPT-Image-2.6 Image Generation\",\"name\":\"GPT-Image-2.6 Image Generation\",\"description\":\"- Asynchronous processing mode, returns a task ID for subsequent queries - OpenAI GPT-Image 2.6 family: Flare (faster image generation) and Sunburst (greater emphasis on detail and editing fidelity) - Supports text-to-image / image-to-image / reference image editing, with up to 10 reference images - Supports 14 aspect ratios (including auto), passed via aspect_ratio - Supports resolution tiers of 1K / 2K / 4K, as well as API-exclusive custom size in pixels - Supports animated GIF output: pass gif to output_format, with configurable frame count (2–9) and duration per frame - Each request returns 1 image (PNG or GIF) - Submitted prompts undergo platform sensitive word / safety review, and violating content will be directly rejected\",\"url\":\"https://docs.aireiter.com/en/api-reference/images/gpt-image-2-6/generation\",\"mainEntityOfPage\":{\"@id\":\"https://docs.aireiter.com/en/api-reference/images/gpt-image-2-6/generation#webpage\"},\"dateModified\":\"2026-11-06T06:27:54.936Z\",\"publisher\":{\"@id\":\"https://docs.aireiter.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.aireiter.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"AIReiter\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"AIReiter","nav":{"global":null,"languages":[{"language":"zh","pages":[{"title":"zh","href":"/zh/api-reference/images/gpt-image-2-6/generation"}]},{"language":"en","groups":[{"group":"Overview","pages":[{"title":"AIReiter — AI Text, Image, and Video Generation API Platform","href":"/en/overview"}]},{"group":"Image Series","icon":"image","pages":[{"group":"Gemini-3-Pro-Image-preview (Nano banana pro)","icon":"image","pages":[{"title":"Nano Banana Pro Image Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/images/gemini-3-pro/generation"}]},{"group":"Gemini-2.5-Flash-Image-preview (Nano banana)","icon":"image","pages":[{"title":"Nano Banana Image Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/images/nano-banana/generation"}]},{"group":"Nano Banana V2","icon":"image","pages":[{"title":"Nano Banana V2 Image Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/images/nano-banana-v2/generation"}]},{"group":"Nano Banana 2.1","icon":"image","pages":[{"title":"Nano Banana 2.1 Image Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/images/nano-banana-2-1/generation"}]},{"group":"GPT-4o-image","icon":"image","pages":[{"title":"GPT-4o Image Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/images/gpt-4o/generation"}]},{"group":"GPT-Image-1.5","icon":"image","pages":[{"title":"GPT-Image-1.5 Image Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/images/gpt-image-1-5/generation"}]},{"group":"GPT-Image-2","icon":"image","pages":[{"title":"GPT-Image-2 Image Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/images/gpt-image-2/generation"},{"title":"GPT-Image-2 Official Channel Image Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/images/gpt-image-2-official/generation"}]},{"group":"GPT-Image-2.5","icon":"image","pages":[{"title":"GPT-Image-2.5 Image Generation","description":"- Asynchronous processing mode, returns a task ID for subsequent querying\n- OpenAI GPT-Image 2.5 family: Flare (faster daily tier) and Sunburst (more stable editing tier)\n- Supports text-to-image / image-to-image / reference image editing, with up to 10 reference images\n- Supports 14 aspect ratios (including auto), passed via aspect_ratio\n- Supports resolution tiers 1K / 2K / 4K, as well as API-specific size custom pixels\n- Supports background: `auto` / `opaque` / `transparent` (transparent background returns PNG)\n- quality / output_n are not available on this page; each request returns 1 image\n- Submitted prompts undergo platform sensitive word / safety moderation; non-compliant content will be directly rejected\n","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/images/gpt-image-2-5/generation"}]},{"group":"GPT-Image-2.6","icon":"image","pages":[{"title":"GPT-Image-2.6 Image Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/images/gpt-image-2-6/generation"}]},{"group":"Qwen Image 3.0","icon":"image","pages":[{"title":"Qwen Image 3.0 Image Generation and Editing","description":"- Asynchronous processing mode, returns a task ID for subsequent queries\n- Supports text-to-image and image-to-image. If no reference image is provided, it uses text-to-image\n- Supports up to 3 reference images and generating 1-6 images at a time\n- Supports 1K / 2K resolutions and 7 common image aspect ratios\n- Submitted prompts undergo platform sensitive word / security review, and violating content will be directly rejected\n","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/images/qwen-image-3/generation"},{"title":"Qwen Image 3.0 Pro Image Generation and Editing","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/images/qwen-image-3-pro/generation"}]},{"group":"Seedream-4.0","icon":"image","pages":[{"title":"Seedream V4 Image Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/images/seedream-4/generation"}]},{"group":"Seedream-4.5","icon":"image","pages":[{"title":"Seedream V4.5 Image Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/images/seedream-4.5/generation"}]},{"group":"Seedream V5 lite","icon":"image","pages":[{"title":"Seedream V5 lite Image Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/images/seedream-v5-lite/generation"},{"title":"Seedream V5 Image Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/images/seedream-v5-lite/seedream-5.0/generation"}]},{"group":"Seedream V5 Pro","icon":"image","pages":[{"title":"Seedream V5 Pro Image Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/images/seedream-v5-pro/generation"}]},{"group":"Seedream 5.0 Pro Layerize","icon":"image","pages":[{"title":"Seedream 5.0 Pro Layerize Layer Decomposition","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/images/seedream-v5-pro-layerize/generation"}]},{"group":"Seedream 5.0 Flash","icon":"image","pages":[{"title":"Seedream 5.0 Flash Image Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/images/seedream-v5-flash/generation"}]},{"group":"Seedream 5.0 Flash Layerize","icon":"image","pages":[{"title":"Seedream 5.0 Flash Layerize Layer Separation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/images/seedream-v5-flash-layerize/generation"}]},{"group":"Wan2.7-Image-Pro","icon":"image","pages":[{"title":"Wan2.7-Image-Pro Image Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/images/wan2-7-image-pro/generation"}]},{"group":"FLUX.2 Pro","icon":"image","pages":[{"title":"FLUX.2 Pro Image Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/images/flux-2-pro/generation"}]},{"group":"Midjourney V7","icon":"image","pages":[{"title":"Midjourney V7 Image Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/images/midjourney-v7/generation"},{"title":"Midjourney V7 Full-Image Redraw","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/images/midjourney-v7/retexture"},{"title":"Midjourney V7 Remove Background","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/images/midjourney-v7/remove-bg"}]},{"group":"Midjourney V8.1","icon":"image","pages":[{"title":"Midjourney V8.1 Image Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/images/midjourney-v8-1/generation"},{"title":"Midjourney V8.1 Full-Image Redraw","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/images/midjourney-v8-1/retexture"},{"title":"Midjourney V8.1 Remove Background","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/images/midjourney-v8-1/remove-bg"}]},{"group":"Midjourney V8.2","icon":"image","pages":[{"title":"Midjourney V8.2 Image Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/images/midjourney-v8-2/generation"}]},{"group":"Krea 2 Turbo","icon":"image","pages":[{"title":"Krea 2 Turbo Image Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/images/krea-2-turbo/generation"}]},{"group":"Z-Image Turbo","icon":"image","pages":[{"title":"Z-Image Turbo Image Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/images/z-image-turbo/generation"}]},{"group":"Grok Imagine Image 2.0","icon":"image","pages":[{"title":"Grok Imagine Image 2.0 Image Generation and Editing","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/images/grok-imagine-image-2-0/generation"},{"title":"Grok Imagine 2.0 Ext Image Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/images/grok-imagine-2-0-ext/generation"}]}]},{"group":"Video Series","icon":"video","pages":[{"group":"Kling 4.0","icon":"video","pages":[{"title":"Kling 4.0 Video Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/videos/kling-4-0/generation"}]},{"group":"Kling 3.0","icon":"video","pages":[{"title":"Kling 3.0 Video Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/videos/kling-3-0/generation"}]},{"group":"Kling v3 Omni","icon":"video","pages":[{"title":"Kling v3 Omni Video Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/videos/kling-v3-omni/generation"}]},{"group":"Kling 3.0 Turbo","icon":"video","pages":[{"title":"Kling 3.0 Turbo Video Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/videos/kling-3-0-turbo/generation"}]},{"group":"Kling 3.0 Motion Control","icon":"video","pages":[{"title":"Kling 3.0 Motion Control Video Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/videos/kling-3-motion-control/generation"}]},{"group":"Grok Imagine 1.5","icon":"video","pages":[{"title":"Grok Imagine 1.5 Video Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/videos/grok-imagine-1-5/generation"}]},{"group":"FLUX 3 Video","icon":"video","pages":[{"title":"FLUX 3 Video Video Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/videos/flux-3-video/generation"}]},{"group":"FLUX 3 Max","icon":"video","pages":[{"title":"FLUX 3 Max Video Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/videos/flux-3-max/generation"}]},{"group":"VEO3.1","icon":"video","pages":[{"title":"VEO3.1 Video Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/videos/veo3-1/generation"}]},{"group":"VEO3.1 Fast","icon":"video","pages":[{"title":"VEO3.1 Fast Video Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/videos/veo3-1-fast/generation"}]},{"group":"Gemini Omni Flash Ext / 1.1","icon":"video","pages":[{"title":"Gemini Omni Flash Ext Video Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/videos/gemini-omni-flash-ext/generation"}]},{"group":"Seedance-1.5-pro","icon":"video","pages":[{"title":"Seedance-1.5-pro Video Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/videos/seedance-1-5-pro/generation"}]},{"group":"Seedance Pro Fast","icon":"video","pages":[{"title":"Seedance Pro Fast Video Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/videos/seedance_pro_fast/generation"}]},{"group":"Seedance Pro","icon":"video","pages":[{"title":"Seedance Pro Video Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/videos/seedance_pro/generation"}]},{"group":"Seedance 2.0","icon":"video","pages":[{"title":"Seedance 2.0 Video Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/videos/seedance2/generation"}]},{"group":"Seedance 2.0 Fast","icon":"video","pages":[{"title":"Seedance 2.0 Fast Video Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/videos/seedance2_fast/generation"}]},{"group":"Seedance 2.0 Mini","icon":"video","pages":[{"title":"Seedance 2.0 Mini Video Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/videos/seedance2_mini/generation"}]},{"group":"Seedance 2.5","icon":"video","pages":[{"title":"Seedance 2.5 Video Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/videos/seedance2_5/generation"}]},{"group":"HappyHorse 1.0","icon":"video","pages":[{"title":"HappyHorse 1.0 Video Generation and Editing","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/videos/happyhorse-1-0/generation"}]},{"group":"HappyHorse 1.1","icon":"video","pages":[{"title":"HappyHorse 1.1 Multi-Reference Image Video Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/videos/happyhorse-1-1/generation"}]},{"group":"MiniMax H3","icon":"video","pages":[{"title":"MiniMax H3 Video Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/videos/minimax-h3/generation"},{"title":"MiniMax H3 Turbo Video Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/videos/minimax-h3/turbo"}]},{"group":"Wan 3.0","icon":"video","pages":[{"title":"Wan 3.0 Video Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/videos/wan-3-0/generation"}]},{"group":"Muse Video Ext","icon":"video","pages":[{"title":"Muse Video Ext Video Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/videos/muse-video-ext/generation"}]},{"group":"Vidu Q4","icon":"video","pages":[{"title":"Vidu Q4 Video Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/videos/vidu-q4/generation"}]}]},{"group":"Audio Series","icon":"music","pages":[{"group":"Seed Audio 1.0","icon":"music","pages":[{"title":"Seed Audio 1.0 Audio Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/audios/seed-audio-1-0/generation"}]},{"group":"Suno","icon":"music","pages":[{"title":"Suno Music Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/audios/suno/generation"},{"title":"Suno Lyrics Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/audios/suno/lyrics"},{"title":"Suno Continuation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/audios/suno/extend"},{"title":"Suno Cover","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/audios/suno/cover"}]},{"group":"Flow Music","icon":"music","pages":[{"title":"Flow Music Music Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/audios/flow-music/generation"},{"title":"Flow Music Lyrics Generation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/audios/flow-music/lyrics"},{"title":"Flow Music Continuation","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/audios/flow-music/extend"},{"title":"Flow Music Replacement","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/audios/flow-music/replace"},{"title":"Flow Music Cover","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/audios/flow-music/cover"},{"title":"Flow Music Stems","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/audios/flow-music/stems"},{"title":"Flow Music Upload","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/audios/flow-music/upload"},{"title":"Flow Music Download","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/audios/flow-music/download"},{"title":"Flow Music Video","api":"POST https://aireiter.com/api/openapi/submit","href":"/en/api-reference/audios/flow-music/video"}]}]},{"group":"Text Series","icon":"message","pages":[{"group":"Claude Messages API","icon":"message","pages":[{"title":"Claude Messaging API","api":"POST https://aireiter.com/api/v1/messages","href":"/en/api-reference/text/claude-messages-api/endpoint"}]},{"group":"OpenAI Chat Completions API","icon":"message","pages":[{"title":"OpenAI Chat Completions API","api":"POST https://aireiter.com/api/v1/chat/completions","href":"/en/api-reference/text/openai-chat-completions-api/endpoint"}]},{"group":"OpenAI Responses API","icon":"message","pages":[{"title":"OpenAI Responses API","api":"POST https://aireiter.com/api/v1/responses","href":"/en/api-reference/text/openai-responses-api/endpoint"}]},{"group":"Jev","icon":"message","pages":[{"title":"Jev Decision API","api":"POST https://aireiter.com/api/v1/systemone","href":"/en/api-reference/text/jev/endpoint"}]}]},{"group":"Task Management","icon":"list-check","pages":[{"title":"Get Task Status","api":"POST https://aireiter.com/api/openapi/query","href":"/en/api-reference/tasks/status"},{"title":"Query Balance","api":"GET https://aireiter.com/api/openapi/balance","href":"/en/api-reference/tasks/balance"}]}]},{"language":"ja","pages":[{"title":"ja","href":"/ja/api-reference/images/gpt-image-2-6/generation"}]},{"language":"ko","pages":[{"title":"ko","href":"/ko/api-reference/images/gpt-image-2-6/generation"}]}]},"basePath":"","title":"GPT-Image-2.6 Image Generation - AIReiter","buildId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","deploymentId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-CBsVopKK.js","utils-DZAk68jJ.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-D32AYZrP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-D_A5_cny.js","snippetPresets-xNRfS9th.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BIB25-tq.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CydJ4w4j.js","shallow-CYPBeQSG.js","getApiPlaygroundDisplay-A5xJVBOu.js","CodeSnippet-BVRTgi3m.js","CodeSnippets-DjD6BSlt.js","Page-Dr40SSJq.js","getPastedJson-D4V4JyrR.js","icon-uhcnG22T.js","MethodPill-CM-ZQdGH.js","DuplicateIcon-B_WnOiNf.js","createIcon-CJsb8utt.js","DynamicMarkdown-D-2HDKEp.js","SectionHeading-KP5xmMgQ.js","axios-vUo_bRtp.js"]}