Generates and edits images · up to 4 per request
curl -X POST https://api.open.sume.com/v1/image-router/generate \
-H "Authorization: Bearer $SUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"gpt-image-2.5-sunburst","prompt":"A studio product photo on a white sweep","aspect_ratio":"1:1","quality":"auto","num_images":1}'ChatGPT Image 2.5 Sunburst has the model id gpt-image-2.5-sunburst. Send a JSON body to POST https://api.open.sume.com/v1/image-router/generate.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| model | string | Yes | — | "gpt-image-2.5-sunburst" |
| prompt | string | Yes | — | What the image shows. |
| image_urls | string[] | No | — | Images to edit or follow (HTTPS). |
| aspect_ratio | string | No | 1:1 | Frame shape. Options: auto, 1:1, 16:9, 9:16, 4:3, 3:4, 5:4, 9:8, 4:5. |
| quality | string | No | auto | Quality tier (sets the price). Options: auto, low, medium, high, xhigh, max. |
| num_images | integer | No | 1 | Images per request, 1–4. |
Send your open.sume.com key as a bearer token from server code only. Keys minted on open.sume.com bill this balance in dollars and call the model API only.
Authorization: Bearer $SUME_API_KEY
A submit answers 202 with the job, its status_url and result_url. Poll the status until it is completed, failed or canceled; failed and canceled jobs are refunded.
Dollars per unit at each option: the serving route's cost × 1.25, rounded up to $0.0001. The estimate above is the exact charge.
| Option | Price |
|---|---|
| auto | $0.8895 / image |
| low | $0.0248 / image |
| medium | $0.0558 / image |
| high | $0.2225 / image |
| xhigh | $0.3954 / image |
| max | $0.8895 / image |
Price, resolution and duration show each model's full range.
| Model | Type | Price | Resolution | Duration |
|---|---|---|---|---|
| ChatGPT Image 2.5 | image | $0.0248 – $0.8895 / image | — | — |
| ChatGPT Image 2 | image | $0.0077 – $0.2639 / image | — | — |
GET https://api.open.sume.com/v1/jobs/<job_id>/status GET https://api.open.sume.com/v1/jobs/<job_id>/result POST https://api.open.sume.com/v1/jobs/<job_id>/cancel
The estimate is the charge: the same function prices both.
curl -X POST https://api.open.sume.com/v1/open/estimate \
-H "Content-Type: application/json" \
-d '{"model":"gpt-image-2.5-sunburst","input":{"prompt":"…"}}'Full reference: docs.sume.com