--- id: VideoStreamResult title: VideoStreamResult --- Defined in: [packages/ai/src/types.ts:2797](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2797) 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`. ## Properties ### body ```ts body: ReadableStream>; ``` Defined in: [packages/ai/src/types.ts:2801](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2801) The video bytes. Read once, with backpressure. Never buffer it whole. *** ### contentType ```ts contentType: string; ``` Defined in: [packages/ai/src/types.ts:2803](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2803) MIME type of `body`, e.g. `video/mp4`. *** ### jobId ```ts jobId: string; ``` Defined in: [packages/ai/src/types.ts:2799](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2799) Job identifier *** ### url? ```ts optional url?: undefined; ``` Defined in: [packages/ai/src/types.ts:2805](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2805) *** ### usage? ```ts optional usage?: TokenUsage; ``` Defined in: [packages/ai/src/types.ts:2804](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2804)