Skip to Content
Launching the open-source gateway

Video

Generate videos with Google's Gemini Omni through OpenAI's Videos API.

Video generation is a job: create it with POST https://gateway.respan.ai/v1/videos, poll GET https://gateway.respan.ai/v1/videos/{id} until it ends, then download GET https://gateway.respan.ai/v1/videos/{id}/content. The gateway serves OpenAI’s Videos API, with no provider key in your code. See All API formats.

Quickstart

Terminal
# 1. Create the job curl https://gateway.respan.ai/v1/videos \ -H "Authorization: Bearer $RESPAN_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "gemini/gemini-omni-1.2-flash", "prompt": "A paper boat drifting down a rainy street"}' # 2. Poll until "status" is "completed" or "failed" curl https://gateway.respan.ai/v1/videos/$VIDEO_ID \ -H "Authorization: Bearer $RESPAN_API_KEY" # 3. Download the video curl https://gateway.respan.ai/v1/videos/$VIDEO_ID/content \ -H "Authorization: Bearer $RESPAN_API_KEY" \ -o boat.mp4

Respan parameters work here as on chat: see Respan parameters. Send them on the create call; the video’s row carries them.

Models and providers

Only Google’s Gemini Omni makes videos through the gateway. Google shut down Veo on the Gemini API on October 22, 2026. OpenAI’s Sora, xAI, and Veo on Vertex AI are not served.

To find a model, filter by output type video on the model catalog . Name it with its provider, such as gemini/gemini-omni-1.2-flash, and add a resolution variant to fix the output resolution. See Models.

Jobs

EndpointWhat it does
POST /v1/videosCreates a job and returns its id.
GET /v1/videos/{id}Returns the job’s status: queued, in_progress, completed or failed.
GET /v1/videos/{id}/contentDownloads the finished video. Returns 409 until the job is completed.
POST /v1/videos/{id}/remixRemixes a finished video. Gemini Omni can’t remix, so its jobs answer 400.
DELETE /v1/videos/{id}Deletes a job once it has ended (409 while it runs). Gemini Omni can’t delete, so its jobs answer 400.
GET /v1/videosNot served (400). Keep each job’s id and retrieve it directly.

When you create a job, the gateway binds it to your organization and to the provider key it was made on for 3 days. Every follow-up goes to that same key:

  • Another organization’s job id returns 404.
  • If the integration the job was made on is removed, follow-ups return 424.
  • After 3 days the binding expires, so download the video before then.

Length and size

ParameterDescription
secondsLength of the video. Gemini Omni makes 10 seconds when you leave it out.
sizeFrame size, such as 1280x720. Gemini Omni makes only 16:9 and 9:16 videos, so any other ratio (beyond 5%) is refused with 400. The short side sets the resolution: 360, 720, 1080 or 2160. Any other is refused with 400.

Gemini Omni makes one video per request.

Resolution variants

A catalog variant names the resolution after a colon. gemini/gemini-omni-1.2-flash:1080p is sent to Google as gemini-omni-1.2-flash at 1080p, and is priced at that resolution’s per-second rate. Gemini Omni makes 360p, 720p (its default), 1080p and 4k. If you leave out size and resolution, the variant fills them in. A size or resolution that contradicts the variant is refused with 400.

Pricing and logs

  • A video is billed per second served, at the model’s per-second rate for its resolution.
  • Before a create or remix on Respan’s credits is sent, the gateway holds credits for the requested seconds (10 on Gemini Omni when you don’t set seconds).
  • Creating the job writes no row. The first poll or download that sees the job end writes one video row and charges it. The row carries the create call’s customer_identifier, metadata and tracing fields.
  • A failed or expired job costs $0.
  • Video requests are not redacted, so an organization with PII redaction on is refused.