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

ImageGenerationResult

Interface: ImageGenerationResult

Defined in: packages/ai/src/types.ts:1526

Result of image generation

Properties

id

ts
id: string;
id: string;

Defined in: packages/ai/src/types.ts:1528

Unique identifier for the generation


images

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

Defined in: packages/ai/src/types.ts:1532

Array of generated images


model

ts
model: string;
model: string;

Defined in: packages/ai/src/types.ts:1530

Model used for generation


usage?

ts
optional usage: TokenUsage<ProviderUsageDetails>;
optional usage: TokenUsage<ProviderUsageDetails>;

Defined in: packages/ai/src/types.ts:1534

Token usage information (if available)