ImageEvent
@Serializable
A partial, completed, or error event from image generation/editing. Check type before reading fields.
Constructors
Link copied to clipboard
constructor(type: String, b64JSON: String? = null, partialImageIndex: Int? = null, createdAt: Long? = null, background: ImageBackground? = null, outputFormat: ImageOutputFormat? = null, quality: Quality? = null, size: ImageSize? = null, safetyIdentifier: String? = null, usage: ImageUsage? = null, error: OpenAIErrorDetails? = null, code: String? = null, message: String? = null, param: String? = null)
Properties
Link copied to clipboard
Background of the output.
Link copied to clipboard
Nested service error, when supplied.
Link copied to clipboard
Image encoding.
Link copied to clipboard
Index of the partial image.
Link copied to clipboard
Effective safety identifier.
Link copied to clipboard
Final token accounting.