> ## 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.

# ImageGenerationServerToolOpenRouter - Go SDK

> ImageGenerationServerToolOpenRouter type definition

<Warning>
  The Go SDK and docs are currently in beta.
  Report issues on [GitHub](https://github.com/OpenRouterTeam/go-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` | [\*components.ImageGenerationServerToolConfig](/client-sdks/go/api-reference/models/imagegenerationservertoolconfig)               | :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/go/api-reference/models/imagegenerationservertoolopenroutertype) | :heavy\_check\_mark: | N/A                                                                                                                                                                                                                    |                                                                            |
