Image

@Serializable
@SerialName(value = "image_url")
data class Image(val imageUrl: ModerationInput.ImageUrl) : ModerationInput

Image to classify, supplied as an HTTPS URL or a base64 data URL.

Constructors

Link copied to clipboard
constructor(url: String)

Creates an image input from its URL or base64 data URL.

constructor(imageUrl: ModerationInput.ImageUrl)

Properties

Link copied to clipboard
@SerialName(value = "image_url")
val imageUrl: ModerationInput.ImageUrl

Image URL reference.