Skip to content
NewRouters/Documentation
IMAGE API

GPT Image 2.6 Sunburst · Reference image edits

Use Sunburst for detailed compositions and precise visual instructions. Reference image edits · NewRouters Images API

POST/v1/tasksMODELgpt-image-2.6-sunburst
Official reference gpt-image-2.6-sunburstChecked 2026-11-05Official docs
Code examples & responses
Request & responseExamples
POST/v1/tasks
Server-side request
curl "https://newrouters.com/v1/tasks" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  --data '{
  "model": "gpt-image-2.6-sunburst",
  "input": {
    "prompt": "Change the cup to blue. Preserve the handle and background.",
    "size": "auto",
    "quality": "low",
    "output_format": "jpeg",
    "images": [
      "https://example.com/cup.png"
    ]
  }
}'

The API origin is filled in. Set API_KEY before running. Examples never submit automatically.

ResponseSelected fields · illustrative values
202Task accepted
JSON
{
  "id": "TASK_ID",
  "status": "pending",
  "model": "gpt-image-2.6-sunburst",
  "result": null,
  "error": null
}
200Successful result
JSON
{
  "id": "TASK_ID",
  "status": "succeeded",
  "model": "gpt-image-2.6-sunburst",
  "result": {
    "assets": [
      "https://example.com/output.png"
    ]
  },
  "error": null
}
Retrieve results after submission
Request lifecycleAsynchronous media
  1. Create a task01
    POST /v1/tasks

    Submit model + input. Save the returned task id.

    202 · pending
  2. Poll status02
    GET /v1/tasks/{id}

    Wait and poll again while pending or processing.

    Wait → poll again
  3. Read the outcome03
    result.assets[] / error

    Read the result for the terminal task state.

    succeeded→ assetsfailed→ error

Use Sunburst for detailed compositions and precise visual instructions. Use the NewRouters model ID gpt-image-2.6-sunburst.

API guide · Text to image

Replace the example URL in input.images with an accessible reference image. Describe the change and what to preserve. Choose JPEG, PNG or WebP for edits.

Terminal window
curl "https://newrouters.com/v1/tasks" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
--data '{
"model": "gpt-image-2.6-sunburst",
"input": {
"prompt": "Change the cup to blue. Preserve the handle and background.",
"size": "auto",
"quality": "low",
"output_format": "jpeg",
"images": [
"https://example.com/cup.png"
]
}
}'

Save the task ID and poll GET /v1/tasks/{id} with the same key. On success, download the file from result.assets.

OpenAI · GPT Image 2.6 Sunburst · OpenAI Images API