Open History to see the last commit
1---
2id: VideoGenerationOptions
3title: VideoGenerationOptions
4---
5
6Defined in: [packages/ai/src/types.ts:2617](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2617)
7
8**`Experimental`**
9
10Options for video generation.
11These are the common options supported across providers.
12
13 Video generation is an experimental feature and may change.
14
15## Type Parameters
16
17### TProviderOptions
18
19`TProviderOptions` *extends* `object` = `object`
20
21### TSize
22
23`TSize` *extends* `string` \| `undefined` = `string`
24
25### TDuration
26
27`TDuration` *extends* `string` \| `number` \| `undefined` = `number`
28
29## Properties
30
31### abortSignal?
32
33```ts
34optional abortSignal?: AbortSignal;
35```
36
37Defined in: [packages/ai/src/types.ts:2654](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2654)
38
39**`Experimental`**
40
41Effective abort signal composed by the activity from caller `abortSignal`
42and/or `timeout`. Adapters should forward this to the provider SDK when
43supported. Request-specific — never store on a global client config.
44
45***
46
47### duration?
48
49```ts
50optional duration?: TDuration;
51```
52
53Defined in: [packages/ai/src/types.ts:2641](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2641)
54
55**`Experimental`**
56
57Video duration. Adapters that declare a per-model duration map narrow
58this to that model's union (a number, `"8"`, or `"8s"`). Use
59`adapter.snapDuration(input)` to coerce a raw value. `input` may be
60seconds, a `"6s"` template, or `"auto"` when the model lists it.
61
62***
63
64### logger
65
66```ts
67logger: InternalLogger;
68```
69
70Defined in: [packages/ai/src/types.ts:2648](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2648)
71
72**`Experimental`**
73
74Internal logger threaded from the generateVideo() entry point. Adapters must
75call logger.request() before the SDK call and logger.errors() in catch blocks.
76
77***
78
79### model
80
81```ts
82model: string;
83```
84
85Defined in: [packages/ai/src/types.ts:2623](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2623)
86
87**`Experimental`**
88
89The model to use for video generation
90
91***
92
93### modelOptions?
94
95```ts
96optional modelOptions?: TProviderOptions;
97```
98
99Defined in: [packages/ai/src/types.ts:2643](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2643)
100
101**`Experimental`**
102
103Model-specific options for video generation
104
105***
106
107### prompt
108
109```ts
110prompt: MediaPrompt;
111```
112
113Defined in: [packages/ai/src/types.ts:2632](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2632)
114
115**`Experimental`**
116
117Description of the desired video: a plain string, or an ordered array of
118content parts for image-conditioned generation. Image parts may carry
119`metadata.role` (`'start_frame' | 'end_frame' | 'reference' |
120'character'`) to disambiguate intent; adapters route them onto the
121provider-native request (e.g. OpenAI Sora `input_reference`, fal
122`image_url` / `end_image_url`) and throw at runtime if unsupported.
123
124***
125
126### size?
127
128```ts
129optional size?: TSize;
130```
131
132Defined in: [packages/ai/src/types.ts:2634](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2634)
133
134**`Experimental`**
135
136Video size — format depends on the provider (e.g., "16:9", "1280x720")