Connect your AI agent to MixMedia
Claude Code, Codex, Cursor and other agents find models, read their parameters, check the price and run image, video and music generations: 19 image and 33 video models on one key. Connecting is free; generations are paid from your balance.
claude mcp add --transport http --scope user mixmedia https://api.mixmedia.tech/mcp \
--header 'Authorization: Bearer ${MIXMEDIA_API_KEY}'Three ways to connect
Set it up once and the agent sees the tools: models, prices, generation, status and balance. The server is remote; nothing to install.
https://api.mixmedia.tech/mcp LocalAgent SkillOne SKILL.md file in the skills folder. The agent calls the REST API with curl, no MCP needed.
SKILL.md · curl No installAI docsA prompt with the llms.txt link: the agent reads the docs and writes API code in any language.
llms.txt Coding modelsClaude, GPT, GeminiThe same key as the model provider for the agent itself: Claude Code, Codex, Gemini CLI, OpenCode, Cline.
Guides →Get a key and store it in a variable
Sign in at mixmedia.tech, open Dashboard → API keys and click “Create key”. Keys start with sk-aim-; one balance covers the website, the API and your agents.
Store it in the MIXMEDIA_API_KEY environment variable. The command asks for the key with hidden input, so it stays out of your shell history:
read -rs "MIXMEDIA_API_KEY?MixMedia API key: " && echo
echo "export MIXMEDIA_API_KEY='$MIXMEDIA_API_KEY'" >> ~/.zshrc && export MIXMEDIA_API_KEYread -rsp "MixMedia API key: " MIXMEDIA_API_KEY && echo
echo "export MIXMEDIA_API_KEY='$MIXMEDIA_API_KEY'" >> ~/.bashrc && export MIXMEDIA_API_KEY$k = Read-Host "MixMedia API key" -MaskInput
[Environment]::SetEnvironmentVariable("MIXMEDIA_API_KEY", $k, "User")
$env:MIXMEDIA_API_KEY = $k; Remove-Variable kcursor ., code .). Never paste the key into the agent chat or into install commands.MCP: step by step
Server https://api.mixmedia.tech/mcp (Streamable HTTP). Tools: list_models, get_model, calculate_price work without a key; create_generation, get_generation, get_balance need the key. Pick your client:
Add the MCP server
One command for macOS, Linux and Windows. Keep the single quotes: the config stores a reference to the variable, not the key itself.
claude mcp add --transport http --scope user mixmedia https://api.mixmedia.tech/mcp \
--header 'Authorization: Bearer ${MIXMEDIA_API_KEY}'The server shows up in every project. For a single project drop --scope user; the entry then goes to the project’s .mcp.json.
Verify
claude mcp listStart a new agent session and send the test prompt. It only reads the model list and costs nothing:
Use the mixmedia MCP server: call list_models for category image and show 5 models with prices. Do not generate anything.Inside Claude Code, /mcp shows the same.
✓ Tested on a live run: the agent called get_balance and list_models on our MCP with the key from the environment variable.
Add the MCP server
Codex reads the key from the variable. You pass the variable name, not the key:
codex mcp add mixmedia --url https://api.mixmedia.tech/mcp --bearer-token-env-var MIXMEDIA_API_KEYThe command appends this block to ~/.codex/config.toml; you can also paste it by hand. The Codex VS Code extension and the desktop app read the same file:
[mcp_servers.mixmedia]
url = "https://api.mixmedia.tech/mcp"
bearer_token_env_var = "MIXMEDIA_API_KEY"Verify
codex mcp listStart a new agent session and send the test prompt. It only reads the model list and costs nothing:
Use the mixmedia MCP server: call list_models for category image and show 5 models with prices. Do not generate anything.Fully quit and reopen the desktop app so it sees the variable.
✓ Tested on a live run: the agent called get_balance and list_models on our MCP with the key from the environment variable.
Add the server to mcp.json
Use ~/.cursor/mcp.json for all projects or .cursor/mcp.json in the project root. If the file exists, add the mixmedia block inside mcpServers:
{
"mcpServers": {
"mixmedia": {
"url": "https://api.mixmedia.tech/mcp",
"headers": {
"Authorization": "Bearer ${env:MIXMEDIA_API_KEY}"
}
}
}
}MIXMEDIA_API_KEY. If Cursor was not started from a terminal and does not see the variable, start it with cursor . or put the key straight into the header.Verify
Open Settings → MCP: mixmedia should show a green dot and 6 tools. Start a new agent session and send the test prompt. It only reads the model list and costs nothing:
Use the mixmedia MCP server: call list_models for category image and show 5 models with prices. Do not generate anything.Add the server to settings.json
File ~/.gemini/settings.json (Windows: %USERPROFILE%\.gemini\settings.json). If the file exists, add the block to mcpServers:
{
"mcpServers": {
"mixmedia": {
"httpUrl": "https://api.mixmedia.tech/mcp",
"headers": {
"Authorization": "Bearer $MIXMEDIA_API_KEY"
}
}
}
}Gemini CLI fills in $MIXMEDIA_API_KEY by itself.
Verify
gemini mcp listStart a new agent session and send the test prompt. It only reads the model list and costs nothing:
Use the mixmedia MCP server: call list_models for category image and show 5 models with prices. Do not generate anything.If the server shows Disabled, the folder is not trusted yet: run gemini there and trust the folder.
✓ Tested on a live run: the agent called get_balance and list_models on our MCP with the key from the environment variable.
Add the server to opencode.json
File ~/.config/opencode/opencode.json. If it already has the MixMedia provider from the guide, add just the mcp block:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"mixmedia": {
"type": "remote",
"url": "https://api.mixmedia.tech/mcp",
"headers": {
"Authorization": "Bearer {env:MIXMEDIA_API_KEY}"
},
"enabled": true
}
}
}Verify
opencode mcp listStart a new agent session and send the test prompt. It only reads the model list and costs nothing:
Use the mixmedia MCP server: call list_models for category image and show 5 models with prices. Do not generate anything.✓ Tested on a live run: the agent called get_balance and list_models on our MCP with the key from the environment variable.
Create .vscode/mcp.json
In the project folder. VS Code asks for the key the first time the server starts and keeps it in its secure storage:
{
"inputs": [
{
"type": "promptString",
"id": "mixmedia-key",
"description": "MixMedia API key",
"password": true
}
],
"servers": {
"mixmedia": {
"type": "http",
"url": "https://api.mixmedia.tech/mcp",
"headers": {
"Authorization": "Bearer ${input:mixmedia-key}"
}
}
}
}For every project: Command Palette → “MCP: Open User Configuration” and the same block.
Verify
Click Start above mixmedia in mcp.json. In Copilot Chat switch to Agent mode and check the Tools list. Start a new agent session and send the test prompt. It only reads the model list and costs nothing:
Use the mixmedia MCP server: call list_models for category image and show 5 models with prices. Do not generate anything.Add a remote server
Cline: MCP Servers icon → Configure → Configure MCP Servers opens cline_mcp_settings.json. These extensions do not read environment variables in headers, so the key goes straight into the file:
{
"mcpServers": {
"mixmedia": {
"type": "streamableHttp",
"url": "https://api.mixmedia.tech/mcp",
"headers": {
"Authorization": "Bearer sk-aim-YOUR_KEY"
},
"disabled": false
}
}
}Roo Code and Kilo Code: MCP → Edit Global MCP; the type is spelled differently:
{
"mcpServers": {
"mixmedia": {
"type": "streamable-http",
"url": "https://api.mixmedia.tech/mcp",
"headers": {
"Authorization": "Bearer sk-aim-YOUR_KEY"
}
}
}
}Verify
Start a new agent session and send the test prompt. It only reads the model list and costs nothing:
Use the mixmedia MCP server: call list_models for category image and show 5 models with prices. Do not generate anything.Connect the server
Settings → Developer → Edit Config, file claude_desktop_config.json. Node.js must be installed:
{
"mcpServers": {
"mixmedia": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://api.mixmedia.tech/mcp",
"--header",
"Authorization: Bearer sk-aim-YOUR_KEY"
]
}
}
}Models and prices only, no key and no generation: Settings → Connectors → Add custom connector, URL https://api.mixmedia.tech/mcp.
Verify
Fully quit Claude and open it again. In a new chat the tools icon lists mixmedia. Start a new agent session and send the test prompt. It only reads the model list and costs nothing:
Use the mixmedia MCP server: call list_models for category image and show 5 models with prices. Do not generate anything.Create a connector
Settings → Apps & Connectors → Advanced → Developer mode → Create. URL https://api.mixmedia.tech/mcp, authentication “No authentication”.
Without a key you get list_models, get_model and calculate_price: ChatGPT picks a model for the task and computes the exact price. Run generations on the site or from an agent with a key.
Verify
Pick the connector in a new chat and ask:
Using mixmedia, pick a model for a 5-second 720p video with sound and compute the exact price. Do not generate anything.Agent Skill: a local skill
The skill is a single file, SKILL.md: how to pick a model, check the price, upload a file, run a task and fetch the result. The agent needs terminal access and curl. The skill reads the key from MIXMEDIA_API_KEY.
Download the skill
mkdir -p ~/.claude/skills/mixmedia && curl -fsSL https://mixmedia.tech/agent-tools/skill/SKILL.md -o ~/.claude/skills/mixmedia/SKILL.mdNew-Item -ItemType Directory -Force "$HOME\.claude\skills\mixmedia" | Out-Null
Invoke-WebRequest https://mixmedia.tech/agent-tools/skill/SKILL.md -OutFile "$HOME\.claude\skills\mixmedia\SKILL.md"For one project put the folder into the repo’s .claude/skills/. Check with /skills in Claude Code.
mkdir -p ~/.agents/skills/mixmedia && curl -fsSL https://mixmedia.tech/agent-tools/skill/SKILL.md -o ~/.agents/skills/mixmedia/SKILL.mdNew-Item -ItemType Directory -Force "$HOME\.agents\skills\mixmedia" | Out-Null
Invoke-WebRequest https://mixmedia.tech/agent-tools/skill/SKILL.md -OutFile "$HOME\.agents\skills\mixmedia\SKILL.md"Codex reads skills from ~/.agents/skills, or .agents/skills in a project. List them with /skills.
mkdir -p ~/.cursor/skills/mixmedia && curl -fsSL https://mixmedia.tech/agent-tools/skill/SKILL.md -o ~/.cursor/skills/mixmedia/SKILL.mdNew-Item -ItemType Directory -Force "$HOME\.cursor\skills\mixmedia" | Out-Null
Invoke-WebRequest https://mixmedia.tech/agent-tools/skill/SKILL.md -OutFile "$HOME\.cursor\skills\mixmedia\SKILL.md"mkdir -p ~/.config/opencode/skills/mixmedia && curl -fsSL https://mixmedia.tech/agent-tools/skill/SKILL.md -o ~/.config/opencode/skills/mixmedia/SKILL.mdNew-Item -ItemType Directory -Force "$HOME\.config\opencode\skills\mixmedia" | Out-Null
Invoke-WebRequest https://mixmedia.tech/agent-tools/skill/SKILL.md -OutFile "$HOME\.config\opencode\skills\mixmedia\SKILL.md"Verify the skill
Restart the agent and send in a new session:
Using the mixmedia skill, list 5 image models with prices. Do not generate anything.If the agent only describes the steps, check the SKILL.md path and that the agent may run terminal commands.
✓ Tested in Claude Code: the skill listed models, computed the price and generated an image.
AI docs: no install
Works with any agent that can open links: Codex, Claude, Cursor, ChatGPT. Reading the docs is free and needs no key. Change the question to fit your task and paste the prompt into the agent chat, not into a terminal.
Read the MixMedia documentation index below and answer my question based on it:
https://docs.mixmedia.tech/en/llms.txt
The API key is in the MIXMEDIA_API_KEY environment variable; never print it.
My question: How do I generate a 5-second video with Seedance 2.5 Flash in Python and wait for the result? Check the model parameters and the price in the docs first.Index: docs.mixmedia.tech/en/llms.txt · all docs in one file: llms-full.txt · service and prices: mixmedia.tech/llms.txt · openapi.json
Which one to choose
| MCP | Agent Skill | AI docs | |
|---|---|---|---|
| Best for | Everyday generation from the agent | Repeatable workflows, teams | Questions and API code |
| Setup | Server URL and key | One SKILL.md file | None |
| How it runs | Ready tools on our server | curl to the REST API on your machine | The agent writes and runs code |
| Keep in mind | The client must support remote MCP | The agent needs a terminal | The agent needs web access |
Example prompts
The first two cost nothing. In the other two the agent shows the price first.
Using mixmedia, list 5 video models with the price per second. Do not generate anything.Using mixmedia, read the parameters of nano-banana-2, explain the required fields and compute the price of a 2K image. Do not generate anything.Using mixmedia, pick a model for a product shot, show me the price and, after my yes, generate a clear glass perfume bottle on dark stone. Save the file to ./assets.Using mixmedia, make a 5-second 16:9 video from ./assets/hero.png with a slow camera pull-back. Upload the file first, show the price and wait for my confirmation.What your agent can do with MixMedia
Models and prices
Live prices from the same catalog as the website and the API. The exact price for your parameters: the calculate_price tool or the calculator.
Images, video and music (53)
| Model and API ID | Type | Price |
|---|---|---|
MAI Image 2.7 Flashmai-image-2.7-flash | Image | from $0.012 per image |
FLUX 3 Image Kleinflux-3-image-klein | Image | from $0.013 per image |
Nano Banana Litenano-banana-lite | Image | from $0.02 per image |
Nano Banana 2.1nano-banana-2 | Image | from $0.025 per image |
Seedream Flashseedream-flash | Image | from $0.025 per image |
Nano Bananagoogle/nano-banana | Image | from $0.03 per image |
Nano Banana Editgoogle/nano-banana-edit | Image | from $0.03 per image |
Flux Devflux-dev | Image | from $0.033 per image |
GPT Image 2.6gpt-image-2.6-text-to-image | Image | from $0.035 per image |
MiniMax H3 Imageminimax-h3-image | Image | from $0.035 per image |
MAI Image 2.7mai-image-2.7 | Image | from $0.037 per image |
Seedream 5.5seedream-5.5 | Image | from $0.04 per image |
FLUX 3 Imageflux-3-image | Image | from $0.05 per image |
GPT Image 2.5gpt-image-2.5-text-to-image | Image | from $0.05 per image |
Nano Banana Pronano-banana-pro | Image | from $0.05 per image |
Seedream Proseedream-pro | Image | from $0.05 per image |
MiniMax H3 Image Highspeedminimax-h3-image-highspeed | Image | from $0.055 per image |
Kling V4 Imagekling-v4-image | Image | from $0.075 per image |
Kling V4 Long Imagekling-v4-long-image | Image | from $0.279 per image |
Seedance 1.0 Pro Fastseedance-1.0-pro-fast | Video | from $0.012/s |
Runwayrunway | Video | from $0.016/s |
Seedance 2.0 Miniseedance-2.0-mini | Video | from $0.016/s |
Wan 2.2 Fastwan-2.2-i2v-fast | Video | from $0.017/s |
Veo 3.1 Liteveo-3.1-lite | Video | from $0.025/s |
Gemini Omni 1.2 Flashgemini-omni-1.2-flash | Video | from $0.026/s |
Seedance 1.5 Proseedance-1.5-pro | Video | from $0.03/s |
Seedance 2.0 Fastseedance-2.0-fast | Video | from $0.036/s |
PixVerse V6pixverse-v6 | Video | from $0.037/s |
Pruna P-Video Replacepruna-p-video-replace | Video | from $0.039/s |
Gemini Omni Flashgemini-omni-flash | Video | from $0.049/s |
Veo 3.1 Fastveo-3.1-fast | Video | from $0.049/s |
Wan 3.0wan-3.0 | Video | from $0.054/s |
Seedance 2.5 Flashseedance-2.5-flash | Video | from $0.056/s |
Vidu Q4vidu-q4 | Video | from $0.059/s |
Seedance 2.0seedance-2.0 | Video | from $0.06/s |
Grok Imaginegrok-imagine | Video | from $0.065/s |
Kling 2.6kling-2.6 | Video | from $0.072/s |
MiniMax H3minimax-h3-video | Video | from $0.075/s |
Kling 2.6 Motion Controlkling-2.6-motion-control | Video | from $0.075/s |
Kling 2.5 Turbokling-2.5-turbo | Video | from $0.082/s |
Wan 2.5wan-2.5 | Video | from $0.087/s |
Seedance 2.5seedance-2.5 | Video | from $0.09/s |
Kling 3.0kling-3.0 | Video | from $0.091/s |
Kling 3.0 Omnikling-3.0-omni | Video | from $0.091/s |
OmniHuman 2.0omnihuman-2.0 | Video | from $0.091/s |
Grok Imagine 1.5grok-imagine-1.5 | Video | from $0.096/s |
Wan 2.7wan-2.7 | Video | from $0.104/s |
Kling 4.0 Flashkling-4.0-flash | Video | from $0.112/s |
Kling 3.0 Motion Controlkling-3.0-motion-control | Video | from $0.134/s |
Kling 4.0kling-4.0 | Video | from $0.186/s |
Veo 3.1 Qualityveo-3.1 | Video | from $0.204/s |
Higgsfield Genjutsuhiggsfield-genjutsu | Video | from $0.414/s |
Sunosuno-v6 | Music | from $0.09 per song |
Claude, GPT and Gemini for the agents themselves, $ per 1M tokens
The “Coding agents” column applies to Claude Code, Codex, Gemini CLI, OpenCode, Cline and similar tools. A regular API call (your backend, an SDK, curl) uses the “Regular API” column. How to connect →
| Model | ID | Coding agents | Regular API | ||||
|---|---|---|---|---|---|---|---|
| In | Out | Cache read | In | Out | Cache read | ||
| Claude Opus 5.5 | claude-opus-5-5 | $4.16 | $20.8 | $0.208 | $4.8 | $24 | $0.24 |
| Claude Sonnet 5.5 | claude-sonnet-5-5 | $2.08 | $10.4 | $0.208 | $2.4 | $12 | $0.24 |
| Claude Haiku 5.5 | claude-haiku-5-5 | $0.104 | $0.52 | $0.0104 | $0.12 | $0.6 | $0.012 |
| Claude Fable 5.2 | claude-fable-5.2 | $8.32 | $41.6 | $0.208 | $9.6 | $48 | $0.24 |
| GPT-6 Astra | gpt-6-astra | $10.4 | $52 | $1.04 | $12 | $60 | $1.2 |
| GPT-6.1 Sol | gpt-6.1-sol | $2.08 | $10.4 | $0.104 | $2.4 | $12 | $0.12 |
| GPT-6.2 Sol | gpt-6.2-sol | $2.08 | $10.4 | $0.104 | $2.4 | $12 | $0.12 |
| GPT-6.2 Astra | gpt-6.2-astra | $8.32 | $41.6 | $0.416 | $9.6 | $48 | $0.48 |
| GPT-5.6 | gpt-5.6 | $4.16 | $20.8 | $0.416 | $4.8 | $24 | $0.48 |
| Gemini 4 Argon | gemini-4-argon | $4.16 | $20.8 | $0.208 | $4.8 | $24 | $0.24 |
| Gemini 3.8 Flash | gemini-3.8-flash | $0.78 | $3.9 | $0.078 | $0.9 | $4.5 | $0.09 |
| Gemini 3.7 Flash | gemini-3.7-flash | $0.78 | $3.9 | $0.078 | $0.9 | $4.5 | $0.09 |
| Gemini 4 Carbon | gemini-4-carbon | $4.16 | $20.8 | $0.208 | $4.8 | $24 | $0.24 |
| Gemini 4 Hydrogen | gemini-4-hydrogen | $1.56 | $7.8 | $0.078 | $1.8 | $9 | $0.09 |
| DeepSeek V4 Pro | deepseek-v4-pro | $0.6686 | $2.0058 | $0.0669 | $0.7715 | $2.3144 | $0.0771 |
| DeepSeek V4.1 Flash | deepseek-v4.1-flash | $0.1486 | $0.5942 | $0.0149 | $0.1715 | $0.6857 | $0.0171 |
Coding prices apply to Claude Code, Codex, Gemini CLI, OpenCode, Cline and similar tools. A regular API call (curl, your own backend, an SDK) uses the Regular API column. Cache write is 1.25× the input price in the same column. A 1-hour cache write is 2× input for Claude and 2.5× input for GPT. Long context: Claude Haiku 5.5: prompts over 100k tokens — coding $0.52 / $2.6, direct API $0.6 / $3; GPT-6 Astra: prompts over 272k tokens — coding $20.8 / $78, direct API $24 / $90; GPT-6.1 Sol: prompts over 272k tokens — coding $4.16 / $15.6, direct API $4.8 / $18; GPT-6.2 Sol: prompts over 272k tokens — coding $4.16 / $15.6, direct API $4.8 / $18; GPT-6.2 Astra: prompts over 272k tokens — coding $16.64 / $62.4, direct API $19.2 / $72; GPT-5.6: prompts over 272k tokens — coding $8.32 / $31.2, direct API $9.6 / $36.
Machine-readable: api.mixmedia.tech/v1/models · prices.json
Keep the key and the balance safe
FAQ
Which agents can use MixMedia?
Any agent that supports remote MCP over Streamable HTTP: Claude Code, Codex (CLI, IDE extension and app), Cursor, Gemini CLI, OpenCode, VS Code with GitHub Copilot, Cline, Roo Code, Kilo Code and Claude Desktop. ChatGPT connects without a key for models and prices. Agents that read files from the web can also use llms.txt, and Claude Code, Codex, Cursor and OpenCode can load the local Skill.
MCP, Skill or AI docs: which one should I pick?
MCP is the simplest for everyday work: one setup, and the agent sees the tools for models, prices, generation and balance. The Skill suits agents that run terminal commands and teams that keep the setup in a repository; it calls the REST API with curl and does not need MCP. AI docs need no install at all: paste a prompt and the agent writes API code from llms.txt.
Do I need both MCP and the Skill?
No. They work independently. If both are installed, tell the agent which one to use.
How much does it cost?
Reading docs, the model list and price calculation are free and need no key. A generation is charged from your balance at the price shown on the model page, and refunded automatically if it fails. The agent should show you the price and ask before every paid run.
Is my key safe?
Keep the key in the MIXMEDIA_API_KEY environment variable. Claude Code, Codex, Gemini CLI, OpenCode and Cursor read it from there, and VS Code keeps it in its secure storage. Do not paste the key into the chat or commit it. A leaked key can be deleted in Dashboard → API keys.
Can the agent also use Claude, GPT or Gemini through MixMedia?
Yes. The same key works as a model provider for coding agents: Anthropic format at https://api.mixmedia.tech, OpenAI format at https://api.mixmedia.tech/v1, Gemini format for Gemini CLI. Step-by-step setup is in the guides; token prices are in the table on this page.
How do I pay?
Top up your balance with a Russian bank card, SBP or SberPay, or with any international card. There is no subscription.
More
Claude, GPT and Gemini models for agents with a MixMedia key
MCPThe MCP server in short
APIREST API for images, video and music
DocsModels, parameters, code samples
Questions? Telegram @mixmedia_robot.