# How does an AI agent search for images?

> An agent calls search_images (or POST /v1/images) with a query and filters and gets up to 100 pictures with size, format and source page. 4 credits a search.

[Answer](https://wagamiai.com/answers)

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 get | Send | What comes back | Price |
| --- | --- | --- | --- |
| Search | query, limit (1 to 100) | Pictures in one list, the same picture never twice | 4 credits per search |
| Narrow it | size, layout, color, type, time, people, min_width, min_height, format | Only pictures that fit | 4 credits per search |
| Mind the licence | license: creative_commons, commercial or public_domain | Pictures whose site reports that licence, each with its page to check | 4 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](https://wagamiai.com/mcp).

## Always safe

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

## A preview and the full picture

Every picture comes with two links on WagamiAI: a small preview, which is free, and the full picture, which costs 3 credits once per link. The picture's own address and its page are in the answer too.

## 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

- [The image search API](https://wagamiai.com/image-search-api)
- [Image search in the docs](https://wagamiai.com/docs#images)
- [The MCP server](https://wagamiai.com/mcp)
- [All answers](https://wagamiai.com/answers)

## Try it with your own key

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

[Get started](https://wagamiai.com/signup) [See pricing](https://wagamiai.com/pricing)

---
This is the Markdown copy of https://wagamiai.com/answers/image-search-for-ai-agents (WagamiAI). Every page has one: add `.md` to its address. All pages: https://wagamiai.com/llms.txt
