VanaAPI

← Writing

Vana API proxy setup for OpenCode and your other tools

Agents at the terminalEN2026-11-23

§ One address for OpenCode and your other tools

When you point OpenCode at a model provider, the first question is usually practical: where do the requests go, and how many different settings do you need to keep track of? Vana API is built around a simple answer. There is one API address, https://api.vanaapi.com, and it speaks three protocols. Your tools connect to that same address, and the protocol each tool speaks decides how it reaches the models.

For OpenCode, the relevant path is the OpenAI format at /v1/chat/completions. That is the format OpenCode already expects, so the setup stays small. You create a key in the Vana API dashboard, add the address to your OpenCode configuration, and you are ready to send requests. There is no separate endpoint to manage for each model family and no separate account to open for each tool.

The same address also serves Cursor, Cline, Roo Code, Cherry Studio, any OpenAI SDK, and cURL, because those clients use the OpenAI format as well. GPT models additionally answer on /v1/responses, which is the endpoint Codex uses. In other words, the address stays constant across your working setup, while the model id changes according to the task in front of you.

It is worth keeping one detail separate from the others. The address https://api.vanaapi.com handles API requests. Your keys, balance, and usage log live in the dashboard on the main site, https://vanaapi.com. That split is straightforward: the endpoint does the work, and the dashboard shows you what happened and what it cost.

§ Models you can use from OpenCode

OpenCode pairs with the GPT, Grok, DeepSeek, GLM, Kimi, Qwen, MiniMax, and MiMo models listed below. Each one is available through the OpenAI format at /v1/chat/completions, so you can move between them by changing the model id in your configuration rather than rebuilding the connection.

The starting point is usually GPT. Here are the GPT prices per million tokens, shown as input and output:

  • GPT-5.6 Sol (model id gpt-5.6-sol): Vana API $0.3472 / $1.81, against an official list price of $4 / $20.
  • GPT-6 Astra (model id gpt-6-astra): Vana API $0.6944 / $3.54, against an official list price of $10 / $50.
  • GPT-6.1 Sol (model id gpt-6.1-sol): Vana API $0.1389 / $0.8333, against an official list price of $2 / $10.

For code work that needs a larger context or a heavier reasoning budget, GPT-6 Astra is there. For shorter, faster exchanges, GPT-6.1 Sol sits at the lower end of the GPT range. You decide per session, and the pricing follows the model id you select.

The other model families give you room to compare. Here are their Vana API prices per million tokens, input and output:

  • Grok 4.7 (model id grok-4.7): $0.4861 / $1.53.
  • DeepSeek V4 Flash (model id deepseek-v4-flash): $0.2778 / $1.04.
  • DeepSeek V4 Pro (model id deepseek-v4-pro): $1.11 / $3.33.
  • GLM-5.3 (model id glm-5.3): $0.5556 / $1.67.
  • Kimi K3 (model id kimi-k3): $1.04 / $5.21.
  • Qwen3.7 Plus (model id qwen3.7-plus): $0.1278 / $0.4167.
  • Qwen3.8 Max (model id qwen3.8-max): $0.6944 / $2.08.
  • MiniMax M3 (model id MiniMax-M3): $0.1389 / $0.5556.
  • MiMo V2.6 Pro (model id MiMo-V2.6-Pro): $0.2083 / $0.3472.

Because all of these sit behind the same address, testing one against another is a matter of editing a model name. The dashboard usage log then gives you a record of what you ran and what it cost, which makes it easier to keep a preference on evidence rather than impression.

§ Pay-as-you-go billing with prepaid balance

Vana API uses a prepaid balance. You top up, and your calls are charged per real token, with no monthly fee attached to the pay-as-you-go arrangement. That structure suits a tool like OpenCode, where usage can change from one day to the next. You are not committing to a fixed monthly spend just to keep the endpoint available.

Every call is listed in the usage log in the dashboard, so the numbers are there to check rather than estimate. Keys are created in the same dashboard. If you are running OpenCode alongside Cursor or Cline, you can keep the same address and manage access from one place.

New accounts receive $0.10 of credit as a sign-up gift. That is a small starting balance, and it is a practical one: it is enough to confirm that your OpenCode configuration is pointing in the right direction before you add funds.

There is also a referral programme. You receive 14% of what people you invite pay, and 5% one level further. Earnings can be withdrawn from $13.89. If you already use Vana API with several tools, sharing one address with people who set up OpenCode the same way is a natural way to pass the setup along.

Refunds are handled on unused balance. Within 3 days of the top-up, the unused balance can be refunded, minus what was used and the payment processor's fee. The window is short, so it helps to decide on your top-up size with your expected usage in mind.

§ The monthly plan, in plain terms

Some projects have a predictable shape. If your GPT usage is steady and you would rather plan around a known amount, Vana API offers a monthly plan for GPT models: GPT up to $2,750 / 30 days: $103.61 for 30 days, at most $820 a week, GPT models only.

Here is an example. Say you run an OpenCode assistant across a working week and your GPT usage settles around a level that fits inside the $820 weekly cap. The plan gives you a defined 30-day term at $103.61, and the usage stays on GPT models. You can check the calls in the dashboard usage log as you go, the same as with prepaid balance.

The difference between the two approaches is about certainty. Prepaid balance with per-token charging suits variable work and lighter days. The monthly plan suits a steady GPT workload where a fixed term and a weekly ceiling are easier to plan around. Both run through the same single address, so the choice does not change how you configure OpenCode.

§ Minimal setup, in three steps

Getting OpenCode connected to Vana API takes very little. You create a key in the dashboard at https://vanaapi.com. You set the OpenAI-compatible base address to https://api.vanaapi.com, using the /v1/chat/completions path for OpenCode. You add the key and choose a model id, such as gpt-5.6-sol or deepseek-v4-flash.

After that, the same pattern applies to your other tools. Cursor, Cline, Roo Code, Cherry Studio, an OpenAI SDK, and cURL all reach the same address through the OpenAI format. If you later use Codex, GPT models answer there on /v1/responses. One address covers the set, and three protocols sit behind it, so the setup burden stays where it should be: in the configuration you already maintain.

Balances, keys, and usage stay visible in the dashboard, and per-token pricing means the cost follows the work you actually do. For a newcomer, that is an easy way to begin: point OpenCode at one address, start with a small balance, and let the usage log tell you which model earns its place in your workflow.