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§
- Gemini
Operation Context - Reverse mapping must use an actual Gemini-facing operation resource owned by the host, never reinterpret an arbitrary OpenRouter job ID as its name.
- Native
ToVeo Context - Native
VeoResult - Native
Video Defaults - Native
Video Response Facts - Facts recorded by the invocation or measured from its result. Veo does not provide native Sora’s required timestamps, size, duration or percentage.
- Open
AiVideo Response Context - A host-registered mapping; source identity must match this operation before advertising its proxy polling URL. Generated bytes require published URLs.
- Prepared
Native VeoRequest - Prepared
Open AiRequest - Prepared
VeoNative Request - Prepared
VeoRequest - Resolved
Video Resource - Facts supplied by a host after URL resolution/download or publication.
bytes_base64_encoded/mime_typeare needed by Gemini;urlis needed by the OpenRouter-shaped request. No URL or bytes are inferred by a mapper. - VeoRequest
Context - Video
Resource Need
Enums§
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