---
title: "ImageGenerationServerToolOpenRouter"
---

OpenRouter built-in server tool: generates images from text prompts using an image generation model


## Fields

| Field                                                                                                                                                                                                             | Type                                                                                                                                                                                                              | Required                                                                                                                                                                                                          | Description                                                                                                                                                                                                       | Example                                                                                                                                                                                                           |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `parameters`                                                                                                                                                                                                      | [Optional[components.ImageGenerationServerToolConfig]](../components/imagegenerationservertoolconfig.mdx)                                                                                                          | :heavy_minus_sign:                                                                                                                                                                                                | Configuration for the openrouter:image_generation server tool. Accepts all image_config params (aspect_ratio, quality, size, background, output_format, output_compression, moderation, etc.) plus a model field. | \{<br/>"aspect_ratio": "16:9",<br/>"model": "openai/gpt-5-image",<br/>"quality": "high"<br/>}                                                                                                                      |
| `type`                                                                                                                                                                                                            | [components.ImageGenerationServerToolOpenRouterType](../components/imagegenerationservertoolopenroutertype.mdx)                                                                                                    | :heavy_check_mark:                                                                                                                                                                                                | N/A                                                                                                                                                                                                               |                                                                                                                                                                                                                   |