Skip to content
Source
Sign inSign up
TanStack/schemas

Gemini: per-model video schemas with duration limits (Omni, Interactions API) #658

Closedtombeckenham opened this issue 0 comments
tombeckenhamcommented

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 and GET /v1/models?provider=gemini&activity=video returns 0.
  • Gemini Omni runs on the Interactions API, POST /v1beta/interactions, not predictLongRunning (guide). The video settings are in response_format: { "type": "video", "duration": "15s", "aspect_ratio": "9:16", "resolution": "1080p", "delivery": "uri" }.
    • duration is a string of whole seconds, not an integer durationSeconds.
    • 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-flash 3s-15s, gemini-omni-1.1-flash 3s-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 chat on :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.duration to 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=video has one request schema per Omni model, tagged x-modelschemas-model.
  • Each has response_format.duration as an enum: "3s".."15s" for gemini-omni-1.2-flash, "3s".."10s" for gemini-omni-1.1-flash.
  • Each has the aspect_ratio and resolution enums 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.

  1. tombeckenham changed the title

  2. tombeckenham linked this to #665

  3. tombeckenham closed this

Sign in to join this conversation.