Class XAIImageGenerationRequest
Implements
Inherited Members
Namespace: Glitch9.AIDevKit.xAI
Assembly: Glitch9.AIDevKit.Provider.XAI.dll
Syntax
public class XAIImageGenerationRequest : IJsonRequest
Properties
| Edit this page View SourceModel
Optional. Model to be used.
Declaration
[JsonProperty("model")]
public string Model { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
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? |
Prompt
Required. Prompt for image generation.
Declaration
[JsonProperty("prompt")]
public string Prompt { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
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? |
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 |