> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter-d02e98a0-mintlify-5b6e02fd.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# ImageGenerationServerToolConfig - Python SDK

> ImageGenerationServerToolConfig method reference

<Warning>
  The Python SDK and docs are currently in beta.
  Report issues on [GitHub](https://github.com/OpenRouterTeam/python-sdk/issues).
</Warning>

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](/client-sdks/python/api-reference/components/imagegenerationservertoolconfigunion)] | :heavy\_minus\_sign: | N/A                                                                                                | `{"aspect_ratio": "16:9","model": "openai/gpt-5-image","quality": "high"}` |
