OpenAIResponsesImageGenerationCall

@Serializable
@SerialName(value = "image_generation_call")
data class OpenAIResponsesImageGenerationCall(val id: String, val status: OpenAIImageGenerationStatus, val result: String? = null, val error: JsonElement? = null, val size: String? = null, val quality: String? = null, val revisedPrompt: String? = null) : OpenAIResponseInputItem, OpenAIResponseOutputItem

An image generation tool call performed by the model.

Constructors

Link copied to clipboard
constructor(id: String, status: OpenAIImageGenerationStatus, result: String? = null, error: JsonElement? = null, size: String? = null, quality: String? = null, revisedPrompt: String? = null)

Properties

Link copied to clipboard
val error: JsonElement?

Details of a moderation failure, when available.

Link copied to clipboard
val id: String

The unique ID of the image generation call.

Link copied to clipboard
open override val printableContent: String
Link copied to clipboard

The quality of the generated image.

Link copied to clipboard

The generated image encoded in base64. null while generating.

Link copied to clipboard
@SerialName(value = "revised_prompt")
val revisedPrompt: String?

The revised prompt used to generate the image, when the model rewrites prompts.

Link copied to clipboard
val size: String?

The image dimensions as a WIDTHxHEIGHT string, e.g. 1024x1024.

Link copied to clipboard

The status of the image generation call.