Open History to see the last commit
1---
2id: ImageGenerationResult
3title: ImageGenerationResult
4---
5
6# Interface: ImageGenerationResult
7
8Defined in: [packages/typescript/ai/src/types.ts:1466](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1466)
9
10Result of image generation
11
12## Properties
13
14### id
15
16```ts
17id: string;
18```
19
20Defined in: [packages/typescript/ai/src/types.ts:1468](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1468)
21
22Unique identifier for the generation
23
24***
25
26### images
27
28```ts
29images: GeneratedImage[];
30```
31
32Defined in: [packages/typescript/ai/src/types.ts:1472](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1472)
33
34Array of generated images
35
36***
37
38### model
39
40```ts
41model: string;
42```
43
44Defined in: [packages/typescript/ai/src/types.ts:1470](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1470)
45
46Model used for generation
47
48***
49
50### usage?
51
52```ts
53optional usage: object;
54```
55
56Defined in: [packages/typescript/ai/src/types.ts:1474](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1474)
57
58Token usage information (if available)
59
60#### inputTokens?
61
62```ts
63optional inputTokens: number;
64```
65
66#### outputTokens?
67
68```ts
69optional outputTokens: number;
70```
71
72#### totalTokens?
73
74```ts
75optional totalTokens: number;
76```