Skip to main content

Module video

Module video 

Source
Expand description

Conditional native Sora / OpenRouter video ↔ Gemini Developer API Veo mappings.

These are synchronous typed mappings only. Polling, URL publication and operation state persistence belong to the host adapter; the contexts below retain the facts that a response conversion cannot recover from either wire format.

Structs§

GeminiOperationContext
Reverse mapping must use an actual Gemini-facing operation resource owned by the host, never reinterpret an arbitrary OpenRouter job ID as its name.
NativeToVeoContext
NativeVeoResult
NativeVideoDefaults
NativeVideoResponseFacts
Facts recorded by the invocation or measured from its result. Veo does not provide native Sora’s required timestamps, size, duration or percentage.
OpenAiVideoResponseContext
A host-registered mapping; source identity must match this operation before advertising its proxy polling URL. Generated bytes require published URLs.
PreparedNativeVeoRequest
PreparedOpenAiRequest
PreparedVeoNativeRequest
PreparedVeoRequest
ResolvedVideoResource
Facts supplied by a host after URL resolution/download or publication. bytes_base64_encoded/mime_type are needed by Gemini; url is needed by the OpenRouter-shaped request. No URL or bytes are inferred by a mapper.
VeoRequestContext
VideoResourceNeed

Enums§

NativePendingStatus
VideoResourceRole

Functions§

gemini_operation_to_native
gemini_operation_to_openai_response
gemini_to_native_request
One instance/sample; multi-instance or sample fanout belongs to the composed adapter. The return projection still belongs to the original Veo request.
gemini_to_openai_request
native_to_gemini_operation
native_to_gemini_request
openai_response_to_gemini_operation
openai_to_gemini_request
resource_needs