Gemini CLI with MixMedia
Gemini CLI talks to https://api.mixmedia.tech with the native Gemini API: tools, streaming, file edits.
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.
Install Gemini CLI
npm install -g @google/gemini-cliNode.js 20+ required.
Set the URL and key
export GOOGLE_GEMINI_BASE_URL="https://api.mixmedia.tech"
export GEMINI_API_KEY="sk-aim-YOUR_KEY"[Environment]::SetEnvironmentVariable("GOOGLE_GEMINI_BASE_URL", "https://api.mixmedia.tech", "User")
[Environment]::SetEnvironmentVariable("GEMINI_API_KEY", "sk-aim-YOUR_KEY", "User"){
"security": { "auth": { "selectedType": "gemini-api-key" } },
"model": { "name": "gemini-3.8-flash" }
}Choose a model
Set it in settings.json or run gemini -m gemini-4-argon.
| Model | ID | Input / 1M | Output / 1M | Cache read / 1M |
|---|---|---|---|---|
| Gemini 4 Argon | gemini-4-argon | $4.16 | $20.8 | $0.208 |
| Gemini 3.8 Flash | gemini-3.8-flash | $0.78 | $3.9 | $0.078 |
| Gemini 3.7 Flash | gemini-3.7-flash | $0.78 | $3.9 | $0.078 |
| Gemini 4 Carbon | gemini-4-carbon | $4.16 | $20.8 | $0.208 |
| Gemini 4 Hydrogen | gemini-4-hydrogen | $1.56 | $7.8 | $0.078 |
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.
Run and verify
cd your-project
geminiTroubleshooting
Invalid auth method selected
Add security.auth.selectedType = "gemini-api-key" to settings.json.
FAQ
Can I use Gemini CLI from Russia?
Yes. Point Gemini CLI 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 Gemini CLI, 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.