Docs
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
Neon
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
Neon
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:1251

Result of image generation

Properties

id

ts
id: string;
id: string;

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

Unique identifier for the generation


images

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

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

Array of generated images


model

ts
model: string;
model: string;

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

Model used for generation


usage?

ts
optional usage: object;
optional usage: object;

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

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;