---
title: "ImageGenerationServerToolConfig"
---

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.


## Fields

| Field                                                                                                               | Type                                                                                                                | Required                                                                                                            | Description                                                                                                         | Example                                                                                                             |
| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
| `model`                                                                                                             | *Optional[str]*                                                                                                     | :heavy_minus_sign:                                                                                                  | Which image generation model to use (e.g. "openai/gpt-5-image"). Defaults to "openai/gpt-5-image".                  | openai/gpt-5-image                                                                                                  |
| `__pydantic_extra__`                                                                                                | Dict[str, [components.ImageGenerationServerToolConfigUnion](../components/imagegenerationservertoolconfigunion.mdx)] | :heavy_minus_sign:                                                                                                  | N/A                                                                                                                 | \{<br/>"aspect_ratio": "16:9",<br/>"model": "openai/gpt-5-image",<br/>"quality": "high"<br/>}                        |