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

VideoStreamResult.md

80 lines1.1 KB

1---
2id: VideoStreamResult
3title: VideoStreamResult
4---
5​
6Defined in: packages/ai/src/types.ts:2638
7​
8**`Experimental`**
9​
10Video bytes from a provider that has no public URL for the finished video.
11Core passes `body` to generation middleware, which streams it into storage
12and sets `url`. Use `withGenerationPersistence` with `artifactUrl`.
13​
14 Video generation is an experimental feature and may change.
15​
16## Properties
17​
18### body
19​
20```ts
21body: ReadableStream<Uint8Array<ArrayBufferLike>>;
22```
23​
24Defined in: packages/ai/src/types.ts:2642
25​
26**`Experimental`**
27​
28The video bytes. Read once, with backpressure. Never buffer it whole.
29​
30***
31​
32### contentType
33​
34```ts
35contentType: string;
36```
37​
38Defined in: packages/ai/src/types.ts:2644
39​
40**`Experimental`**
41​
42MIME type of `body`, e.g. `video/mp4`.
43​
44***
45​
46### jobId
47​
48```ts
49jobId: string;
50```
51​
52Defined in: packages/ai/src/types.ts:2640
53​
54**`Experimental`**
55​
56Job identifier
57​
58***
59​
60### url?
61​
62```ts
63optional url?: undefined;
64```
65​
66Defined in: packages/ai/src/types.ts:2646
67​
68**`Experimental`**
69​
70***
71​
72### usage?
73​
74```ts
75optional usage?: TokenUsage<ProviderUsageDetails>;
76```
77​
78Defined in: packages/ai/src/types.ts:2645
79​
80**`Experimental`**