Docs
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
Class References
Function References
Interface References
Type Alias References
Variable References

ImageGenerationResult

Interface: ImageGenerationResult

Defined in: packages/typescript/ai/src/types.ts:1256

Result of image generation

Properties

id

ts
id: string;
id: string;

Defined in: packages/typescript/ai/src/types.ts:1258

Unique identifier for the generation


images

ts
images: GeneratedImage[];
images: GeneratedImage[];

Defined in: packages/typescript/ai/src/types.ts:1262

Array of generated images


model

ts
model: string;
model: string;

Defined in: packages/typescript/ai/src/types.ts:1260

Model used for generation


usage?

ts
optional usage: object;
optional usage: object;

Defined in: packages/typescript/ai/src/types.ts:1264

Token usage information (if available)

inputTokens?

ts
optional inputTokens: number;
optional inputTokens: number;

outputTokens?

ts
optional outputTokens: number;
optional outputTokens: number;

totalTokens?

ts
optional totalTokens: number;
optional totalTokens: number;