Member Junction
    Preparing search index...

    Interface AIVideoGenerationRunParams

    Parameters for AIVideoRunner.RunGenerateVideo: the driver's own VideoGenerationParams (prompt, mode, duration, aspect ratio, quality, optional seed/references/keyframes/source video), plus the media runner options and optional polling interval override.

    TimeoutMS (inherited from AIMediaRunOptions) bounds the wait for the job and never fails over after submit, because a submitted job is already running and billable at the provider.

    interface AIVideoGenerationRunParams {
        AgentID?: string;
        AgentRunID?: string;
        APIKeys?: AIAPIKey[];
        AspectRatio: string;
        CancellationToken?: AbortSignal;
        ContextUser: UserInfo;
        CredentialScope?: AICredentialScope;
        DurationSeconds: number;
        Keyframes?: VideoKeyframeInput[];
        Mode: VideoGenerationMode;
        ModelID?: string;
        OnPromptRunCreated?: (promptRunId: string) => void | Promise<void>;
        ParentRunID?: string;
        PollIntervalMS?: number;
        Prompt: string;
        PromptID?: string;
        Quality: VideoGenerationQuality;
        ReferenceImages?: MediaInput[];
        Seed?: number;
        SourceVideo?: MediaInput;
        TimeoutMS?: number;
        WantAudio?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    AgentID?: string

    The agent the call is made for, recorded as the run row's AgentID.

    AgentRunID?: string

    The agent run this call belongs to. MJ: AI Prompt Runs has no agent-run column, so it is recorded in the row's Messages, for reading only. To join the row to the run, use OnPromptRunCreated.

    APIKeys?: AIAPIKey[]

    Keys by driver class, passed through as the base runner's apiKeys. A key reaches only the candidates of its own driver class. They rank as they do for chat prompts, just above the environment keys: a credential bound to the prompt-model, the model-vendor or the vendor, or a default credential of the vendor's credential type, wins over them.

    AspectRatio: string

    Aspect ratio in width:height form (for example, '16:9', '9:16', '1:1', '4:5').

    CancellationToken?: AbortSignal

    Optional signal for cancelling the request. The driver is responsible for honoring it: it passes the signal to the provider's SDK or HTTP call, so an aborted request is torn down rather than left running. A driver that stops because the signal fired reports the failure classified as Cancelled (see BuildCancellationErrorInfo), which is never failed over.

    ContextUser: UserInfo

    The user the run is made and recorded for. Required.

    CredentialScope?: AICredentialScope

    Passed through as the base runner's CredentialScope. 'RuntimeOnly' restricts the run to APIKeys: a candidate whose driver class has no key there is skipped, never run on the platform's credentials.

    DurationSeconds: number

    Requested output clip duration in seconds.

    Keyframes?: VideoKeyframeInput[]

    Optional timestamped keyframe images anchoring motion across the clip.

    Generation mode selecting how input references/video are used.

    ModelID?: string

    Pins the model by ID. Failover then stays within that model's vendors. Leave it unset to let the carrier prompt's bindings choose.

    OnPromptRunCreated?: (promptRunId: string) => void | Promise<void>

    Called with the run row's ID as soon as the row exists, before the model call: the hook an agent step uses to point its TargetLogID at the row. An error it throws is logged, never raised.

    ParentRunID?: string

    A parent MJ: AI Prompt Runs row, recorded as this run's ParentID.

    PollIntervalMS?: number

    Delay in milliseconds between GetVideoGenerationStatus polls while a submitted job is Pending or Running. Defaults to AIVideoRunner.DEFAULT_POLL_INTERVAL_MS (5000).

    Prompt: string

    Text prompt describing the scene, motion, and visual style to generate.

    PromptID?: string

    The MJ: AI Prompts row whose bindings choose the model and whose failover settings apply. Defaults to the runner's default carrier prompt, found by name.

    Vendor-neutral quality tier ('draft' | 'standard' | 'high').

    ReferenceImages?: MediaInput[]

    Optional reference images guiding subject, style, or initial frame.

    Seed?: number

    Optional deterministic seed when supported by the provider.

    SourceVideo?: MediaInput

    Optional source video for 'VideoToVideo' or 'Continuation' modes.

    TimeoutMS?: number

    A bound, in milliseconds, on each driver call, as AIPromptParams.timeoutMS bounds each chat call: every failover candidate gets its own. A call that runs longer fails with an AIPromptTimeoutError, which reads as a network error and so fails over. For audio a driver splits, the bound covers the whole transcription. Unset or not positive means no bound, unless the runner declares a DefaultPromptTimeoutMS.

    The timeout is composed into the signal the driver is handed as its params' CancellationToken, so a request that times out is torn down by a driver that honors it, not left running.

    WantAudio?: boolean

    Whether synchronized ambient/generated audio is requested with the video clip.