Knowledge Base Sections ▾
Navigation
▸ Start here By rolesCategories
- OpenCode: free models, providers and API key
- Cursor + Gonka AI - cheap LLM for coding
- Claude Code + Gonka AI - LLM for the terminal
- DeepSeek Harness: Your Own Provider via JoinGonka Gateway
- Codex CLI: your own key instead of a subscription
- Pi + JoinGonka Gateway — terminal agent on cheap inference
- omp (Oh My Pi) + JoinGonka Gateway: an agent with model roles
- Zoo Code + JoinGonka Gateway: Migrating from Roo Code to Gonka models
- Kilo Code + Gonka AI — AI-Agent in VS Code
- ZCode: GLM Coding Plan tiers, prices and limits
- Hermes Agent + DeepSeek on the Gonka network — an autonomous agent for pennies
- OpenClaw + Gonka AI - affordable AI agents
- Continue.dev + Gonka AI - AI for VS Code/JetBrains
- Cline + Gonka AI - AI agent in VS Code
- Aider + Gonka AI - pair programming with AI
- LangChain + Gonka AI - AI applications for pennies
- n8n + Gonka AI - automation with cheap AI
- Open WebUI + Gonka AI - your own ChatGPT
- LibreChat + Gonka AI — open-source ChatGPT
- Roo Code + Gonka AI — Autonomous AI Agent in VS Code
- LlamaIndex + Gonka AI — RAG applications for pennies
- PydanticAI + Gonka — typed AI agents for pennies
- Vercel AI SDK + Gonka AI — AI applications in TypeScript for pennies
- TanStack AI + Gonka — AI applications in TypeScript for pennies
- API quick start — curl, Python, TypeScript
- JoinGonka Gateway — a full overview
- Management Keys — SaaS on Gonka
- How Much Does an AI API Cost: Price Comparison per Million Tokens
- How to buy AI tokens and an API key: 3 methods in 2026
- Free AI API: tokens on sign-up and for referrals
- Cursor Pro request limit reached — breakdown and cheaper alternative
- Cheaper Claude Code: GLM and DeepSeek instead of Claude
- Claude Code + DeepSeek V4 Flash: How to Connect It and What a Task Costs
- Cline is burning money — why the agent spends so much
- OpenClaw is expensive — why the agent burns through tokens and how to save
- OpenRouter alternative: the same models, many times cheaper
- Best AI model for coding in 2026: comparison and prices
- Cheap alternative to GitHub Copilot without limits
- A cheap Windsurf alternative without credits or limits
- The cheapest API for AI agents in 2026
- JetBrains IDE + JoinGonka Gateway — your own endpoint instead of credits
- GitHub Copilot BYOK — own models instead of quotas
- Zed + JoinGonka Gateway — cheap inference in your editor
- MiniMax Code: MiniMax agent with your own key via Gonka
- Warp + JoinGonka Gateway — terminal agent on your own endpoint
- Trae + JoinGonka Gateway — Gonka network models in AI-IDE
- Cherry Studio + JoinGonka Gateway — desktop AI client
- OpenHands + JoinGonka Gateway: agent on your own endpoint
- Qwen Code after the closure of qwen-oauth: working via JoinGonka Gateway
- Goose + JoinGonka Gateway: your own provider and key in the keyring
- Crush + JoinGonka Gateway: Charm agent on Gonka network models
- Kimi Code CLI: Moonshot AI agent on your key via Gonka
- Factory Droid + JoinGonka Gateway: BYOK on Gonka network models
- MiMo Code + JoinGonka Gateway: Xiaomi agent on Gonka network models
Tools
JoinGonka Gateway — a full overview
JoinGonka Gateway — our service providing an OpenAI + Anthropic compatible API to the decentralized Gonka network. Sign up, get a key, replace base_url — and any application written for OpenAI (/v1/chat/completions) or Anthropic (/v1/messages) works through Gonka for $0.0062/1M tokens.
This is not just a proxy. JoinGonka Gateway is a full-fledged platform: billing, monitoring, API keys, referral program, support for multiple payment methods. Everything you need to use AI in production — from indie developers to companies with hundreds of thousands of requests per day.
JoinGonka supports the native Anthropic Messages API. Claude Code connects directly, without a proxy — using the native Anthropic format.
In this article — a detailed overview: how it works, how much it costs, how it differs from regular AI-APIs, and why it is the cheapest OpenAI + Anthropic compatible API in the world.
What is JoinGonka Gateway
JoinGonka Gateway is an intermediate layer between your application and the Gonka network. Architecture:
- Your application sends a request to
gate.joingonka.ai/v1/chat/completions(OpenAI format) orgate.joingonka.ai/v1/messages(Anthropic format). - Gateway accepts the request in either format, checks the API key and balance, and forwards it to the Gonka network.
- Gonka network processes the request on one of the MLNodes where the selected model is deployed — MiniMax M2.7, DeepSeek V4 Flash, or GLM-5.3 Flash.
- Gateway receives the response, counts the consumed tokens, deducts the balance, and returns the response to your application — in the same format the request was received (OpenAI or Anthropic).
Two API formats: Gateway supports both OpenAI Chat Completions API (/v1/chat/completions) and Anthropic Messages API (/v1/messages). This means tools like Cursor and LangChain work via the OpenAI format, and Claude Code connects directly via the Anthropic format — without proxies or converters.
Why is a Gateway needed if there is a direct Gonka API? The direct Gonka API requires a crypto wallet, signing GNK transactions, and understanding the blockchain. JoinGonka Gateway removes this complexity: you pay in a convenient currency (GNK, WGNK (top-ups are temporarily unavailable), USDT, fiat), receive a familiar OpenAI or Anthropic API format, and use the Dashboard for monitoring — without any knowledge of cryptocurrencies.
Technical stack: Fastify (Node.js), PostgreSQL, nginx. Gateway handles up to 1000 requests/sec, supports streaming (SSE in both formats), tool calling, and all parameters of OpenAI Chat Completions + Anthropic Messages API. Latency overhead is less than 50ms.
How to start: from registration to the first request
The whole process takes 2 minutes:
- Sign up: go to gate.joingonka.ai/register. Email + password — a standard form.
- Bonus: after you confirm your address, 3M free tokens land in your account. That's enough for thousands of AI requests — plenty for testing and your first integrations.
- Create a key: in Dashboard → API Keys → Create Key. The key starts with
jg-, for examplejg-abc123def456. It's shown once — save it. - First request: use the key in any OpenAI- or Anthropic-compatible client. For the OpenAI format, replace
base_urlwithhttps://gate.joingonka.ai/v1. For the Anthropic format, the base URL ishttps://gate.joingonka.ai, without/v1; Claude Code is easiest to set up with the installer —npx @joingonka/setup --tool claude-code: it pins both the network's model and its context window.
Ready-made guides for the programs our clients connect through most often: OpenCode, Claude Code, Codex CLI, Cursor, DeepSeek Harness, Pi, Zoo Code, Kilo Code; for everything else, see the integrations page. Code examples (curl, Python, TypeScript) are in the API quickstart.
Dashboard: your account shows your current token balance, request history, daily spend, API keys, and referral link. It's a full-fledged CRM for managing AI costs.
Price comparison for the same models
The same open models distributed by the decentralized Gonka network are also available on standard inference platforms—for example, OpenRouter. The difference is how much they charge for them. Let's compare the price per 1M tokens for the same models:
| Platform | Model | Input / 1M | Output / 1M |
|---|---|---|---|
| JoinGonka Gateway | MiniMax-M2.7 / DeepSeek-V4-Flash / GLM-5.3-Flash | $0.0062 | $0.019 |
| OpenRouter | MiniMax-M2.7 | $0.30 | $1.20 |
| OpenRouter | DeepSeek-V4-Flash | $0.06 | $0.12 |
| OpenRouter | GLM-5.3-Flash | $0.09 | $0.30 |
| OpenAI | GPT-5.5 | $5.00 | $30.00 |
| Anthropic | Claude | $3.00 | $15.00 |
The same model—at ~6—65 times cheaper. JoinGonka Gateway provides MiniMax-M2.7, DeepSeek-V4-Flash (380K context—the second longest in the network after 390K for GLM-5.3-Flash), and GLM-5.3-Flash for ~$0.0062 input and ~$0.019 output per 1M tokens (output is 3x more expensive—as with other providers). On standard platforms, the same model weights cost ~6—65 times more: the reason is the architecture—in Gonka, inference is paid for by miners via Proof of Useful Work, not by data center margins.
Not just price. JoinGonka Gateway provides both API formats—OpenAI (/v1/chat/completions) and Anthropic (/v1/messages), so Claude Code connects directly via the native Anthropic format. Plus native tool calling, a Dashboard with analytics, flexible payment (GNK 0%, WGNK (top-ups are temporarily unavailable) 1%, USDT 5%, fiat), and a referral program (10% L1 + 3% L2).
Benefits of JoinGonka Gateway
Eight key advantages:
- The cheapest OpenAI + Anthropic compatible API: $0.0062/1M tokens — about 810 times cheaper than OpenAI GPT-5.5. For most tasks the quality difference is imperceptible, but the cost difference is dramatic.
- Two API formats — OpenAI and Anthropic:
/v1/chat/completions(OpenAI) and/v1/messages(Anthropic) — both work with a single key. Cursor, LangChain, the openai SDK — via the OpenAI format. Claude Code — via the Anthropic format, directly, with no proxy. No competitor offers this. - Native tool calling: every model on the network supports function calling in both formats — OpenAI and Anthropic. Agents, chains, automation — it all works reliably.
- Free start: 3M tokens on sign-up. That's enough for weeks of testing and your first integrations — with no payment.
- Flexible payment: GNK (0% fee), WGNK (top-ups are temporarily unavailable) from Ethereum (1%), USDT (5%), fiat via On-Ramp. You don't need to understand crypto — you can pay by card.
- Referral program: 10% of our fee on requests from users you invite (L1) and 3% from users they invite (L2); that's about 1% and 0.3% of their spending. Share your link — earn tokens.
- Dashboard and analytics: a full-featured CRM — balance, spending, request history, API keys. Everything in one interface.
- Full ecosystem compatibility: works with any OpenAI-compatible client (Cursor, n8n, LangChain) and any Anthropic-compatible client (Claude Code) — with no modifications.
Pricing and billing
JoinGonka Gateway billing runs on GNK tokens (the internal unit):
- Top up with GNK: 0% fee. You send GNK to the Gateway address and your balance is credited instantly.
- Top up with WGNK (top-ups are temporarily unavailable): 1% fee. For GNK on the Ethereum network, the transfer is credited automatically.
- Top up with USDT: 5% fee. Pay with USDT (via OxaPay) and Gateway converts it to GNK automatically. The 5% is the convenience fee (no Gonka crypto wallet needed).
- Top up with fiat: via On-Ramp (card → USDT → GNK). The fee depends on the On-Ramp provider.
Platform fee: a 10% fee is applied to the base cost of inference on the Gonka network. This fee is already included in the final price of ~$0.0062/1M tokens. The base cost on the network is ~$0.0046/1M; with the fee — ~$0.0062/1M. The fee covers Gateway infrastructure costs (servers, databases, monitoring).
How spending is calculated: every API request (whether via the OpenAI format or the Anthropic format) draws tokens from a single balance. Gateway counts prompt_tokens (input) + completion_tokens (output) and deducts them from your balance. Cost: $0.0062 per 1M tokens (~0.003 GNK at the current rate). One key, one balance — for both API formats.
Tool calling: function calls (tools) also consume tokens — function definitions are added to the prompt. A typical tool calling request consumes 1.5-3x more tokens than a regular one — but at $0.0062/1M it's still pennies.
Referral program: every user gets a unique referral link in the Dashboard. When an invited user spends tokens, you receive 10% of our fee on their requests (L1) — about 1% of their spending. If your referral also invites people, you receive 3% of the fee on their requests (L2) — about 0.3% of their spending. Referral earnings are credited to your balance in GNK tokens.
Transparency: all transactions are visible in the Dashboard — top-ups, deductions, referral earnings. The API returns a usage object with every response — you always know how many tokens a request consumed.
Model parameters: context window — 180K tokens for MiniMax M2.7, 380K for DeepSeek V4 Flash and 390K for GLM-5.3 Flash. Maximum response length — up to 8192 tokens (up to 32768 for DeepSeek V4 Flash; by default, without max_tokens — 1500). Supported API parameters: model, messages, max_tokens, temperature, tools, tool_choice, stream.