MuseSpark
MuseSpark
Models & toolsImage models

GPT Image 2.6 Flare API guide

GPT Image 2.6 Flare API: Use GPT Image 2.6 Flare for text-to-image generation or reference-image editing. Choose quality, resolution, and aspect ratio using the parameters below.

Model overview

Use GPT Image 2.6 Flare for text-to-image generation or reference-image editing. Choose quality, resolution, and aspect ratio using the parameters below.

API integration

DocumentationValue
API invocation identifiergpt-image-2.6-flare
IntegrationAsync task API

Use this invocation identifier in API requests. Check your authorized model catalog for access. Follow the Quickstart for your first complete call.

Request parameters

Select a mode to highlight its required inputs. Mode selection does not change the API field names.

Studio presets describe the form setup, not guaranteed server defaults. Send preset values explicitly to reproduce them.

promptstringNon-nullRequired

Text prompt describing the image to generate or how to edit the input images.

imagesarray<string>Non-nullConditional

Required for Image Editing and References.

Additional requirements depend on other values. See model rules.

Up to 16 reference image URLs or image Data URLs. Omit for text-to-image generation.

Item count: maximum 16.

Media types: image/*.

qualitystringNon-nullRequired

Select output quality explicitly. Medium is selected by default. Auto is dynamic and has no fixed estimate.

Allowed values: "auto", "low", "medium", "high", "xhigh", "max".

Studio preset: "medium".

resolutionstringNon-nullOptional

Output resolution tier: 1K, 2K, or 4K. Defaults to 1K.

Allowed values: "1k", "2k", "4k".

Studio preset: "1k".

aspect_ratiostringNon-nullOptional

Output aspect ratio. Select one of the ten supported ratios. Defaults to 1:1. Each ratio is combined with the resolution preset to select a concrete image size.

Allowed values (10)

Allowed values: "1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3", "5:4", "4:5", "21:9".

Studio preset: "1:1".

batch_sizeintegerNon-nullOptional

Standard quantity control field. The allowed range for this item is 1-15.

Repeats MuseSpark execution within one logical task. This is separate from a model-native output count.

Value: minimum 1; maximum 15.

Studio preset: 1.

No parameters match. Clear the search or reset the filters.

Model rules

Input modes

Select a mode by supplying its required public inputs. The mode identifier describes a documentation/form choice; do not send input_mode as a model parameter.

ModeRequired inputs
Text to ImageNo reference media required
Image Editing and Referencesimages
  • When the input mode is Text to Image, omit images.
  • When the input mode is Image Editing and References, provide images; keep images, when supplied, at least 1 items.

Parameter meaning

  • Describe the subject, visual style, composition, and lighting in the images prompt.
  • Use images as visual references for editing or guided generation.
  • Image editing requires at least one reference in images. Use resolution and aspect_ratio as separate controls; supplier-native size and output-count fields are not exposed.

batch_size controls repeated MuseSpark executions. Output grouping, sequential image generation, and video shot count are separate concepts.

Request examples

Replace example media URLs and YOUR_... input identifiers with your own valid resources. Examples are checked against the exported item schema; media access and paid execution are separate runtime checks.

Set MUSESPARK_API_KEY and a stable MUSESPARK_REQUEST_ID before submitting. Preserve the request ID for retries of the same request and use a new ID for new work. Python examples use requests; JavaScript examples use Node.js 20 or later. The standalone Quickstart includes task polling and recovery.

Generate a product poster

curl --fail-with-body 'https://api.musespark.ai/api/v1/openapi/task' \
  -H "Authorization: Bearer $MUSESPARK_API_KEY" \
  -H "X-Idempotency-Key: $MUSESPARK_REQUEST_ID" \
  -H 'Content-Type: application/json' \
  -d '{
  "item_key": "gpt-image-2.6-flare",
  "parameters": {
    "quality": "high",
    "batch_size": 1,
    "resolution": "2k",
    "aspect_ratio": "4:5",
    "prompt": "A ceramic travel cup on a warm neutral background, soft studio lighting, centered product photography"
  }
}'

Parameters used: quality · batch_size · resolution · aspect_ratio · prompt.

Edit a product reference

curl --fail-with-body 'https://api.musespark.ai/api/v1/openapi/task' \
  -H "Authorization: Bearer $MUSESPARK_API_KEY" \
  -H "X-Idempotency-Key: $MUSESPARK_REQUEST_ID" \
  -H 'Content-Type: application/json' \
  -d '{
  "item_key": "gpt-image-2.6-flare",
  "parameters": {
    "quality": "high",
    "batch_size": 1,
    "resolution": "2k",
    "aspect_ratio": "4:5",
    "prompt": "Keep the cup shape and logo unchanged and replace the background with a soft blue studio backdrop",
    "images": [
      "https://example.com/cup-reference.png"
    ]
  }
}'

Parameters used: quality · batch_size · resolution · aspect_ratio · prompt · images.

Output

The intended output is a generated or edited image.

Creation returns a task ID inside data. Poll that task until completion, then save data.result.output_urls and any data.result.batch_results. See the task lifecycle for terminal states, result retention, and errors.

Troubleshooting

An editing request has no reference image. Provide a nonempty images array for image editing; use text-to-image for a prompt without references.

images · prompt

For rejected inputs, check the field type, accepted values, and conditional requirements in Request parameters and Model rules. Correct the affected fields before submitting again.

If creation times out, preserve the request identity and any known task ID. Follow Errors, timeouts and retries before submitting again.

The public input snapshot was exported on 2026-11-09. Current prices and availability are listed in the model center.