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

VideoUrlResult.md

84 lines1.6 KB

1---
2id: VideoUrlResult
3title: VideoUrlResult
4---
5​
6Defined in: [packages/ai/src/types.ts:2302](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2302)
7​
8**`Experimental`**
9​
10Result containing the URL to a generated video.
11​
12 Video generation is an experimental feature and may change.
13​
14## Properties
15​
16### artifacts?
17​
18```ts
19optional artifacts?: PersistedArtifactRef[];
20```
21​
22Defined in: [packages/ai/src/types.ts:2316](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2316)
23​
24**`Experimental`**
25​
26Persisted artifact references for generated assets, when available
27​
28***
29​
30### expiresAt?
31​
32```ts
33optional expiresAt?: Date;
34```
35​
36Defined in: [packages/ai/src/types.ts:2308](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2308)
37​
38**`Experimental`**
39​
40When the URL expires, if applicable
41​
42***
43​
44### jobId
45​
46```ts
47jobId: string;
48```
49​
50Defined in: [packages/ai/src/types.ts:2304](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2304)
51​
52**`Experimental`**
53​
54Job identifier
55​
56***
57​
58### url
59​
60```ts
61url: string;
62```
63​
64Defined in: [packages/ai/src/types.ts:2306](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2306)
65​
66**`Experimental`**
67​
68URL to the generated video
69​
70***
71​
72### usage?
73​
74```ts
75optional usage?: TokenUsage<ProviderUsageDetails>;
76```
77​
78Defined in: [packages/ai/src/types.ts:2314](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2314)
79​
80**`Experimental`**
81​
82Usage information for the completed generation, when the adapter can report
83it. For usage-based providers (e.g. fal) this carries `billed` — the real
84billed quantity paired with its unit — so consumers can compute exact cost.