Generates video from text, an image, references, a source video · 360p to 4K · 3–10 s · native audio
curl -X POST https://api.open.sume.com/v1/video-router/generate \
-H "Authorization: Bearer $SUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"gemini-omni-flash-1.1","prompt":"A cinematic tracking shot along a sunlit coastal road","video_url":"https://example.com/video.mp4","duration":5,"resolution":"360p","aspect_ratio":"16:9","generate_audio":false}'Gemini Omni Flash 1.1 has the model id gemini-omni-flash-1.1. Send a JSON body to POST https://api.open.sume.com/v1/video-router/generate.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| model | string | Yes | — | "gemini-omni-flash-1.1" |
| prompt | string | Yes | — | What happens in the video. |
| image_url | string | No | — | First frame (HTTPS image). |
| end_image_url | string | No | — | Last frame (HTTPS image). |
| reference_image_urls | string[] | No | — | Reference images (HTTPS). |
| video_url | string | Yes | — | Source video (HTTPS). |
| duration | integer | No | 5 | Seconds, 3–10. |
| resolution | string | No | 360p | Output resolution. Options: 360p, 720p, 1080p, 4K. |
| aspect_ratio | string | No | 16:9 | Frame shape. Options: 16:9, 9:16. |
| generate_audio | boolean | No | false | Generate a soundtrack with the video. |
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 |
|---|---|
| 360p | $0.0375 / s |
| 720p | $0.1250 / s |
| 1080p | $0.1875 / s |
| 4K | $0.3750 / s |
Price, resolution and duration show each model's full range.
| Model | Type | Price | Resolution | Duration |
|---|---|---|---|---|
| Nano Banana 2.1 | image | $0.0750 – $0.2000 / image | 0.5K – 4K | — |
| Nano Banana Pro | image | $0.1875 – $0.3750 / image | 0.5K – 4K | — |
| Imagen 4 Fast | image | $0.0250 / image | — | — |
| Imagen 4 Ultra | image | $0.0750 / image | 1K – 2K | — |
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
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":"gemini-omni-flash-1.1","input":{"prompt":"…"}}'Full reference: docs.sume.com