Overview
Theimage_search tool lets the model search for existing photographs, diagrams, illustrations, and other images on the web during an Agent API request. Results are returned as structured image_search_results output items, separate from the assistant’s text.
Parameters
Filters
Use filters to constrain the image sources and formats used byimage_search.
Domain filter
Format filter
Useformat_filter to return only the listed image formats, such as ["jpeg", "png"].
Filter example
This example allowlists NASA and Wikimedia, restricts results to JPEG and PNG images, and keeps safe search enabled. To use denylist mode instead, replacedomain_filter with ["-gettyimages.com", "-shutterstock.com"].
Response shape
When the tool runs,output includes an image_search_results item before the final assistant message.
Streaming events
Withstream: true, image search emits two typed reasoning events. Match them by call_id:
The completed response also includes the
image_search_results output item shown above.
Pricing
Each invocation of theimage_search tool is billed at $2.50 per 1,000 tool invocations. See the Pricing page for full details.
Next steps
Web Search
Search the live web for source-grounded text results.
Image attachments
Send an image as input for the model to analyze.
Migrate from Sonar
Map Sonar image-result parameters to the Image Search tool.
API Reference
View the complete Agent API request and response schemas.