Gemini: per-model video schemas with duration limits (Omni, Interactions API) #658
Problem#
GET /v1/openapi/gemini?activity=video has one operation, POST /v1beta/models/{modelsId}:predictLongRunning. Its parameters object has no properties, so a client cannot read a video duration limit from it.
That route is also no longer where Gemini video runs. Checked against Google's docs on 2026-11-16:
- Veo is shut down on the Gemini API.
veo-3.1-generate-preview,-fast-and-lite-were shut down on 2026-10-22 (video, deprecations). The stored rows are deprecated andGET /v1/models?provider=gemini&activity=videoreturns 0. - Gemini Omni runs on the Interactions API,
POST /v1beta/interactions, notpredictLongRunning(guide). The video settings are inresponse_format:{ "type": "video", "duration": "15s", "aspect_ratio": "9:16", "resolution": "1080p", "delivery": "uri" }.durationis a string of whole seconds, not an integerdurationSeconds.- There is no
negativePrompt. The guide says negative prompts are not supported.
- The limits are per model (model page, "Output video"):
gemini-omni-1.2-flash3s-15s,gemini-omni-1.1-flash3s-10s. - Google publishes an OpenAPI document for the Interactions API:
https://ai.google.dev/static/api/interactions.openapi.json. The Discovery document we ingest today does not have that API. - The Omni rows are stored as
chaton:generateContent.
Ask#
Publish a per-model video schema for each Gemini Omni model (as fal does, with x-modelschemas-model).
- Source the request from Google's Interactions OpenAPI document.
- Narrow each model's
response_format.durationto the values that model's page states. - List the Omni rows under
video, bound to the Interactions route. - Keep one path and one method (
POST /v1beta/interactions). No#path keys in the served document.
OpenRouter's numbers are not a source.
Out of scope#
Veo. It is shut down on this API. Its limits belong to google-vertex, where the GA Veo models still run.
Acceptance#
?activity=videohas one request schema per Omni model, taggedx-modelschemas-model.- Each has
response_format.durationas anenum:"3s".."15s"forgemini-omni-1.2-flash,"3s".."10s"forgemini-omni-1.1-flash. - Each has the
aspect_ratioandresolutionenums from Google's document. - A model page that states no duration range fails the sync with the page URL. It does not publish an unbounded schema.
TanStack AI generates video duration tables from these documents (TanStack/ai#2104, TanStack/ai#2105). GEMINI_VIDEO_DURATIONS in @tanstack/ai-gemini is hand-written until this lands.
tombeckenham changed the title
tombeckenham linked this to #665
tombeckenham closed this
Sign in to join this conversation.