Skip to content
WagamiAI
ProductPricingDocsMCPCompareSupportSign inGet started
Answer

How does an AI agent search for images?

The agent calls the search_images tool, or POST /v1/images, with a query, and gets up to 100 pictures back with each one's address, size, format and the page it came from. A search costs 4 credits ($2.00 for 1,000 searches), and a search that finds nothing is free.

Updated 18 November 2026

At a glance

To getSendWhat comes backPrice
Searchquery, limit (1 to 100)Pictures in one list, the same picture never twice4 credits per search
Narrow itsize, layout, color, type, time, people, min_width, min_height, formatOnly pictures that fit4 credits per search
Mind the licencelicense: creative_commons, commercial or public_domainPictures whose site reports that licence, each with its page to check4 credits per search

The exact call

curl -X POST "https://wagamiai.com/v1/images" \
  -H "Authorization: Bearer $WAGAMI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "northern lights over a lake", "layout": "wide", "license": "commercial", "min_width": 1920, "limit": 30}'

What comes back:

{"ok": true, "query": "northern lights over a lake", "filters": {"safe": "strict", "layout": "wide", "license": "commercial", "min_width": 1920}, "count": 30, "items": [{"id": "…", "title": "Aurora above the still lake", "url": "https://example.org/photos/aurora.jpg", "page": "https://example.org/gallery/aurora", "host": "example.org", "width": 2400, "height": 1350, "format": "jpeg", "thumb": "https://wagamiai.com/v1/image/…?w=thumb", "fetch": "https://wagamiai.com/v1/image/…"}, …]}

From an AI agent: the MCP tool is search_images. How to connect.

Always safe

Adult pictures are never returned. There is no switch for it.

Questions

What does an image search cost?

4 credits for a search that finds at least one picture, whether it returns 10 or 100: $2.00 for 1,000 searches at the base rate. Previews are free; a full picture is 3 credits more.

May I use the pictures I find?

WagamiAI does not own or license the pictures it returns. The licence filter shows what the picture's site reports. It is a filter, not a grant: every result carries the page it came from, so check that page before you publish or reuse a picture. How you use it is your responsibility.

Which agents can call it?

Claude Code, Claude Desktop, Cursor, VS Code, Windsurf and other AI apps that connect to MCP servers, through the MCP server; and any agent or code that can make HTTPS requests, through the API.

Read next

Try it with your own key

Plans from $20 a month, or credits without a plan from $25. Errors are never charged.