content is an array containing text and image_url parts.
Analyze an image URL
SetIMAGE_URL to an HTTPS URL that the selected provider can fetch without authentication. For private content, prefer a short-lived signed URL or an inline data URI, subject to request-size limits.
Inline image data
Encode local images as adata: URL when the request stays within gateway and provider limits:
Detail controls
When supported,detail can be:
lowfor faster, lower-cost coarse inspection;highfor detailed inspection and small text;autoto let the model choose.
Reliability and privacy
- Confirm the model supports vision before routing production traffic.
- Validate media type, byte size, pixel dimensions, and URL scheme.
- Block internal and link-local destinations if your server accepts user-supplied URLs.
- Use short-lived signed URLs and least-privilege object access.
- Remove sensitive metadata and redact images when required.
- Do not rely on vision output alone for identity, medical, safety, or compliance decisions.
- Ask for structured evidence such as observed text and regions, then validate it in application code.
Image input consumes model context and can be priced separately. Downscale to the resolution needed for the task and consult the account-specific pricing shown in the Yelu dashboard.