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":"grok-image","prompt":"A studio product photo on a white sweep","aspect_ratio":"1:1"}'Grok Imagine has the model id grok-image. Send a JSON body to POST https://api.open.sume.com/v1/image-router/generate.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| model | string | Yes | — | "grok-image" |
| 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: 2:1, 20:9, 19.5:9, 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, 9:16, 9:19.5, 9:20, 1:2. |
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.
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
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 |
|---|---|
| per image | $0.0250 / image |
Price, resolution and duration show each model's full range.
| Model | Type | Price | Resolution | Duration |
|---|---|---|---|---|
| Grok Imagine Video 1.5 | video | $0.0125 / s | 480p – 720p | 4 – 15 s |
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":"grok-image","input":{"prompt":"…"}}'Full reference: docs.sume.com