GPT Image 2.5 Sunburst
Newopenai/gpt-image-2.5-sunburst
OpenAIText → imageREST
Input$8.00per 1M tokens
Output$30.00per 1M tokens
EndpointPOST /v2/image/gpt-image-2/generate REST

Quick start
Send a JSON request to the endpoint below; the response carries the result.
curl -X POST https://api.widelabs.tr/v2/image/gpt-image-2/generate \ -H "Authorization: Bearer $WIDELABS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "prompt": "A tiny red flower on a white background", "size": "1024x1024", "quality": "high", "model": "openai/gpt-image-2.5-sunburst" }'
import os
import requests
resp = requests.post(
"https://api.widelabs.tr/v2/image/gpt-image-2/generate",
headers={"Authorization": "Bearer " + os.environ["WIDELABS_API_KEY"]},
json={
"prompt": "A tiny red flower on a white background",
"size": "1024x1024",
"quality": "high",
"model": "openai/gpt-image-2.5-sunburst"
},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.widelabs.tr/v2/image/gpt-image-2/generate", { method: "POST", headers: { Authorization: `Bearer ${process.env.WIDELABS_API_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ prompt: "A tiny red flower on a white background", size: "1024x1024", quality: "high", model: "openai/gpt-image-2.5-sunburst" }), }); console.log(await resp.json());
Parameters
| Name | Type | Description |
|---|---|---|
store_output | "provider" | "wl1d" | "wl7d" | "wl30d" default "provider" | Where this request's output media is hosted, and for how long. `provider` (default) returns a Wide Labs CDN link that live-proxies the provider for 1 hour — the same hour the task record itself lives. `wl1d` / `wl7d` / `wl30d` copy the output into Wide Labs own storage and keep BOTH the link and the task record for 1, 7 or 30 days,… |
model | "openai/gpt-image-2" | "openai/gpt-image-2.5-sunburst" | "openai/gpt-image-2.5-flare" default "openai/gpt-image-2" | Which model in the family generates the image. The 2.5 variants are billed per token rather than per image — see `GET /v2/pricing`. |
prompt required | string | Text prompt describing the desired image |
size | "1024x768" | "1024x1024" | "1024x1536" | "1536x1024" | "2560x1440" | "3840x2160" default "1024x1024" | Output image size (WxH). Limited to priced sizes for exact billing; both sides are multiples of 16 (the provider's rule). |
quality | "low" | "medium" | "high" | "auto" | "xhigh" | "max" default "high" | Generation quality (higher = slower): `low`, `medium`, `high`, `auto`; the 2.5 variants also take `xhigh` and `max`. |
n | integer default 1 | Number of images to generate (1-10) |
output_format | "png" | "jpeg" default "png" | Output image format |
output_compression | integer default 100 | Compression strength (0=none, 100=max) |
image | string | string[] | Optional. Omit for text-to-image; a single PNG for edit; a list of PNGs for multi-image composition. Each PNG is base64, a data URI, or a Wide Labs file link from `POST /v2/files` (`https://cdn.widelabs.tr/content/...`, up to 20 MB; the file must still be live when the task runs). |
mask | string | Optional PNG mask (single-image edit mode only; same dimensions as image): base64, a data URI, or a Wide Labs file link from `POST /v2/files` (`https://cdn.widelabs.tr/content/...`, up to 20 MB; the file must still be live when the task runs). |
webhook_url | string | HTTPS URL to receive a signed completion webhook when the async task reaches a terminal state (requires an API key, "async": true and direct mode; otherwise 422). See the Webhooks section for the delivery payload and events, and GET /v2/customer/webhook-secret for the signing secret + verification. |
Related
Similar models
OpenAI
GPT Image 2
openai/gpt-image-2
Text → image
From$0.15
per image
OpenAINew
GPT Image 2.5 Flare
openai/gpt-image-2.5-flare
Text → image
Input$8.00
Output$30.00
per 1M tokens
OpenAI
GPT Image 1.5 T2I
openai/gpt-image-1.5-T2I
Text → image
Price$0.036
per image
OpenAI
GPT Image 1.5 I2I
openai/gpt-image-1.5-I2I
Image → image
Price$0.04
per image
Start building on Wide Labs Compute
Create an account, add credit and send your first request with the SDK you already use.