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:1447

Result of image generation

Properties

id

ts
id: string;
id: string;

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

Unique identifier for the generation


images

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

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

Array of generated images


model

ts
model: string;
model: string;

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

Model used for generation


usage?

ts
optional usage: object;
optional usage: object;

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

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;