API Reference
ImagePart
Defined in: types/content-part.ts:44
An image content part: a URL the model fetches, or an inline data: URI
(data:image/png;base64,...).
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
image_url | { detail?: "auto" | "low" | "high"; url: string; } | The image reference plus optional fidelity hint. | types/content-part.ts:48 |
image_url.detail? | "auto" | "low" | "high" | How much detail the model should spend on the image. "low" is cheaper / faster, "high" resolves fine detail, "auto" lets the model pick. Omitted means the provider default ("auto"). | types/content-part.ts:56 |
image_url.url | string | An http(s):// URL, or a data:<mime>;base64,<payload> URI. | types/content-part.ts:50 |
type | "image_url" | Discriminant. | types/content-part.ts:46 |