GPT Image 2.6 Sunburst

OpenAIImage generationper-tokensave 25% vs official

GPT Image 2.6 Sunburst through an official OpenAI API key, drawn natively at 1K, 2K and 4K, with no upscaling. Billed by actual text and image input tokens plus image output tokens; size, resolution and quality set the output tokens. Quotes reserve estimated output tokens; inputs are settled at completion.

Price

$3.75 Input · $22.50 Output / 1M

Max

$3.375 in

$20.25 out

$0.837 cached

Endpoint

/images/tasks

Delivery pattern

Async task lifecycle

Availability

Available now

API documentation

Build and copy the request

Choose the options this model accepts. The code below updates as you choose.

Step-by-step in the docs
POSThttps://apiking.ai/v1/images/tasksBearer API keyAsync task

OptionsOnly options published for this model are shown.

# Requires curl and jq
API_KEY="${API_KEY:-YOUR_API_KEY}"

# 1. Submit once
SUBMITTED=$(curl --fail-with-body -sS https://apiking.ai/v1/images/tasks \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: model-docs-$(date +%s)-$$" \\
  -d '{
  "model": "GPT Image 2.6 Sunburst",
  "prompt": "A cinematic scene with careful composition",
  "size": "auto",
  "resolution": "1K",
  "n": 1,
  "quality": "auto",
  "background": "auto",
  "moderation": "low",
  "output_format": "png",
  "frame_count": 9,
  "frame_duration_ms": 200
}')
TASK_ID=$(printf '%s' "$SUBMITTED" | jq -r '.task_id // .id // empty')
if [ -z "$TASK_ID" ]; then
  printf '%s\n' "$SUBMITTED" >&2
  exit 1
fi
echo "task_id=$TASK_ID"

# 2. Poll until terminal
while true; do
  STATUS_JSON=$(curl --fail-with-body -sS \
    "https://apiking.ai/v1/images/tasks/$TASK_ID" \
    -H "Authorization: Bearer $API_KEY")
  STATUS=$(printf '%s' "$STATUS_JSON" | jq -r '.status // empty' | tr '[:upper:]' '[:lower:]')
  echo "status=$STATUS"
  case "$STATUS" in
    completed|succeeded|success) break ;;
    failed|failure|cancelled|canceled)
      printf '%s\n' "$STATUS_JSON" | jq .
      exit 1
      ;;
  esac
  sleep 3
done

# 3. Fetch the final result
curl --fail-with-body -sS \
  "https://apiking.ai/v1/images/tasks/$TASK_ID/content" \
  -H "Authorization: Bearer $API_KEY" | jq .
  1. 1Submit the task
  2. 2Poll the status
  3. 3Fetch the content

This model requires public media URLs. Upload a local file first, then put public_url into the model request. Avoid large Base64 bodies.

Read the upload guide

Parameter reference

model
stringrequired

Exact model identifier for this request.

gpt-image-2.6-sunburst
prompt
stringrequired

Instruction describing the desired result.

size
stringoptional

Aspect ratio or exact pixels such as 1600x1200. Exact dimensions must be multiples of 16; sides <=3840, ratio <=3:1, area 655360-8294400. For output_format gif, size is one frame: auto (896x896 frames on our current channel) or WIDTHxHEIGHT in multiples of 16; all frames together may have up to 8,294,400 pixels.

resolution
stringoptional

Requested output resolution.

1K2K4K
n
integeroptional
1234
images
string[]optional

Reference images; data URLs are materialized before upstream submission.

quality
stringoptional

Requested output quality tier.

autolowmediumhighxhighmax

Response lifecycle

Task status, terminal states, and result response examples.

Submit
{
  "id": "task_xxx",
  "task_id": "task_xxx",
  "object": "image.task",
  "model": "GPT Image 2.6 Sunburst",
  "status": "queued"
}
Content
{
  "created": 1720000000,
  "data": [
    {
      "url": "https://media.example/result.png"
    }
  ]
}

Waiting

queued · submitted · in_progress · processing

Success

completed · succeeded · success

Failure

failed · failure · cancelled · canceled

Errors and production

Retry rules, idempotency, and the minimum production checklist.

400 / 422

Fix the request fields or unsupported option; do not retry unchanged.

401

Check that the API key is present, active, and sent as a Bearer token.

402

The account balance is insufficient.

409

The Idempotency-Key is processing or was reused with another body.

429

Back off according to Retry-After before retrying.

5xx

Retry with exponential backoff and keep the original Idempotency-Key.

  • Keep API keys on your server for public mobile and browser applications.
  • Set a unique Idempotency-Key for every billable async operation.
  • Persist task_id so polling can resume after a restart.
  • Use a timeout for every HTTP request and surface the request ID in support reports.
  • Read live model metadata instead of hard-coding prices and supported options.

Price and tiers

save 25% vs official

List price, for everyone.

Token typeUSD / 1M tokens
Text input$3.75
Image input$5.95
Image output$22.50
Cached text input$0.93
Cached image input$1.55

Image quotes estimate output tokens. Final billing includes actual input, cached input and output tokens.

The price shown here is exactly what you are billed — failed calls are refunded automatically.

GPT Image 2.6 Sunburst at a glance

Model ID
GPT Image 2.6 Sunburst
Type
Image generation
Vendor
OpenAI
Resolutions
1K · 2K · 4K
Reference inputs
Up to 16 images
Endpoint
POST /v1/images/tasks
Delivery
Async task: poll it or get a webhook
Billed by
Per token

What GPT Image 2.6 Sunburst costs

  • One request with a 2,000-token prompt and a 500-token answer$0.01875
  • 1,000 such requests$18.75
  • 1,000 such requests with the prompt read from cache$13.11

At the list price. Failed calls are not charged.

Common questions

How much does the GPT Image 2.6 Sunburst API cost?

GPT Image 2.6 Sunburst costs $3.75 Input · $22.50 Output / 1M tokens on APIKing. That is 25% below the official list price. Pay as you go from your balance.

How do I call the GPT Image 2.6 Sunburst API?

Send a request to https://apiking.ai/v1/images/tasks with your APIKing key as a Bearer token and set the model to GPT Image 2.6 Sunburst. The call returns a task. Poll it until it finishes, or set a webhook to be told when it does.

What is the model ID of GPT Image 2.6 Sunburst?

Set the model parameter to GPT Image 2.6 Sunburst.

Which resolutions does GPT Image 2.6 Sunburst support?

Resolutions: 1K, 2K, 4K.

Can GPT Image 2.6 Sunburst work from reference images?

Yes. Reference inputs: Up to 16 images.

Does GPT Image 2.6 Sunburst support prompt caching?

Yes. A prompt read from cache costs $0.93 per 1M tokens instead of $3.75.

Am I charged when a GPT Image 2.6 Sunburst call fails?

A failed call or a failed generation is not charged. Tasks are estimated first and settled at what they actually used.

Compare GPT Image 2.6 Sunburst with similar models

ModelVendorPriceSpec
GPT Image 2.6 SunburstOpenAI$3.75 in · $22.50 out / 1MUp to 4K
GPT Image 2.5 ExtOpenAI$0.006 / requestUp to 4K
GPT Image 2OpenAI$0.006 / requestUp to 4K
GPT Image 2.6 FlareOpenAI$3.75 in · $22.50 out / 1MUp to 4K
Nano Banana ProGoogle$0.0196 / requestUp to 4K
Seedream 5.5ByteDance$0.017075 / requestUp to 2K