Open History to see the last commit
1---
2id: VideoStreamResult
3title: VideoStreamResult
4---
5
6Defined in: [packages/ai/src/types.ts:2721](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2721)
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:2725](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2725)
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:2727](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2727)
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:2723](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2723)
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:2729](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2729)
67
68**`Experimental`**
69
70***
71
72### usage?
73
74```ts
75optional usage?: TokenUsage<ProviderUsageDetails>;
76```
77
78Defined in: [packages/ai/src/types.ts:2728](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2728)
79
80**`Experimental`**