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

# ImageGenerationServerToolOpenRouter - Python SDK

> ImageGenerationServerToolOpenRouter method reference

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

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.md)                                 | :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. | `{"aspect_ratio": "16:9","model": "openai/gpt-5-image","quality": "high"}` |
| `type`       | [components.ImageGenerationServerToolOpenRouterType](/client-sdks/python/api-reference/components/imagegenerationservertoolopenroutertype) | :heavy\_check\_mark: | N/A                                                                                                                                                                                                                    |                                                                            |
