Open History to see the last commit
1---
2id: ImageGenerationResult
3title: ImageGenerationResult
4---
5
6# Interface: ImageGenerationResult
7
8Defined in: [types.ts:801](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L801)
9
10Result of image generation
11
12## Properties
13
14### id
15
16```ts
17id: string;
18```
19
20Defined in: [types.ts:803](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L803)
21
22Unique identifier for the generation
23
24***
25
26### images
27
28```ts
29images: GeneratedImage[];
30```
31
32Defined in: [types.ts:807](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L807)
33
34Array of generated images
35
36***
37
38### model
39
40```ts
41model: string;
42```
43
44Defined in: [types.ts:805](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L805)
45
46Model used for generation
47
48***
49
50### usage?
51
52```ts
53optional usage: object;
54```
55
56Defined in: [types.ts:809](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L809)
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```