Search 15 relevant pages
POST /search uses type auto and numResults 15. The current interface does not send a category. The server adds x-exa-integration: image-search-demo for usage attribution.
/search
Find images for a subject, remove logos and duplicates, and keep the source page for each result.
Image results need enough context to judge relevance and provenance. Exa returns image candidates with the pages that published them, giving the application both visual coverage and source attribution.
The default Auto flow makes one live Exa Search request, then applies deterministic safety, quality, and deduplication checks before returning image tiles. The result-count and image-count controls are clamped server-side.
POST /search uses type auto and numResults 15. The current interface does not send a category. The server adds x-exa-integration: image-search-demo for usage attribution.
/search
The Auto schema marks images with x-exa-image-references and asks for the slider-selected target, clamped from 1 to 30. contents.extras also requests richImageLinks and imageLinks so the app can fill gaps when the structured image list returns too few candidates.
Application code removes SVGs, obvious logos and interface assets, tiny files, hotlink-protected image hosts, and duplicate URLs, alt text, or CDN asset variants. Each retained tile keeps the source page URL and title.
The alternative legacy mode uses the same type auto and 15-page retrieval but omits the structured image-reference schema and expands page image metadata directly. The default Auto path is the one represented by the request above.