# ImageGenerationOptions

Options for the Responses API image generation built-in tool.

Class 

`IntelligenceX.OpenAI.Chat`

**Namespace**

`IntelligenceX.OpenAI.Chat`

**Assembly**

`IntelligenceX`

**Source**

[ImageGenerationOptions.cs:12](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Providers/OpenAI/Chat/ImageGenerationOptions.cs#L12)

**Modifiers**

sealed

Options for the Responses API image generation built-in tool.

## Inheritance

- object
- ImageGenerationOptions

## Usage

Explore 5 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 4

- Property [ChatOptions.ImageGeneration](/api/intelligencex-openai-chat-chatoptions/#property-imagegeneration)
- Method [ImageGenerationOptions.Clone](/api/intelligencex-openai-chat-imagegenerationoptions/#method-clone)
- Property [EasyChatOptions.ImageGeneration](/api/intelligencex-openai-easychatoptions/#property-imagegeneration)
- Property [OpenAINativeOptions.ImageGeneration](/api/intelligencex-openai-native-openainativeoptions/#property-imagegeneration)

### Accepted by parameters 1

- Constructor [ImageGenerationOptions.ImageGenerationOptions](/api/intelligencex-openai-chat-imagegenerationoptions/#constructor-ctor-intelligencex-openai-chat-imagegenerationoptions) parameter `other`

Filter members 

Show inherited

## Constructors

ImageGenerationOptions 2 overloads

`public ImageGenerationOptions()` [#](#constructor-ctor)

[ImageGenerationOptions.cs:12](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Providers/OpenAI/Chat/ImageGenerationOptions.cs#L12)

Initializes a new instance.

`public ImageGenerationOptions(ImageGenerationOptions other)` [#](#constructor-ctor-intelligencex-openai-chat-imagegenerationoptions)

[ImageGenerationOptions.cs:17](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Providers/OpenAI/Chat/ImageGenerationOptions.cs#L17)

Initializes a new instance by copying values from other.

Parameters

**other IntelligenceX.OpenAI.Chat.ImageGenerationOptions required**

## Methods

`public ImageGenerationOptions Clone()` [#](#method-clone)

[ImageGenerationOptions.cs:81](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Providers/OpenAI/Chat/ImageGenerationOptions.cs#L81)

Creates a deep copy.

Returns

`ImageGenerationOptions`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public bool Enabled { get; set; }` [#](#property-enabled)

[ImageGenerationOptions.cs:36](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Providers/OpenAI/Chat/ImageGenerationOptions.cs#L36)

Whether to expose the image generation built-in tool to the model.

`public string? Quality { get; set; }` [#](#property-quality)

[ImageGenerationOptions.cs:41](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Providers/OpenAI/Chat/ImageGenerationOptions.cs#L41)

Optional image quality hint, for example low, medium, high, or auto.

`public string? Size { get; set; }` [#](#property-size)

[ImageGenerationOptions.cs:46](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Providers/OpenAI/Chat/ImageGenerationOptions.cs#L46)

Optional output size, for example 1024x1024, 1536x1024, or auto.

`public string? OutputFormat { get; set; }` [#](#property-outputformat)

[ImageGenerationOptions.cs:51](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Providers/OpenAI/Chat/ImageGenerationOptions.cs#L51)

Optional output format, for example png, webp, or jpeg.

`public int? OutputCompression { get; set; }` [#](#property-outputcompression)

[ImageGenerationOptions.cs:56](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Providers/OpenAI/Chat/ImageGenerationOptions.cs#L56)

Optional compression level for compressed formats when supported by the selected image model.

`public string? Background { get; set; }` [#](#property-background)

[ImageGenerationOptions.cs:61](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Providers/OpenAI/Chat/ImageGenerationOptions.cs#L61)

Optional background preference, for example auto, transparent, or opaque.

`public int? PartialImages { get; set; }` [#](#property-partialimages)

[ImageGenerationOptions.cs:66](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Providers/OpenAI/Chat/ImageGenerationOptions.cs#L66)

Optional streaming partial image count when supported by the backend.

`public string? OutputDirectory { get; set; }` [#](#property-outputdirectory)

[ImageGenerationOptions.cs:71](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Providers/OpenAI/Chat/ImageGenerationOptions.cs#L71)

Optional directory where generated images should be saved.

`public bool? SaveOutputImages { get; set; }` [#](#property-saveoutputimages)

[ImageGenerationOptions.cs:76](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Providers/OpenAI/Chat/ImageGenerationOptions.cs#L76)

Optional override for whether generated image base64 payloads should be persisted to disk.

<!-- PowerForge markdown artifact sha256:5DF2950C0F66C2F9240ED1502CFF8FF459592ABE01898DE48098AD985399C7AA -->
