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 CodeCodexCursorGemini CLIOpenCodeVS CodeClineClaude DesktopChatGPT
Claude Code · one command, the key comes from an environment variable
claude mcp add --transport http --scope user mixmedia https://api.mixmedia.tech/mcp \
  --header 'Authorization: Bearer ${MIXMEDIA_API_KEY}'

Three ways to connect

Before you start · step 1

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:

macOS · zsh
read -rs "MIXMEDIA_API_KEY?MixMedia API key: " && echo
echo "export MIXMEDIA_API_KEY='$MIXMEDIA_API_KEY'" >> ~/.zshrc && export MIXMEDIA_API_KEY
Linux · bash
read -rsp "MixMedia API key: " MIXMEDIA_API_KEY && echo
echo "export MIXMEDIA_API_KEY='$MIXMEDIA_API_KEY'" >> ~/.bashrc && export MIXMEDIA_API_KEY
Windows · PowerShell 7
$k = Read-Host "MixMedia API key" -MaskInput
[Environment]::SetEnvironmentVariable("MIXMEDIA_API_KEY", $k, "User")
$env:MIXMEDIA_API_KEY = $k; Remove-Variable k
Apps started from the menu or dock see the new variable only after a restart. If Cursor or VS Code does not see it, launch them from the same terminal (cursor ., 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:

Step 2 of 3

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.

Terminal
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.

Step 3 of 3

Verify

Expect “✔ Connected”
claude mcp list

Start a new agent session and send the test prompt. It only reads the model list and costs nothing:

Test prompt
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.

Step 2 of 3

Add the MCP server

Codex reads the key from the variable. You pass the variable name, not the key:

Terminal
codex mcp add mixmedia --url https://api.mixmedia.tech/mcp --bearer-token-env-var MIXMEDIA_API_KEY

The 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:

~/.codex/config.toml
[mcp_servers.mixmedia]
url = "https://api.mixmedia.tech/mcp"
bearer_token_env_var = "MIXMEDIA_API_KEY"
Step 3 of 3

Verify

Status enabled, Auth: Bearer token
codex mcp list

Start a new agent session and send the test prompt. It only reads the model list and costs nothing:

Test prompt
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.

Step 2 of 3

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:

mcp.json
{
  "mcpServers": {
    "mixmedia": {
      "url": "https://api.mixmedia.tech/mcp",
      "headers": {
        "Authorization": "Bearer ${env:MIXMEDIA_API_KEY}"
      }
    }
  }
}
Cursor substitutes the key from 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.
Step 3 of 3

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:

Test prompt
Use the mixmedia MCP server: call list_models for category image and show 5 models with prices. Do not generate anything.
Step 2 of 3

Add the server to settings.json

File ~/.gemini/settings.json (Windows: %USERPROFILE%\.gemini\settings.json). If the file exists, add the block to mcpServers:

settings.json
{
  "mcpServers": {
    "mixmedia": {
      "httpUrl": "https://api.mixmedia.tech/mcp",
      "headers": {
        "Authorization": "Bearer $MIXMEDIA_API_KEY"
      }
    }
  }
}

Gemini CLI fills in $MIXMEDIA_API_KEY by itself.

Step 3 of 3

Verify

Expect “✓ mixmedia … Connected”
gemini mcp list

Start a new agent session and send the test prompt. It only reads the model list and costs nothing:

Test prompt
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.

Step 2 of 3

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:

opencode.json
{
  "$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
    }
  }
}
Step 3 of 3

Verify

Expect “✓ mixmedia connected”
opencode mcp list

Start a new agent session and send the test prompt. It only reads the model list and costs nothing:

Test prompt
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.

Step 2 of 3

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:

