InputImage

data class InputImage(val type: String = "input_image", val detail: InputImage.Detail = Detail.AUTO, val imageUrl: String? = null, val fileId: String? = null) : InputContent(source)

Represents an image input to the model.

Author

Konstantin Pavlov

Constructors

Link copied to clipboard
constructor(type: String = "input_image", detail: InputImage.Detail = Detail.AUTO, imageUrl: String? = null, fileId: String? = null)

Types

Link copied to clipboard
object Companion
Link copied to clipboard

The detail level of the image.

Properties

Link copied to clipboard

The detail level of the image. One of "high", "low", or "auto".

Link copied to clipboard
@SerialName(value = "file_id")
val fileId: String?

The ID of the file to be sent to the model.

Link copied to clipboard
@SerialName(value = "image_url")
val imageUrl: String?

The URL of the image or base64 encoded image data.

Link copied to clipboard
@SerialName(value = "type")
open override val type: String

The type of the input item. Always "input_image".