ImageCreationRequest

@Serializable
data class ImageCreationRequest(val prompt: String, val n: Int? = null, val size: ImageSize? = null, val user: String? = null, val responseFormat: ImageResponseFormat, val model: String? = null, val quality: Quality? = null, val style: Style? = null)

Image generation request. Results are expected as URLs.

Constructors

Link copied to clipboard
constructor(prompt: String, n: Int? = null, size: ImageSize? = null, user: String? = null, responseFormat: ImageResponseFormat, model: String? = null, quality: Quality? = null, style: Style? = null)

Properties

Link copied to clipboard
@SerialName(value = "model")
val model: String? = null
Link copied to clipboard
@SerialName(value = "n")
val n: Int? = null
Link copied to clipboard
@SerialName(value = "prompt")
val prompt: String
Link copied to clipboard
@SerialName(value = "quality")
val quality: Quality? = null
Link copied to clipboard
@SerialName(value = "response_format")
val responseFormat: ImageResponseFormat
Link copied to clipboard
@SerialName(value = "size")
val size: ImageSize? = null
Link copied to clipboard
@SerialName(value = "style")
val style: Style? = null
Link copied to clipboard
@SerialName(value = "user")
val user: String? = null