Knowledge Base Sections ▾
Navigation
▸ Start here By rolesCategories
- Cursor + Gonka AI - cheap LLM for coding
- Claude Code + Gonka AI - LLM for the terminal
- OpenClaw + Gonka AI - affordable AI agents
- OpenCode + Gonka AI - free AI for code
- 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
- Hermes Agent + Gonka AI — Autonomous Agent for Pennies
- Kilo Code + Gonka AI — AI-Agent in VS Code
- 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
- Cheapest AI API: Provider Comparison 2026
- Cursor Pro request limit reached — breakdown and cheaper alternative
- Claude Code is cheaper — bill breakdown and switching
- Cline is burning money — why the agent spends so much
- OpenClaw is expensive — why the agent burns through tokens and how to save
- OpenRouter: Cheap Alternative — Comparison with JoinGonka Gateway
- 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
- ZCode: Cheap GLM inference instead of GLM Coding Plan
Tools
JoinGonka Gateway — a full overview
JoinGonka Gateway is our service providing an OpenAI + Anthropic compatible API to the decentralized Gonka network. Register, get a key, replace base_url — and any application written for OpenAI (/v1/chat/completions) or Anthropic (/v1/messages) works through Gonka for $0.003/1M tokens.
This is not just a proxy. JoinGonka Gateway is a full-fledged platform: billing, monitoring, API keys, referral program, and support for multiple payment methods. Everything you need for 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 — via the native Anthropic format.
In this article, a detailed overview: how it works, how much it costs, how it differs from typical 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, validates the API key and balance, and redirects it to the Gonka network.
- Gonka network processes the request on one of ~582 ML-nodes using the Kimi K2.6 model.
- Gateway receives the response, calculates tokens consumed, deducts the balance, and returns the response to your application—in the same format the request was received (OpenAI or Anthropic).
Two API formats: The 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, while Claude Code connects directly via the Anthropic format—without proxies or converters.
Why do you need a Gateway if there is a direct Gonka API? The direct Gonka API requires a crypto wallet, signing GNK transactions, and understanding blockchain. JoinGonka Gateway removes this complexity: you pay in a convenient currency (GNK, USDT, fiat), get the familiar OpenAI or Anthropic API format, and use the Dashboard for monitoring—without any knowledge of cryptocurrencies.
Technical stack: Fastify (Node.js), PostgreSQL, nginx. The Gateway handles up to 1000 requests/sec, supports streaming (SSE in both formats), tool calling, and all OpenAI Chat Completions + Anthropic Messages API parameters. Latency overhead is less than 50ms.
How to start: from registration to the first request
The entire process takes 2 minutes:
- Registration: go to gate.joingonka.ai/register. Email + password—standard form.
- Bonus: upon registration, 10,000,000 free tokens are automatically credited. This is enough for thousands of AI requests—sufficient for testing and initial integrations.
- Key creation: in Dashboard → API Keys → Create Key. The key starts with
jg-, e.g.,jg-abc123def456. It is displayed once—save it. - First request: use the key in any OpenAI- or Anthropic-compatible client. For OpenAI format, replace
base_urlwithhttps://gate.joingonka.ai/v1. For Anthropic format (Claude Code)—ANTHROPIC_BASE_URL=https://gate.joingonka.ai.
Ready-made instructions for popular tools: Cursor, Claude Code, Aider, Continue.dev, Cline, LangChain, n8n, Open WebUI, LibreChat. Code examples (curl, Python, TypeScript) are in the API quickstart.
Dashboard: in your personal account, you will see: current token balance, request history, daily consumption, API keys, referral link. This is a full-fledged CRM for managing AI expenses.
Price comparison for the same models
The same open models distributed by the decentralized Gonka network are available on standard inference platforms—for example, OpenRouter. The difference lies in how much they charge. Let's compare the price per 1M tokens for the same models:
| Platform | Model | Input / 1M | Output / 1M |
|---|---|---|---|
| JoinGonka Gateway | MiniMax-M2.7 / Kimi-K2.6 | $0.003 | $0.009 |
| OpenRouter | MiniMax-M2.7 | $0.24 | $0.96 |
| OpenRouter | Kimi-K2.6 | $0.66 | $3.41 |
| OpenAI | GPT-5.5 | $5.00 | $30.00 |
| Anthropic | Claude | $3.00 | $15.00 |
The same model — hundreds of times cheaper. JoinGonka Gateway delivers MiniMax-M2.7 and Kimi-K2.6 for ~$0.003 on input and ~$0.009 on output per 1M tokens (output is three times more expensive, as it is with other providers). On standard platforms, the same model weights cost hundreds of times more: the reason is the architecture — in Gonka, inference is paid for by miners through 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 payments (GNK 0%, 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.003/1M tokens — 930 times cheaper than OpenAI GPT-5.5. For most tasks, the quality difference is negligible, but the cost difference is radical.
- Two API formats — OpenAI and Anthropic:
/v1/chat/completions(OpenAI) and/v1/messages(Anthropic) — both work with one key. Cursor, LangChain, openai SDK — via the OpenAI format. Claude Code — via the Anthropic format, directly, without a proxy. No competitor offers this. - Native tool calling: Kimi K2.6 supports function calling in both formats — OpenAI and Anthropic. Agents, chains, automation — everything works reliably.
- Free start: 10M tokens upon registration. This is enough for weeks of testing and the first integrations — without payment.
- Flexible payment: GNK (0% fee), USDT (5%), fiat via On-Ramp. No need to understand cryptocurrencies — you can pay by card.
- Referral program: 10% of spending by referred users (L1) + 3% of their referrals (L2). Share the link — earn tokens.
- Dashboard and analytics: full-featured CRM — balance, spending, request history, API keys. All in one interface.
- Full ecosystem compatibility: works with any OpenAI-compatible client (Cursor, n8n, LangChain) and Anthropic-compatible client (Claude Code) — without modifications.
Pricing and billing
JoinGonka Gateway billing operates in GNK tokens (internal unit):
- Top-up GNK: 0% fee. You send GNK to the Gateway address, balance is credited instantly.
- Top-up USDT: 5% fee. You pay USDT (via OxaPay), Gateway converts to GNK automatically. 5% is a convenience fee (no need for a Gonka crypto wallet).
- Top-up 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 inference cost in the Gonka network. This fee is already included in the final price of ~$0.003/1M tokens. The base cost on the network is ~$0.0027/1M, with the fee — ~$0.003/1M. The fee covers Gateway infrastructure costs (servers, DB, monitoring).
How spending is calculated: every API request (both via OpenAI format and Anthropic format) consumes tokens from a unified balance. The Gateway calculates prompt_tokens (input) + completion_tokens (output) and deducts from the balance. Cost: $0.003 per 1M tokens (~0.003 GNK at the current exchange 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 standard one — but at a price of $0.003/1M, it is still negligible.
Referral program: every user receives a unique referral link in the Dashboard. When an invited user spends tokens, you receive 10% of their spending (L1). If your referral also invites people, you receive 3% of their spending (L2). Referral rewards are earned in GNK tokens to your balance.
Transparency: all transactions are visible in the Dashboard — top-ups, debits, referral rewards. The API returns a usage object with every response — you always know how many tokens the request consumed.
Model parameters: network models support a 200K token context window. Maximum response length — up to 8192 tokens (for all network models; default without max_tokens — 1500). Supported API parameters: model, messages, max_tokens, temperature, tools, tool_choice, stream.