.vscode/mcp.json
{
  "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.

Step 3 of 3

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:

Test prompt
Use the mixmedia MCP server: call list_models for category image and show 5 models with prices. Do not generate anything.
Step 2 of 3

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:

cline_mcp_settings.json
{
  "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:

mcp_settings.json
{
  "mcpServers": {
    "mixmedia": {
      "type": "streamable-http",
      "url": "https://api.mixmedia.tech/mcp",
      "headers": {
        "Authorization": "Bearer sk-aim-YOUR_KEY"
      }
    }
  }
}
Step 3 of 3

Verify

Start a new agent session and send the test prompt. It only reads the model list and costs nothing:

Test prompt
Use the mixmedia MCP server: call list_models for category image and show 5 models with prices. Do not generate anything.
Step 2 of 3

Connect the server

Settings → Developer → Edit Config, file claude_desktop_config.json. Node.js must be installed:

claude_desktop_config.json
{
  "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.

Step 3 of 3

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:

Test prompt
Use the mixmedia MCP server: call list_models for category image and show 5 models with prices. Do not generate anything.
Step 2 of 3

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.

Step 3 of 3

Verify

Pick the connector in a new chat and ask:

Test prompt
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.

Step 2 of 3

Download the skill

macOS / Linux
mkdir -p ~/.claude/skills/mixmedia && curl -fsSL https://mixmedia.tech/agent-tools/skill/SKILL.md -o ~/.claude/skills/mixmedia/SKILL.md
Windows · PowerShell
New-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.

macOS / Linux
mkdir -p ~/.agents/skills/mixmedia && curl -fsSL https://mixmedia.tech/agent-tools/skill/SKILL.md -o ~/.agents/skills/mixmedia/SKILL.md
Windows · PowerShell
New-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.

macOS / Linux
mkdir -p ~/.cursor/skills/mixmedia && curl -fsSL https://mixmedia.tech/agent-tools/skill/SKILL.md -o ~/.cursor/skills/mixmedia/SKILL.md
Windows · PowerShell
New-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"
macOS / Linux
mkdir -p ~/.config/opencode/skills/mixmedia && curl -fsSL https://mixmedia.tech/agent-tools/skill/SKILL.md -o ~/.config/opencode/skills/mixmedia/SKILL.md
Windows · PowerShell
New-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"
Step 3 of 3

Verify the skill

Restart the agent and send in a new session:

Test prompt
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.

Prompt
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

MCPAgent SkillAI docs
Best forEveryday generation from the agentRepeatable workflows, teamsQuestions and API code
SetupServer URL and keyOne SKILL.md fileNone
How it runsReady tools on our servercurl to the REST API on your machineThe agent writes and runs code
Keep in mindThe client must support remote MCPThe agent needs a terminalThe agent needs web access

Example prompts

The first two cost nothing. In the other two the agent shows the price first.

List models
Using mixmedia, list 5 video models with the price per second. Do not generate anything.
Parameters and price
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.
An image for the project
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.
A video for a landing page
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

Pick a modelModel list with prices, filtered by type or search.
Read parametersRequired fields, formats, resolutions, duration.
Compute the priceThe exact amount before the run, by the same function that charges the balance.
GenerateImages, photo edits, text- and image-to-video, music. A failed run is refunded.

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 IDTypePrice
MAI Image 2.7 Flash
mai-image-2.7-flash
Imagefrom $0.012 per image
FLUX 3 Image Klein
flux-3-image-klein
Imagefrom $0.013 per image
Nano Banana Lite
nano-banana-lite
Imagefrom $0.02 per image
Nano Banana 2.1
nano-banana-2
Imagefrom $0.025 per image
Seedream Flash
seedream-flash
Imagefrom $0.025 per image
Nano Banana
google/nano-banana
Imagefrom $0.03 per image
Nano Banana Edit
google/nano-banana-edit
Imagefrom $0.03 per image
Flux Dev
flux-dev
Imagefrom $0.033 per image
GPT Image 2.6
gpt-image-2.6-text-to-image
Imagefrom $0.035 per image
MiniMax H3 Image
minimax-h3-image
Imagefrom $0.035 per image
MAI Image 2.7
mai-image-2.7
Imagefrom $0.037 per image
Seedream 5.5
seedream-5.5
Imagefrom $0.04 per image
FLUX 3 Image
flux-3-image
Imagefrom $0.05 per image
GPT Image 2.5
gpt-image-2.5-text-to-image
Imagefrom $0.05 per image
Nano Banana Pro
nano-banana-pro
Imagefrom $0.05 per image
Seedream Pro
seedream-pro
Imagefrom $0.05 per image
MiniMax H3 Image Highspeed
minimax-h3-image-highspeed
Imagefrom $0.055 per image
Kling V4 Image
kling-v4-image
Imagefrom $0.075 per image
Kling V4 Long Image
kling-v4-long-image
Imagefrom $0.279 per image
Seedance 1.0 Pro Fast
seedance-1.0-pro-fast
Videofrom $0.012/s
Runway
runway
Videofrom $0.016/s
Seedance 2.0 Mini
seedance-2.0-mini
Videofrom $0.016/s
Wan 2.2 Fast
wan-2.2-i2v-fast
Videofrom $0.017/s
Veo 3.1 Lite
veo-3.1-lite
Videofrom $0.025/s
Gemini Omni 1.2 Flash
gemini-omni-1.2-flash
Videofrom $0.026/s
Seedance 1.5 Pro
seedance-1.5-pro
Videofrom $0.03/s
Seedance 2.0 Fast
seedance-2.0-fast
Videofrom $0.036/s
PixVerse V6
pixverse-v6
Videofrom $0.037/s
Pruna P-Video Replace
pruna-p-video-replace
Videofrom $0.039/s
Gemini Omni Flash
gemini-omni-flash
Videofrom $0.049/s
Veo 3.1 Fast
veo-3.1-fast
Videofrom $0.049/s
Wan 3.0
wan-3.0
Videofrom $0.054/s
Seedance 2.5 Flash
seedance-2.5-flash
Videofrom $0.056/s
Vidu Q4
vidu-q4
Videofrom $0.059/s
Seedance 2.0
seedance-2.0
Videofrom $0.06/s
Grok Imagine
grok-imagine
Videofrom $0.065/s
Kling 2.6
kling-2.6
Videofrom $0.072/s
MiniMax H3
minimax-h3-video
Videofrom $0.075/s
Kling 2.6 Motion Control
kling-2.6-motion-control
Videofrom $0.075/s
Kling 2.5 Turbo
kling-2.5-turbo
Videofrom $0.082/s
Wan 2.5
wan-2.5
Videofrom $0.087/s
Seedance 2.5
seedance-2.5
Videofrom $0.09/s
Kling 3.0
kling-3.0
Videofrom $0.091/s
Kling 3.0 Omni
kling-3.0-omni
Videofrom $0.091/s
OmniHuman 2.0
omnihuman-2.0
Videofrom $0.091/s
Grok Imagine 1.5
grok-imagine-1.5
Videofrom $0.096/s
Wan 2.7
wan-2.7
Videofrom $0.104/s
Kling 4.0 Flash
kling-4.0-flash
Videofrom $0.112/s
Kling 3.0 Motion Control
kling-3.0-motion-control
Videofrom $0.134/s
Kling 4.0
kling-4.0
Videofrom $0.186/s
Veo 3.1 Quality
veo-3.1
Videofrom $0.204/s
Higgsfield Genjutsu
higgsfield-genjutsu
Videofrom $0.414/s
Suno
suno-v6
Musicfrom $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 →

ModelIDCoding agentsRegular API
InOutCache readInOutCache read
Claude Opus 5.5claude-opus-5-5$4.16$20.8$0.208$4.8$24$0.24
Claude Sonnet 5.5claude-sonnet-5-5$2.08$10.4$0.208$2.4$12$0.24
Claude Haiku 5.5claude-haiku-5-5$0.104$0.52$0.0104$0.12$0.6$0.012
Claude Fable 5.2claude-fable-5.2$8.32$41.6$0.208$9.6$48$0.24
GPT-6 Astragpt-6-astra$10.4$52$1.04$12$60$1.2
GPT-6.1 Solgpt-6.1-sol$2.08$10.4$0.104$2.4$12$0.12
GPT-6.2 Solgpt-6.2-sol$2.08$10.4$0.104$2.4$12$0.12
GPT-6.2 Astragpt-6.2-astra$8.32$41.6$0.416$9.6$48$0.48
GPT-5.6gpt-5.6$4.16$20.8$0.416$4.8$24$0.48
Gemini 4 Argongemini-4-argon$4.16$20.8$0.208$4.8$24$0.24
Gemini 3.8 Flashgemini-3.8-flash$0.78$3.9$0.078$0.9$4.5$0.09
Gemini 3.7 Flashgemini-3.7-flash$0.78$3.9$0.078$0.9$4.5$0.09
Gemini 4 Carbongemini-4-carbon$4.16$20.8$0.208$4.8$24$0.24
Gemini 4 Hydrogengemini-4-hydrogen$1.56$7.8$0.078$1.8$9$0.09
DeepSeek V4 Prodeepseek-v4-pro$0.6686$2.0058$0.0669$0.7715$2.3144$0.0771
DeepSeek V4.1 Flashdeepseek-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

Key in a variableNot in the chat, not in install commands, not in the repo.
Free check firstThe model list and prices cost nothing. Verify the setup with them.
Price before the runThe agent shows the amount and waits for your yes.
A separate keyGive the agent its own key: you can delete it without touching the others.
Pay with a Russian card, SBP, SberPay or any cardNo subscription. One balance for the website, the API and your agents.Top up

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

Questions? Telegram @mixmedia_robot.