Class ImageGenerationTool
A tool that generates images using a model like gpt-image-1.
Inherited Members
Namespace: Glitch9.AIDevKit
Assembly: Glitch9.AIDevKit.dll
Syntax
public class ImageGenerationTool : Tool
Properties
| Edit this page View SourceBackground
Optional. Background type for the generated image. One of transparent, opaque, or auto.
Declaration
[JsonProperty("background")]
public OpenAITypes.ImageBackground? Background { get; set; }
Property Value
| Type | Description |
|---|---|
| OpenAITypes.ImageBackground? |
InputFidelity
Optional. Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for gpt-image-1. Supports high and low. Defaults to low.
Declaration
[JsonProperty("input_fidelity")]
public OpenAITypes.Fidelity? InputFidelity { get; set; }
Property Value
| Type | Description |
|---|---|
| OpenAITypes.Fidelity? |
InputImageMask
Optional. Optional mask for inpainting. Contains image_url (string, optional) and file_id (string, optional).
Declaration
[JsonProperty("input_image_mask")]
public OpenAITypes.ImageReference InputImageMask { get; set; }
Property Value
| Type | Description |
|---|---|
| OpenAITypes.ImageReference |
Model
Optional. The image generation model to use. Default: gpt-image-1.
Declaration
[JsonProperty("model")]
public string Model { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Moderation
Optional. Moderation level for the generated image. Default: auto.
Declaration
[JsonProperty("moderation")]
public OpenAITypes.ImageModeration? Moderation { get; set; }
Property Value
| Type | Description |
|---|---|
| OpenAITypes.ImageModeration? |
OutputCompression
Optional. Compression level for the output image. Default: 100.
Declaration
[JsonProperty("output_compression")]
public int? OutputCompression { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
OutputFormat
Optional. The output format of the generated image. One of png, webp, or jpeg. Default: png.
Declaration
[JsonProperty("output_format")]
public string OutputFormat { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
PartialImages
Optional. Number of partial images to generate in streaming mode, from 0 (default value) to 3.
Declaration
[JsonProperty("partial_images")]
public int? PartialImages { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
Quality
Optional. The quality of the generated image. One of low, medium, high, or auto. Default: auto.
Declaration
[JsonProperty("quality")]
public OpenAITypes.ImageQuality? Quality { get; set; }
Property Value
| Type | Description |
|---|---|
| OpenAITypes.ImageQuality? |
Size
Optional. The size of the generated image. One of 1024x1024, 1024x1536, 1536x1024, or auto. Default: auto.
Declaration
[JsonProperty("size")]
public MediaSize? Size { get; set; }
Property Value
| Type | Description |
|---|---|
| MediaSize? |