# For AI assistants / MCP

> Connect MixMedia to Claude, ChatGPT, Cursor and other AI assistants via MCP: models, exact prices and generation.

MixMedia MCP server: `https://api.mixmedia.tech/mcp` (Streamable HTTP).

| Tool | Key | What it does |
|---|---|---|
| `list_models` | not needed | Models and prices, filter by category (image, video) |
| `get_model` | not needed | Model parameters and price rules |
| `calculate_price` | not needed | Exact price in $ and ₽ for a model and parameters |
| `create_generation` | required | Starts a generation, charged from the balance like createTask |
| `get_generation` | required | Status and result links |
| `get_balance` | required | Account balance |

Create a key in [Dashboard → API keys](https://mixmedia.tech/cabinet/keys) and send it as the `Authorization: Bearer <API_KEY>` header in the client settings. Without a key you get models and prices.

## Cursor

File `~/.cursor/mcp.json` (or `.cursor/mcp.json` in the project):

```json
{
  "mcpServers": {
    "mixmedia": {
      "url": "https://api.mixmedia.tech/mcp",
      "headers": {
        "Authorization": "Bearer sk-aim-..."
      }
    }
  }
}
```

## Claude Desktop

File `claude_desktop_config.json` (Settings → Developer → Edit Config). Needs Node.js:

```json
{
  "mcpServers": {
    "mixmedia": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://api.mixmedia.tech/mcp",
        "--header",
        "Authorization: Bearer sk-aim-..."
      ]
    }
  }
}
```

Models and prices only, no key: Settings → Connectors → Add custom connector → URL `https://api.mixmedia.tech/mcp`.

## Claude Code

```bash
claude mcp add --transport http mixmedia https://api.mixmedia.tech/mcp \
  --header "Authorization: Bearer sk-aim-..."
```

## ChatGPT

Settings → Apps & Connectors → Advanced → Developer mode → Create connector: URL `https://api.mixmedia.tech/mcp`, authentication — none. ChatGPT can then pick a model and quote the exact price.

## Other clients

Any client with remote MCP (Streamable HTTP) support: URL `https://api.mixmedia.tech/mcp`, plus the `Authorization: Bearer <API_KEY>` header if needed.

## Files for AI and developers

- [llms.txt](https://mixmedia.tech/llms.txt) and [llms-full.txt](https://mixmedia.tech/llms-full.txt) — what MixMedia is, models and prices in one text
- [prices.json](https://mixmedia.tech/prices.json) — prices of all models in $ and ₽ plus the rules (same: `https://api.mixmedia.tech/v1/pricing`)
- [Price calculator](https://api.mixmedia.tech/v1/pricing/calculate?model=seedance-2.0&resolution=720p&duration=5) — exact price, no key: `GET https://api.mixmedia.tech/v1/pricing/calculate?model=…&resolution=…&duration=…`
- [openapi.json](https://api.mixmedia.tech/openapi.json) — the API as OpenAPI 3.1

> Keep the key in the client settings, never in the chat. `create_generation` charges like a normal API request: the assistant should show the price and get your confirmation first.
