Interface ImageUrlContentPart

Image URL content part for multimodal messages (vision).

interface ImageUrlContentPart {
    image_url: { detail?: "auto" | "high" | "low"; url: string };
    type: "image_url";
}

Properties

Properties

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

Type declaration

  • Optionaldetail?: "auto" | "high" | "low"

    Controls how the model processes the image: 'auto' (default), 'low' (faster), 'high' (more detail).

  • url: string

    Supports inline base64-encoded JPEG or PNG data URIs only (e.g., data:image/jpeg;base64,...) for vision-model inputs. Max 20 images per request, 10MB each, longest side 1024px.

type: "image_url"