Use Sunburst for detailed compositions and precise visual instructions. Reference image edits · NewRouters Images API
/v1/tasksMODELgpt-image-2.6-sunburstCode examples & responses
/v1/taskscurl "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"
]
}
}'const apiBaseUrl = "https://newrouters.com";
const apiKey = process.env.API_KEY;
if (!apiKey) throw new Error("Set API_KEY in your server environment");
const response = await fetch(apiBaseUrl + "/v1/tasks", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer " + apiKey
},
body: JSON.stringify({
"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"
],
"resolution": "2k"
}
})
});
const result = await response.json();
if (!response.ok) throw new Error(JSON.stringify(result));
console.log(result);import json
import os
from urllib.request import Request, urlopen
api_base_url = "https://newrouters.com"
api_key = os.environ["API_KEY"]
body = json.loads("{\"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\"],\"resolution\":\"2k\"}}")
request = Request(
api_base_url + "/v1/tasks",
data=json.dumps(body).encode("utf-8"),
headers={
"Content-Type": "application/json",
"Authorization": "Bearer " + api_key
},
method="POST",
)
with urlopen(request) as response:
print(json.load(response))The API origin is filled in. Set API_KEY before running. Examples never submit automatically.
202Task accepted
{
"id": "TASK_ID",
"status": "pending",
"model": "gpt-image-2.6-sunburst",
"result": null,
"error": null
}200Successful result
{
"id": "TASK_ID",
"status": "succeeded",
"model": "gpt-image-2.6-sunburst",
"result": {
"assets": [
"https://example.com/output.png"
]
},
"error": null
}- Create a task01
POST /v1/tasksSubmit model + input. Save the returned task id.
202 · pending - Poll status02
GET /v1/tasks/{id}Wait and poll again while pending or processing.
Wait → poll again - Read the outcome03
result.assets[] / errorRead the result for the terminal task state.
succeeded→ assetsfailed→ error
Example outputs
View and try on the model page ↗Generated through this API. Costs are the amounts charged on each task receipt.

Prompt and parameters
International Swiss-style design festival poster for a fictional event. Headline in huge condensed sans-serif: "SIGNAL / NOISE", with the Chinese title "信号与噪声" set large beneath it. A strict 12-column grid. Small precise text blocks: "Design Week 2027", "03.14 — 03.21", "Shanghai · West Bund Art Center", "上海 · 西岸艺术中心", and a six-line programme: "Mon Typography after AI", "Tue Systems for screens", "Wed Color as interface", "Thu Motion & rhythm", "Fri Open studios", "Sat Closing night". One bold geometric graphic: concentric offset circles in vermilion over warm off-white paper, deep black ink, subtle risograph texture. Every word spelled exactly as written, crisp kerning, no extra text, no logos.
aspect_ratio: 3:4 · resolution: 2k · quality: high · output_format: jpeg
Prompt and parameters
Premium matte graphite wireless over-ear headphones in a three-quarter view, brushed aluminium sliders, soft woven fabric headband, precise studio lighting with a thin warm rim light. Isolated product only, clean anti-aliased edges, no shadow, no floor, no text, no logo.
aspect_ratio: 1:1 · resolution: 2k · quality: high · background: transparent · output_format: png
Prompt and parameters
A meticulously detailed isometric illustration of one fictional city block at dusk, cut away to show interiors: a ramen bar with a sign reading "RAMEN 拉面", a bookshop named "Paper Moon", a bike repair shop "Spoke & Chain", a rooftop garden with string lights, a laundromat with spinning machines, and a tiny jazz club "Blue Note 蓝调". Dozens of small people doing distinct activities, warm window light, soft pastel palette with deep navy sky, clean vector-like rendering with subtle grain. Every sign spelled exactly as written, no other text.
aspect_ratio: 16:9 · resolution: 2k · quality: high · output_format: jpeg
Prompt and parameters
Use the running shoe from the reference image and keep its exact design, materials, colors and proportions. Restage it as a premium e-commerce hero shot: the shoe stands on a pale travertine plinth in a calm, sunlit minimalist gallery with soft shadows and a single potted olive tree in the background. Warm daylight, 85mm product photography, crisp detail. No text, no logos.
aspect_ratio: 4:5 · resolution: 2k · quality: high · output_format: jpegUse Sunburst for detailed compositions and precise visual instructions. Use the NewRouters model ID gpt-image-2.6-sunburst.
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.
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.