Skip to main content

Module video

Module video 

Source
Expand description

Explicit video invocation, resource publication and durable job bindings.

Structs§

ReverseVideoBinding
Host-selected target/API facts, persisted before any publication or create.
ReverseVideoChild
ReverseVideoProgress
ReverseVideoState
VideoBinding
Stable host facts. origin must identify the selected target in the host’s state scope. The host supplies its API prefix; it is never inferred from IDs.
VideoJobState
VideoLimits
VideoProgress
Caller-owned progress survives dropped futures and post-create failures. The native response is retained before binding/publication work begins.

Enums§

ReverseVideoKind
ReverseVideoRequest
ReverseVideoResult
VideoOriginalRequest

Constants§

VIDEO_STATE_TTL
How long a video job’s state outlives its latest write. Every write (the reservation, the create reply, each poll) pushes the expiry out again, so the window counts from the last time the client touched the job. Veo takes minutes to finish a job and keeps a generated video for two days; seven days covers a slow poller and a content download well after that, while no longer keeping every job the gateway has ever created.

Functions§

gemini_to_openai_create
gemini_to_openai_query
gemini_video_create_composed
gemini_video_query_composed
Poll a selected child using its exact recorded resource path. Other children retain their actual outcomes and are never implicitly recreated or polled.
gemini_video_resume_composed
Continue only children whose durable started marker is false. A started child without a retained result requires explicit caller reconciliation.
native_content
Reads the actual completed video’s bytes for the native /content route. The selected target resource scope supplies authorization for private URIs.
native_create
Native Sora-style create/retrieve preserve their own ID, seconds and size contract; they do not pass through the OpenRouter/Veo mapper.
native_retrieve
native_to_gemini_create_composed
native_to_gemini_query_composed
openai_to_gemini_create
openai_to_gemini_create_composed
openai_to_gemini_query
openai_to_gemini_query_composed
publish_video_output
recover_created_result
Complete binding/publication from the actual retained result of this call. This never issues another upstream create or guesses an unknown operation.
recover_native_result
recover_reverse_video_result
Persist a retained, real result after a post-send CAS failure. This performs no upstream request; unknown outcomes need caller reconciliation first.