Interface: OpenRouterImageConfig
@providerprotocol/ai / openrouter / OpenRouterImageConfig
Interface: OpenRouterImageConfig
Section titled “Interface: OpenRouterImageConfig”Defined in: src/providers/openrouter/types.ts:198
Image generation configuration for OpenRouter.
Used with Gemini image generation models to control output dimensions.
https://openrouter.ai/docs/guides/overview/multimodal/image-generation
Properties
Section titled “Properties”aspect_ratio?
Section titled “aspect_ratio?”
optionalaspect_ratio:string
Defined in: src/providers/openrouter/types.ts:203
Aspect ratio for generated images. Supported values range from ‘1:1’ (1024×1024) to ‘21:9’ (1536×672).
image_size?
Section titled “image_size?”
optionalimage_size:"1K"|"2K"|"4K"
Defined in: src/providers/openrouter/types.ts:211
Resolution level for generated images.
- ‘1K’: Standard resolution
- ‘2K’: Higher resolution
- ‘4K’: Highest resolution