ImageGenerationRequest
@Serializable
Image generation request.
Constructors
Link copied to clipboard
constructor(prompt: String, n: Int? = null, size: ImageSize? = null, user: String? = null, model: ModelId, quality: Quality? = null, style: Style? = null, background: ImageBackground? = null, moderation: ImageModeration? = null, outputCompression: Int? = null, outputFormat: ImageOutputFormat? = null, partialImages: Int? = null, safetyIdentifier: String? = null)
Properties
Link copied to clipboard
Background transparency.
Link copied to clipboard
Image moderation level.
Link copied to clipboard
JPEG or WebP compression from 0 to 100.
Link copied to clipboard
Encoded image format.
Link copied to clipboard
Number of partial images requested during streaming, from 0 to 3.
Link copied to clipboard
Stable, non-identifying end-user identifier.
Link copied to clipboard
The style of the generated images. Must be one of Style.Vivid or [Style.Natural]. Vivid causes the model to lean towards generating hyper-real and dramatic images. Natural causes the model to produce more natural, less hyper-real looking images. This param is only supported for dall-e-3.