The definition of a user image content.

interface TextChatUserImageURL {
    detail?: "auto" | "high" | "low";
    url?: string;
}

Properties

Properties

detail?: "auto" | "high" | "low"

This parameter controls how the model processes the image and generates its textual understanding. The auto setting will look at the image input size and decide if it should use the low or high setting.

Default

"auto"
url?: string

You can either set this string to a base64 encoded image, or use data_asset field to refer to an uploaded image.

Example

"data:image/jpeg;base64,{base64_image}"