MixMedia Sign in
OpenCodeClaude · GPT · Gemini

OpenCode with MixMedia

One MixMedia key opens Claude, GPT and Gemini in OpenCode through the OpenAI-compatible URL https://api.mixmedia.tech/v1.

Pay with a Russian card, SBP or SberPay — no foreign card, no VPNTop up from $5 (Russian cards, SBP, SberPay; any card in USD). Usage is charged per token from your balance, no subscription.Top up
Step 1 of 5

Get an API key

Sign in at mixmedia.tech, open Dashboard → API keys and click “Create key”. The key starts with sk-aim-. It is the same key as for images and video, with one shared balance.

Top up in Dashboard → Balance. No subscription: you pay only for the tokens the model actually used.

Step 2 of 5

Install OpenCode

Terminal / PowerShell
npm install -g opencode-ai
Step 3 of 5

Create opencode.json

~/.config/opencode/opencode.json:

opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "mixmedia": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "MixMedia",
      "options": { "baseURL": "https://api.mixmedia.tech/v1", "apiKey": "{env:MIXMEDIA_API_KEY}" },
      "models": {
        "claude-sonnet-5-5": { "name": "Claude Sonnet 5.5" },
        "gpt-6.1-sol": { "name": "GPT-6.1 Sol" },
        "gemini-3.8-flash": { "name": "Gemini 3.8 Flash" }
      }
    }
  }
}
macOS / Linux
export MIXMEDIA_API_KEY="sk-aim-YOUR_KEY"
Step 4 of 5

Choose a model

Type /models in OpenCode and pick a MixMedia model.

ModelIDInput / 1MOutput / 1MCache read / 1M
Claude Opus 5.5claude-opus-5-5$4.16$20.8$0.208
Claude Sonnet 5.5claude-sonnet-5-5$2.08$10.4$0.208
Claude Haiku 5.5claude-haiku-5-5$0.104$0.52$0.0104
Claude Fable 5.2claude-fable-5.2$8.32$41.6$0.208
GPT-6 Astragpt-6-astra$10.4$52$1.04
GPT-6.1 Solgpt-6.1-sol$2.08$10.4$0.104
GPT-6.2 Solgpt-6.2-sol$2.08$10.4$0.104
GPT-6.2 Astragpt-6.2-astra$8.32$41.6$0.416
GPT-5.6gpt-5.6$4.16$20.8$0.416
Gemini 4 Argongemini-4-argon$4.16$20.8$0.208
Gemini 3.8 Flashgemini-3.8-flash$0.78$3.9$0.078
Gemini 3.7 Flashgemini-3.7-flash$0.78$3.9$0.078
Gemini 4 Carbongemini-4-carbon$4.16$20.8$0.208
Gemini 4 Hydrogengemini-4-hydrogen$1.56$7.8$0.078
DeepSeek V4 Prodeepseek-v4-pro$0.6686$2.0058$0.0669
DeepSeek V4.1 Flashdeepseek-v4.1-flash$0.1486$0.5942$0.0149

Prices for Claude Code, Codex, Gemini CLI, OpenCode, Cline and similar coding tools. The same models via a regular API call cost a bit more. Cache-read price depends on the model (see the table). 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.

Step 5 of 5

Run and verify

Terminal
cd your-project
opencode

Or: opencode run -m mixmedia/claude-sonnet-5-5 "fix the bug in calc.py".

FAQ

Can I use OpenCode from Russia?

Yes. Point OpenCode at https://api.mixmedia.tech with your MixMedia key. It works without a VPN and without an Anthropic, OpenAI or Google account.

How do I pay from Russia?

Top up your MixMedia balance with a Russian bank card, SBP or SberPay (from $5). No foreign card needed; tokens are charged from the balance.

Do I need a VPN?

No. api.mixmedia.tech is reachable from Russia directly, both for the CLI and for the VS Code extensions.

How much does it cost?

For coding tools such as OpenCode, from $0.104 per 1M input tokens depending on the model; cache-read prices are in the table on this page. A regular API call (not from a coding tool) costs a bit more. Full list: api.mixmedia.tech/v1/models.

How is it different from the official API?

Same models and the same API format, so the tools work unchanged. The difference is payment and access: Russian cards and SBP, no VPN, one key for Claude, GPT and Gemini. Prices are per token and may be higher than the official list price.

How do I get a key?

Sign in at mixmedia.tech, open Dashboard → API keys, click “Create key” and top up the balance.

Other tools

Questions? Telegram @mixmedia_robot.