---
title: "ImageGenerationServerTool"
---

Image generation tool configuration


## Fields

| Field                                                                                                                | Type                                                                                                                 | Required                                                                                                             | Description                                                                                                          |
| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
| `background`                                                                                                         | [Optional[components.ImageGenerationServerToolBackground]](../components/imagegenerationservertoolbackground.mdx)     | :heavy_minus_sign:                                                                                                   | N/A                                                                                                                  |
| `input_fidelity`                                                                                                     | [OptionalNullable[components.InputFidelity]](../components/inputfidelity.mdx)                                         | :heavy_minus_sign:                                                                                                   | N/A                                                                                                                  |
| `input_image_mask`                                                                                                   | [Optional[components.InputImageMask]](../components/inputimagemask.mdx)                                               | :heavy_minus_sign:                                                                                                   | N/A                                                                                                                  |
| `model`                                                                                                              | [Optional[components.ModelEnum]](../components/modelenum.mdx)                                                         | :heavy_minus_sign:                                                                                                   | N/A                                                                                                                  |
| `moderation`                                                                                                         | [Optional[components.Moderation]](../components/moderation.mdx)                                                       | :heavy_minus_sign:                                                                                                   | N/A                                                                                                                  |
| `output_compression`                                                                                                 | *Optional[int]*                                                                                                      | :heavy_minus_sign:                                                                                                   | N/A                                                                                                                  |
| `output_format`                                                                                                      | [Optional[components.ImageGenerationServerToolOutputFormat]](../components/imagegenerationservertooloutputformat.mdx) | :heavy_minus_sign:                                                                                                   | N/A                                                                                                                  |
| `partial_images`                                                                                                     | *Optional[int]*                                                                                                      | :heavy_minus_sign:                                                                                                   | N/A                                                                                                                  |
| `quality`                                                                                                            | [Optional[components.ImageGenerationServerToolQuality]](../components/imagegenerationservertoolquality.mdx)           | :heavy_minus_sign:                                                                                                   | N/A                                                                                                                  |
| `size`                                                                                                               | [Optional[components.Size]](../components/size.mdx)                                                                   | :heavy_minus_sign:                                                                                                   | N/A                                                                                                                  |
| `type`                                                                                                               | [components.ImageGenerationServerToolType](../components/imagegenerationservertooltype.mdx)                           | :heavy_check_mark:                                                                                                   | N/A                                                                                                                  |