Skip to main content
Skip to main content

GPT Image 2.6 Flare

GPT Image 2.6 Flare is OpenAI's image generation and editing model for fast creative iteration. Create images from text, refine visual references, and explore product, advertising, and design concepts.

  • 99.9% SLA
  • Official Discounts
  • Pay-as-you-go
  • Fast & Low Latency
Brand:OpenAIPrice: ≈ $0.017507 / image
Open docs

API DOCS / SIMPLIFIED

Task API overview

Create a task for GPT Image 2.6 Flare with its model ID and parameters, then use the returned task ID to check its status. Include your MuseSpark API key in each request.

Input mode
X-API-Key on every request
POST /api/v1/openapi/task
GET /api/v1/openapi/task/status/{task_id}
Async task workflow

Create a task and retrieve its status

Replace the API key placeholder and review the example parameters before sending the request. Each example checks status once; repeat the status request until the task finishes. For cURL, also replace the task ID placeholder with the ID returned by the create request.

Task API

API_KEY="<API_KEY>"
BASE_URL="https://api.musespark.ai"
REQUEST_BODY='{
  "model_id": "gpt-image-2.6-flare",
  "parameters": {
    "prompt": "A cinematic portrait with soft lighting",
    "quality": "medium",
    "resolution": "1k",
    "aspect_ratio": "1:1",
    "batch_size": 1,
    "output_format": "png",
    "background": "auto",
    "complexity": "low"
  }
}'

CREATE_RESPONSE=$(curl --request POST "$BASE_URL/api/v1/openapi/task" \
  --header "X-API-Key: $API_KEY" \
  --header "Content-Type: application/json" \
  --data-raw "$REQUEST_BODY")

printf '%s\n' "$CREATE_RESPONSE"
TASK_ID="<TASK_ID_FROM_CREATE_RESPONSE>"

curl "$BASE_URL/api/v1/openapi/task/status/$TASK_ID" \
  --header "X-API-Key: $API_KEY"

Request and response

The request creates a task; the response shown is an example from a status lookup. Inline comments explain fields and must be removed before sending or parsing the copied JSON.

Create task request

Send this request body to the task creation endpoint with values appropriate for your use case.

Request Body · JSON
{
"model_id": "gpt-image-2.6-flare",// target model
"parameters": {
"prompt": "A cinematic portrait with soft lighting",// prompt describing the image to generate or how to edit the input images
"quality": "medium",// select output quality explicitly. Medium is selected by default. Auto is dynamic and has no fixed estimate · enum: Auto | Low | Medium | High | Extra High | Max
"resolution": "1k",// output resolution tier: 1K, 2K, or 4K. Defaults to 1K. For GIF, the resolution, aspect ratio, and frame count determine the frame dimensions · enum: 1K | 2K | 4K
"aspect_ratio": "1:1",// output aspect ratio. Auto lets the selected provider choose the ratio when supported, with a square fallback. The default is 1:1. Explicit ratios are combined with the resolution preset · enum: Auto | 1:1 | 16:9 | 9:16 | 4:3 | 3:4 | 3:2 | 2:3 | 5:4 | 4:5 | 21:9
"batch_size": 1,// standard quantity control field. The allowed range for this item is 1-15 · min 1 · max 15
"output_format": "png",// choose PNG, JPEG, WebP, animated GIF, or SVG. SVG is text-to-image only. GIF frame dimensions depend on resolution, aspect ratio, and frame count. With Auto aspect ratio, the provider chooses the frame dimensions. GIF and SVG do not support output compression · enum: PNG | JPEG | WEBP | GIF | SVG
"background": "auto",// optional background treatment. Omit to use the provider default. Transparent output supports PNG, WebP and SVG; JPEG and GIF are excluded · enum: Auto | Opaque | Transparent
"complexity": "low"// optional GPT Image 2.6 planning complexity, independent of output quality. Omit to use the provider default · enum: Low | Medium | High
}
}

Available parameters and their requirements depend on the selected model or tool and input mode.

Task status response

A completed task may return output in its result. The result fields and output format depend on the model or tool.

Response Body · JSON
{
"code": 200,// 200 on success
"msg": "success",
"data": {
"task_id": "task_01HQX8N2QJ0YQ8Q0T7G6N4V6K2",// use for status polling
"status": "completed",// enum: queued | running | completed | failed | cancelled
"progress": 100,// 0-100 if available
"completed_at": 1760000000,// unix timestamp
"expires_at": 1760001800,// unix timestamp
"result": {
"output_urls": [// generated files
"https://cdn.example.com/output.png"
]
}
}
}

Poll every 2-5 seconds and stop once status becomes completed, failed, cancelled.