Search Results for

    Show / Hide Table of Contents

    Class XAIImageGenerationRequest

    Inheritance
    object
    XAIImageGenerationRequest
    Implements
    IJsonRequest
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.xAI
    Assembly: Glitch9.AIDevKit.Provider.XAI.dll
    Syntax
    public class XAIImageGenerationRequest : IJsonRequest

    Properties

    | Edit this page View Source

    Model

    Optional. Model to be used.

    Declaration
    [JsonProperty("model")]
    public string Model { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    N

    Optional. Number of images to be generated. Default: 1. Min: 1. Max: 10.

    Declaration
    [JsonProperty("n")]
    public int? N { get; set; }
    Property Value
    Type Description
    int?
    | Edit this page View Source

    Prompt

    Required. Prompt for image generation.

    Declaration
    [JsonProperty("prompt")]
    public string Prompt { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    ResponseFormat

    Optional. Response format to return the image in. Can be url or b64_json. Default: url.

    Declaration
    [JsonProperty("response_format")]
    public FileResponseFormat? ResponseFormat { get; set; }
    Property Value
    Type Description
    FileResponseFormat?
    | Edit this page View Source

    User

    Optional. A unique identifier representing your end-user, which can help xAI to monitor and detect abuse.

    Declaration
    [JsonProperty("user")]
    public string User { get; set; }
    Property Value
    Type Description
    string

    Implements

    IJsonRequest

    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