Interface VideoProviderOptionBag

Provider-specific model inputs for a video request.

Keyed by provider id ({ fal: {...}, replicate: {...} }), each provider in a fallback chain receives only its own entry; the ids of providers added with registerVideoProviderFactory() key a bag as the built-in ids do. A bag with no provider-id key goes whole to fal, Replicate and Gemini. The entries add model inputs and never replace a field the request sets (the prompt, the image, the duration, the resolution and the like): to send a model-specific value for such a field, leave the typed field unset and put the value here. The Runway provider sends no provider options.

interface VideoProviderOptionBag {
    fal?: Record<string, unknown>;
    replicate?: Record<string, unknown>;
    runway?: Record<string, unknown>;
    gemini?: Record<string, unknown>;
    [providerId: string]: unknown;
}

Indexable

[providerId: string]: unknown

Entries for other registered providers.

Properties

fal?: Record<string, unknown>

Model inputs for fal, merged into the queue submit body.

replicate?: Record<string, unknown>

Model inputs for Replicate, merged into the prediction's input. Its imageInputName is not sent: it names the input the source image goes under (for a bare version id, which names no model family).

runway?: Record<string, unknown>

Reserved for Runway. The Runway provider sends no provider options, so an entry here marks the bag as keyed by provider and is not sent.

gemini?: Record<string, unknown>

Fields for the Gemini Interactions API, merged into the request body; response_format and generation_config objects are merged key by key. background: true is refused: the provider does not poll a background interaction.