Skip to main content
Back to API Platform

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.

Image Generation
Img2Img
Editing
Credit Cost
2 credits
Type
Image

API Endpoint

POST
/api/v1/models/gpt-image-2-5/run

Test 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.

Parameters

Input parameters accepted by this model

ParameterTypeDefault
prompt
required
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

1:1
4:3
2:3
16:9

See also

Related endpoints on this model — you may need a different apiId for a different operation (e.g. image edit vs generation).

Code Examples

Generate image (Sunburst) — copy and paste to get started

bash
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)

json
{
  "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

json
{
  "jobId": "job_abc123...",
  "status": "completed",
  "output": {
    "images": [
      "https://temp.pixeldojo.ai/pixeldojotemp/1705930123-456789.png"
    ]
  },
  "creditCost": 2,
  "expiresAt": "2026-09-16T09:33:28Z"
}