OpenCode is an open source coding agent for the terminal. Add Utopixel as a custom provider in opencode.jsonc and run it on any model with one key.
You need a Utopixel API key. Create one, add credit, and keep it handy.
Create opencode.jsonc in your project root, or in ~/.config/opencode/ to use it in every project, with the provider below.
Export your key as UTOPIXEL_API_KEY. The provider's env field tells OpenCode to read the key from that variable.
Start opencode. The model key makes utopixel/google/gemini-4-carbon the default.
For a one off prompt from the shell, run opencode run -m utopixel/google/gemini-4-carbon "your prompt".
{"$schema": "https://opencode.ai/config.json","providers": {"utopixel": {"name": "Utopixel","env": ["UTOPIXEL_API_KEY"],"package": "@opencode/ai/providers/openai-compatible","settings": { "baseURL": "https://utopixel.online/api/v1" },"models": {"google/gemini-4-carbon": {"name": "google/gemini-4-carbon","limit": { "context": 1048576 }}}}},"model": "utopixel/google/gemini-4-carbon"}
The key under providers becomes the prefix of every model reference, so our id google/gemini-4-carbon is selected as utopixel/google/gemini-4-carbon.
Add one entry under models per Utopixel model you want in the picker, and take limit.context from the model page.
Every setting above comes from OpenCode's official docs
Paste any of these ids into OpenCode. Prices are per 1M tokens, pay as you go.
| Model id | Input | Output | Context |
|---|---|---|---|
Gemini 4 Carbongoogle/gemini-4-carbon | $4.00 | $20.00 | 1.05M |
Gemini 4 Argongoogle/gemini-4-argon | $4.00 | $20.00 | 1.05M |
GPT-6.1 Solopenai/gpt-6.1-sol | $2.00 | $10.00 | 1.05M |
Grok 4.7x-ai/grok-4.7 | $2.00 | $6.00 | 500K |
Stuck on setup? Email [email protected] with the error you see and we will help you get OpenCode running.
One API key for the models of OpenAI, Google, DeepSeek, Moonshot AI, Qwen, xAI, Z.ai, Meta, Amazon, AionLabs, Anthropic, Baidu, ByteDance Seed, Cohere, Elorian, Fireworks AI, IBM, inclusionAI, Inference.net, KT, Liquid AI, Meituan, Meta, MiniMax, Mistral AI, Moondream, Motif Technologies, Nex AGI, NVIDIA, Particle AI, Perceptron, Prism ML, Reflection AI, Reka, Relace, Ricursive AI, Sakana AI, StepFun, Tencent, Thinking Machines, Unbiased, Upstage, Writer and Xiaomi. Start free, no card needed.