GPT Image 2.5 API
OpenAI GPT Image 2.5 in two variants: Sunburst for premium reference-faithful renders and edits, Flare for the same quality tier at half the latency. Up to 4K output, optional reference images and masks. Integrate this model via REST with endpoint docs, parameters, and code examples.
Get API Key
Create auth keys for apps and agents
See Usage
Track requests, credits, and logs
Buy Credits
Top up prepaid API capacity
API Endpoint
/api/v1/models/gpt-image-2-5/runTest This Model
Run a real request through the API pipeline and inspect the exact input and output your integration will handle. Uses your credits like any API call; failed runs are refunded automatically.
LLM.txt
For AI assistants
Copy this model's documentation into Claude, GPT, or any AI for instant integration help.
/llm/gpt-image-2-5.txtOpenAPI Spec
Swagger compatible
Import into Postman, Swagger UI, or generate client SDKs in any language.
/api/openapiParameters
Input parameters accepted by this model
| Parameter | Type | Default |
|---|---|---|
promptrequired | string | - |
model | enum | sunburst |
image_urls | array | - |
mask_url | string | - |
image_size | enum | 1024x1024 |
quality | enum | high |
num_images | integer | 1 |
output_format | enum | png |
Supported Aspect Ratios
See also
Related endpoints on this model — you may need a different apiId for a different operation (e.g. image edit vs generation).
- Previous generation/api/v1/models/gpt-image-2/run
Code Examples
Generate image (Sunburst) — copy and paste to get started
curl -X POST "https://pixeldojo.ai/api/v1/models/gpt-image-2-5/run" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "a watercolor fox",
"model": "sunburst",
"quality": "high",
"image_size": "1024x1024"
}'Response Format
Submit Response (202 Accepted)
{
"jobId": "job_abc123...",
"status": "pending",
"statusUrl": "https://pixeldojo.ai/api/v1/jobs/job_abc123...",
"creditCost": 2,
"creditsRemaining": 95,
"expiresAt": "2026-09-16T09:33:28Z"
}Completed Response
{
"jobId": "job_abc123...",
"status": "completed",
"output": {
"images": [
"https://temp.pixeldojo.ai/pixeldojotemp/1705930123-456789.png"
]
},
"creditCost": 2,
"expiresAt": "2026-09-16T09:33:28Z"
}