Pi is a minimal open source coding agent for the terminal. Add Utopixel as a provider in models.json and run it on any model with one key.
You need a Utopixel API key. Create one, add credit, and keep it handy.
Add the utopixel provider below to ~/.pi/agent/models.json. If the file already has other providers, add only the utopixel entry inside providers.
Export your key as UTOPIXEL_API_KEY. The $UTOPIXEL_API_KEY value in apiKey tells Pi to read the key from that variable.
Check the setup with pi --list-models utopixel. Pi only lists the models once the key variable is set.
Start Pi with pi --provider utopixel --model google/gemini-4-carbon, or run one prompt with pi --provider utopixel --model google/gemini-4-carbon -p "your prompt".
{"$schema": "https://pi.dev/schemas/models.schema.json","providers": {"utopixel": {"name": "Utopixel","baseUrl": "https://utopixel.online/api/v1","api": "openai-completions","apiKey": "$UTOPIXEL_API_KEY","models": [{ "id": "google/gemini-4-carbon", "contextWindow": 1048576 }]}}}
Add one object to models per Utopixel model you want, and take contextWindow from the model page. Pi assumes 16384 output tokens unless you set maxTokens.
Inside Pi, /model reloads models.json and lets you switch between the Utopixel models. Press Ctrl+S there to make one the default.
Pi works through tool calls, so pick models whose page lists tools among the supported parameters.
Every setting above comes from Pi's official docs
Paste any of these ids into Pi. 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 Pi 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.