VanaAPI

← Writing

Gemini CLI on the Vana API relay: one address, three protocols

Agents at the terminalEN2026-11-10

§ Can Gemini CLI and my other tools share one address?

Yes, and that is the whole idea behind the Vana API relay. Every request goes to a single address: https://api.vanaapi.com. You do not maintain a separate endpoint for each family of models, and you do not juggle several provider logins for the same workspace. Gemini CLI points at that address, and your OpenAI-format tools point at the same address.

That one address speaks three protocols. Anthropic Messages is one of them, the Gemini native protocol is another, and the OpenAI chat completions format is the third. The protocol your client already speaks decides which models you can reach. The address stays the same either way, which is why switching a tool over to Vana API is mostly a matter of pointing it at https://api.vanaapi.com and adding a key.

One thing to keep separate: the address answers API requests only. Keys, balance and the usage log live in the dashboard on the main site, https://vanaapi.com. Create the key there, then paste it into whichever client you are configuring.

§ Which client should I pair with which model?

Start with Gemini CLI, since that is the tool in the title. Gemini models on Vana API are available only from Gemini CLI, over the Gemini native protocol at /v1beta/models/.... They are not OpenAI-compatible, so the correct pairing is Gemini CLI plus the Gemini native route. In Gemini CLI, set the base address to https://api.vanaapi.com and let the native protocol handle the rest.

The Gemini models you can reach that way include Gemini 2.5 Flash, Gemini 3.1 Pro, Gemini 3.8 Flash and Gemini 4 Argon. Their per-million-token rates on Vana API are:

  • Gemini 2.5 Flash: $0.2083 / $1.60
  • Gemini 3.1 Pro: $1.39 / $7.92
  • Gemini 3.8 Flash: $1.04 / $4.65
  • Gemini 4 Argon: $1.46 / $6.88

Claude models follow a different rule. They are available only from official Claude Code or Claude Desktop, version 2.1.285 or later, because those applications speak Anthropic Messages at /v1/messages themselves. They do not work from any other client, any SDK, cURL or a script. So if Claude is what you want, the pairing is Claude Code or Claude Desktop plus the Anthropic Messages route on https://api.vanaapi.com.

Everything else in the catalogue uses the OpenAI format at /v1/chat/completions. That covers GPT, Grok, DeepSeek, GLM, Kimi, Qwen, MiniMax and MiMo models, and it works from Cursor, Cline, Roo Code, OpenCode, Cherry Studio, any OpenAI SDK or cURL. GPT models also answer on /v1/responses, which is the route Codex uses.

In practice, a single working setup can look like this: Gemini CLI configured for the Gemini native protocol, Claude Code configured for Anthropic Messages, and an OpenAI-compatible editor configured for chat completions, all three pointing at the same Vana API address with keys from the same dashboard.

§ What does the setup actually involve?

Very little. There is no monthly fee to turn on and no plan to choose before your first request. You create a key in the dashboard on https://vanaapi.com, top up a prepaid balance, and point your client at https://api.vanaapi.com. Billing is pay-as-you-go: you are charged per real token, and every call is listed in the usage log in the dashboard.

Because the address is fixed, adding a second tool is not a second integration project. You copy the same base address into the new client, paste the same key, and select the protocol that client already speaks. If a client expects the OpenAI format, it gets the OpenAI format. If it expects Anthropic Messages, it gets Anthropic Messages. If it is Gemini CLI, it uses the Gemini native protocol.

There is a small credit on sign-up as well: $0.10 of credit. That is enough to make a first request and see the call appear in the usage log, which is a quick way to confirm the address and key are correct before you move anything larger.

§ What does it cost per million tokens?

Vana API lists per-million-token prices in input and output order, and the gap against official list prices on the Claude and GPT lines is visible. For example, Claude Fable 5.1 is $3.33 / $16.74 on Vana API against an official list price of $10 / $50. Claude Opus 5.5 is $1.46 / $6.94 against $4 / $20, and Claude Sonnet 5.5 is $1.18 / $5.76 against $2 / $10. Claude Haiku 4.5 is $0.3472 / $1.60 against $1 / $5.

On the GPT side, GPT-5.6 Sol is $0.3472 / $1.81 against an official list price of $4 / $20. GPT-6 Astra is $0.6944 / $3.54 against $10 / $50, and GPT-6.1 Sol is $0.1389 / $0.8333 against $2 / $10.

The OpenAI-format models are priced in the same table. Grok 4.7 is $0.4861 / $1.53. DeepSeek V4 Flash is $0.2778 / $1.04 and DeepSeek V4 Pro is $1.11 / $3.33. GLM-5.3 is $0.5556 / $1.67, Kimi K3 is $1.04 / $5.21, Qwen3.7 Plus is $0.1278 / $0.4167, Qwen3.8 Max is $0.6944 / $2.08, MiniMax M3 is $0.1389 / $0.5556, and MiMo V2.6 Pro is $0.2083 / $0.3472.

Since you are charged per real token, the practical effect of one address is that you can route each task to the model that suits it without rebuilding your setup. For example, say you run a mixture of daily coding and writing tasks through the same workstation. You could keep Gemini CLI on Gemini 3.8 Flash at $1.04 / $4.65 for quick drafting, and point an OpenAI-format client at GPT-6.1 Sol at $0.1389 / $0.8333 for routine edits. The example is simple, but the point stands: the choice of model changes, the address does not.

§ Are monthly plans available, and how do balance and refunds work?

They are, and they are optional. The Claude plans cover Claude models only:

  • Claude up to $450 / 30 days: $64.72 for 30 days, at most $140 a week, Claude models only
  • Claude up to $1,050 / 30 days: $153.61 for 30 days, at most $320 a week, Claude models only

There is also a GPT plan: GPT up to $2,750 / 30 days: $103.61 for 30 days, at most $820 a week, GPT models only. If you prefer to top up and pay per real token instead, the prepaid balance model already covers that, with no monthly fee.

Refunds are straightforward. Unused balance can be refunded within 3 days of the top-up, minus what was used and the payment processor's fee. Every call is listed in the usage log in the dashboard, so the amount in use is always visible to you rather than something you have to infer.

There is also a referral programme. You receive 14% of what people you invite pay, and 5% one level further, and earnings can be withdrawn from $13.89. The sign-up gift of $0.10 of credit and the referral percentages are both handled from the same dashboard where your keys and usage log live.

Put together, the arrangement is compact: one address at https://api.vanaapi.com, three protocols, minimal setup, and per-token pricing you can check line by line in the usage log. Gemini CLI, Claude Code and your OpenAI-format tools can all sit behind the same Vana API address, and the only thing you choose per tool is the model.