Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

VideoStreamResult.md

80 lines1.6 KB

Defined in: packages/ai/src/types.ts:2721

Experimental

Video bytes from a provider that has no public URL for the finished video. Core passes body to generation middleware, which streams it into storage and sets url. Use withGenerationPersistence with artifactUrl.

Video generation is an experimental feature and may change.

Properties

body

body: ReadableStream<Uint8Array<ArrayBufferLike>>;

Defined in: packages/ai/src/types.ts:2725

Experimental

The video bytes. Read once, with backpressure. Never buffer it whole.


contentType

contentType: string;

Defined in: packages/ai/src/types.ts:2727

Experimental

MIME type of body, e.g. video/mp4.


jobId

jobId: string;

Defined in: packages/ai/src/types.ts:2723

Experimental

Job identifier


url?

optional url?: undefined;

Defined in: packages/ai/src/types.ts:2729

Experimental


usage?

optional usage?: TokenUsage<ProviderUsageDetails>;

Defined in: packages/ai/src/types.ts:2728

Experimental