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

LiveVideoGenerationResult.md

130 lines2.5 KB

1---
2id: LiveVideoGenerationResult
3title: LiveVideoGenerationResult
4---
5​
6Defined in: [packages/ai/src/types.ts:2885](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2885)
7​
8**`Experimental`**
9​
10Result of live generation. JSON-serializable so a server route can return
11it to a browser.
12​
13Reactor: connect with `token` and `model` (the connect slug).
14fal: `model` is the WMA app id. Open `wma(model)` through a server proxy
15that attaches `FAL_KEY`. Do not send `token` as Key credentials.
16​
17 Live generation is an experimental feature and may change.
18​
19## Properties
20​
21### expiresAt
22​
23```ts
24expiresAt: number;
25```
26​
27Defined in: [packages/ai/src/types.ts:2896](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2896)
28​
29**`Experimental`**
30​
31Token expiry as milliseconds since epoch
32​
33***
34​
35### id
36​
37```ts
38id: string;
39```
40​
41Defined in: [packages/ai/src/types.ts:2887](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2887)
42​
43**`Experimental`**
44​
45Unique identifier for this generation
46​
47***
48​
49### model
50​
51```ts
52model: string;
53```
54​
55Defined in: [packages/ai/src/types.ts:2892](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2892)
56​
57**`Experimental`**
58​
59Connect id for the browser client. Reactor: `reactor/helios`.
60fal: WMA app id `fal-ai/minimax-h3-max-director`.
61​
62***
63​
64### prompt
65​
66```ts
67prompt: string;
68```
69​
70Defined in: [packages/ai/src/types.ts:2898](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2898)
71​
72**`Experimental`**
73​
74Prompt the client should send when it starts the session
75​
76***
77​
78### sessionId?
79​
80```ts
81optional sessionId?: string;
82```
83​
84Defined in: [packages/ai/src/types.ts:2902](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2902)
85​
86**`Experimental`**
87​
88Provider session id, when the adapter created one
89​
90***
91​
92### status
93​
94```ts
95status: "ready" | "waiting";
96```
97​
98Defined in: [packages/ai/src/types.ts:2900](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2900)
99​
100**`Experimental`**
101​
102Session status after the server half finishes
103​
104***
105​
106### token
107​
108```ts
109token: string;
110```
111​
112Defined in: [packages/ai/src/types.ts:2894](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2894)
113​
114**`Experimental`**
115​
116Short-lived session token. Reactor uses this to connect. fal does not.
117​
118***
119​
120### usage?
121​
122```ts
123optional usage?: TokenUsage<ProviderUsageDetails>;
124```
125​
126Defined in: [packages/ai/src/types.ts:2904](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L2904)
127​
128**`Experimental`**
129​
130Token usage / billing, when the adapter can report it