Search Results for

    Show / Hide Table of Contents

    Class OpenAIGptImageOptions

    Provider-specific request options for OpenAI GPT-Image (gpt-image-1) generation. Supports additional parameters such as background transparency and output compression. Pass this to ImageGenerationRequest via SetProviderOptions.

    Inheritance
    object
    OpenAIDiffusionOptionsBase
    OpenAIGptImageOptions
    Implements
    IImageRequestOptions
    IProviderRequestOptions
    Inherited Members
    OpenAIDiffusionOptionsBase.Quality
    OpenAIDiffusionOptionsBase.Style
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    public class OpenAIGptImageOptions : OpenAIDiffusionOptionsBase, IImageRequestOptions, IProviderRequestOptions

    Properties

    | Edit this page View Source

    Background

    Background transparency of the generated image. Accepted values: transparent, opaque, auto.

    Declaration
    public OpenAITypes.ImageBackground? Background { get; set; }
    Property Value
    Type Description
    OpenAITypes.ImageBackground?
    | Edit this page View Source

    Compression

    Output compression level for the generated image (0–100). Only applicable when the output format supports compression (e.g. WebP, JPEG).

    Declaration
    public OpenAITypes.ImageCompressionLevel Compression { get; set; }
    Property Value
    Type Description
    OpenAITypes.ImageCompressionLevel
    | Edit this page View Source

    Moderation

    Content moderation level applied to the generated image. Accepted values: "low", "auto".

    Declaration
    public string Moderation { get; set; }
    Property Value
    Type Description
    string

    Implements

    IImageRequestOptions
    IProviderRequestOptions

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation