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
Review
How Much Does an AI API Cost: Price Comparison per Million Tokens
If an application sends 1 million tokens and receives 200 thousand response tokens per month, GLM-5.3 Flash on JoinGonka costs about $0.01, on Relace via OpenRouter — $0.061, and via the Z.ai developer API — $0.25. That's the same model and the same text volume at the rates of November 22, 2026.
Below you can compare other models, recalculate the price for your own input/output ratio, and choose where to connect.
What Makes Up an API Bill
On input, the provider counts the tokens sent to the model, including system instructions, dialogue history, and document text. On output — the tokens the model generated. If the rate includes reasoning tokens, they also count toward the output bill.
Cost = input tokens in millions × input price + output tokens in millions × output price. For example, 1,000 requests with an average input of 1,000 tokens and a response of 200 tokens give 1 million input and 0.2 million output. At the Z.ai rate for GLM-5.3 Flash, that's $0.15 + 0.2 × $0.50 = $0.25.
Provider Prices for the Same Text Volume
Rates as of November 22, 2026 in US dollars. The last column shows the cost of 1 million input and 200 thousand output tokens for ordinary text requests, without cache hits, batch discounts, or paid tool calls. The provider name links to its rate.
| Provider | Model | Input, $ per 1M | Output, $ per 1M | Example cost |
|---|---|---|---|---|
| JoinGonka Gateway | GLM-5.3 Flash, DeepSeek V4 Flash 0731, MiniMax M2.7 | $0.006171 | $0.018513 | $0.0098736 |
| Z.ai | GLM-5.3 Flash | $0.15 | $0.5 | $0.25 |
| DeepSeek | V4.1 Flash 1017, off-peak | $0.15 | $0.6 | $0.27 |
| DeepSeek | V4.1 Flash 1017, peak hours | $0.3 | $1.2 | $0.54 |
| Gemini 3.1 Flash-Lite | $0.25 | $1.5 | $0.55 | |
| Anthropic | Claude Sonnet 5.5 | $2 | $10 | $4 |
| OpenAI | GPT-5.5 | $5 | $30 | $11 |
For DeepSeek, the peak rate applies on weekdays from 01:00 to 04:00 and from 06:00 to 10:00 UTC, except on official Chinese holidays. On weekends, the low rate applies all day. The remaining rows show the provider's stated standard rate for the selected model.
What the Same Model Costs on JoinGonka and OpenRouter
Via OpenRouter, you can connect to the same model from different providers. Here, a specific provider is selected for each model. Both rates in a row belong to that provider. The volume and calculation date are the same as in the first table.
| Provider | Model | Input, $ per 1M | Output, $ per 1M | Example cost |
|---|---|---|---|---|
| JoinGonka Gateway | All three models below | $0.006171 | $0.018513 | $0.0098736 |
| OpenRouter · Relace | GLM-5.3 Flash | $0.0463 | $0.0729 | $0.06088 |
| OpenRouter · DeepInfra | DeepSeek V4 Flash 0731 | $0.06 | $0.18 | $0.096 |
| OpenRouter · Groq | MiniMax M2.7 | $0.6 | $1.8 | $0.96 |
For example, for DeepSeek V4 Flash 0731 this volume costs about $0.0099 on JoinGonka and $0.096 at DeepInfra via OpenRouter. At the DeepSeek developer, the name deepseek-flash currently serves a different version, V4.1 Flash 1017. On JoinGonka, the identifier for the July version is deepseek-ai/DeepSeek-V4-Flash-0731. Model specifications.
How to Apply the Comparison to Your Application
For document search, the input share is usually large; for generating long texts, the output share grows. Take the volumes from the usage field of several typical API responses, add them up, and plug them into the formula. If the application often sends the same long instruction, separately calculate the input tokens that the provider counts at the cache price.
When moving between platforms, the context window, available response length, and support for the necessary tool calls also matter. JoinGonka accepts requests in OpenAI Chat Completions, OpenAI Responses, and Anthropic Messages formats. Gateway capabilities · Current JoinGonka prices.
How to Connect Your Application to JoinGonka
- Create an account and issue an API key in your dashboard. The key with the
jg-prefix is shown when it is created. - For an OpenAI-compatible client, specify
https://gate.joingonka.ai/v1and the ID of the selected model. For an Anthropic client, the base URL ishttps://gate.joingonka.ai. - Send a test request. Using the usage data in the response and the spend history in your dashboard, you can estimate the cost of your request.
Connection examples for popular tools:
- OpenCode — JoinGonka provider with a single installer command
- Claude Code — a single installer command: URL, key, network model and its context window
- Codex CLI — provider block in
config.tomlon the Responses API - Cursor — your own key and URL in the model settings
- DeepSeek Harness — custom provider in Settings → Models
- Pi — provider in
models.jsonor a single installer command
Detailed instructions with code examples (curl, Python, TypeScript) are in the API quick start.