user message and ask in the same request. For formats, size limits, the request spec, and pricing, see Image Attachments.
Attach an image
An image is oneinput_image content part inside a user message, sitting next to your input_text. The image_url field takes a public HTTPS URL or a base64 data URI for a local file. This example points the agent at a hosted photo and asks about it.
image_url — the request shape is identical.
When to reach for it
- Read a chart, dashboard, or table and report the trend or numbers
- Debug from a screenshot of an error, a UI state, or a stack trace
- Identify what’s in a photo — a product, a landmark, a species, a part
- Pull text and structure out of a document scan, receipt, or form
Next steps
Give it tools
Combine image input with web search and other tools.
Image Attachments
Formats, size limits, request format, and pricing.