# API Pricing for agents

> Let agents read AI API prices across six platforms. Everything is read-only, free and needs no sign-in. https://apipricing.codertony.com

## One prompt for any agent

Paste this into Claude Code, Codex, Cursor or any coding agent. It reads the setup guide, adds the MCP server for the client it runs in, checks it with one call and tells you what is left to do.

```text
Read https://apipricing.codertony.com/setup.md and add the API Pricing MCP server
```

## MCP server

Add one URL to Claude Code, Codex, Cursor or any MCP client and ask in plain words: “which platform is cheapest for image-to-video?”. Streamable HTTP, no sign-in. Each client writes the config a little differently; use the line for yours.

```bash
# Claude Code
claude mcp add --transport http --scope user apipricing https://apipricing.codertony.com/mcp

# Codex
codex mcp add apipricing --url https://apipricing.codertony.com/mcp

# Cursor (~/.cursor/mcp.json)
{
  "mcpServers": {
    "apipricing": { "url": "https://apipricing.codertony.com/mcp" }
  }
}

# VS Code
code --add-mcp '{"name":"apipricing","type":"http","url":"https://apipricing.codertony.com/mcp"}'

# Gemini CLI
gemini mcp add --transport http apipricing https://apipricing.codertony.com/mcp -s user

# Claude.ai / Claude Desktop
Connectors → Add custom connector. Paste the MCP URL and choose no sign-in.

# ChatGPT
Add a custom MCP server with the MCP URL and no authentication. Whether your plan allows it is up to OpenAI.
```

- `search_prices`: Search every current price by words in the model, platform or variant.
- `get_model_prices`: Every price of one model on one platform, with the same family on other platforms.
- `cheapest`: The cheapest exact prices for a task (video/image-to-video) or a family (video/kling).
- `compare_family`: A model family across platforms: cheapest per platform and the prices behind it.

## Copy for agent

Every model, family, task and category page has a “Copy for agent” button. It copies the page as compact Markdown: the API model id, every price by variant, the same model on other platforms, when it was read and where. Paste it into any chat. The menu also opens the page in ChatGPT or Claude.

## Markdown for every page

Add .md to any page URL, or send Accept: text/markdown. No navigation, no scripts, about a tenth of the tokens of the HTML. Chinese versions are under /zh.

```bash
curl https://apipricing.codertony.com/video/image-to-video.md
curl https://apipricing.codertony.com/prices/replicate/google/veo-3.1.md
curl -H "Accept: text/markdown" https://apipricing.codertony.com/image/flux
```

## llms.txt

An index of the site for language models: what it covers, and a Markdown link for every category, task and model family with its current from-price.

```bash
curl https://apipricing.codertony.com/llms.txt
```

## JSON API

Read-only, no key, CORS open, cached for ten minutes. Prices are USD per unit; each row has the API model id, the variant, the platform’s own wording and a link to its page.

```bash
# Search
curl "https://apipricing.codertony.com/api/v1/search?q=kling%202.6&category=video&limit=10"

# Cheapest for a task or a model family
curl "https://apipricing.codertony.com/api/v1/cheapest?task=video/image-to-video&limit=10"
curl "https://apipricing.codertony.com/api/v1/cheapest?family=image/nano-banana"

# One model on one platform
curl "https://apipricing.codertony.com/api/v1/models/replicate/google/veo-3.1"
```
