Knowledge Base Sections ▾

Navigation

▸ Start here By roles

Categories

Tools 54
Glossary 12

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.

ProviderModelInput, $ per 1MOutput, $ per 1MExample cost
JoinGonka GatewayGLM-5.3 Flash, DeepSeek V4 Flash 0731, MiniMax M2.7$0.006171$0.018513$0.0098736
Z.aiGLM-5.3 Flash$0.15$0.5$0.25
DeepSeekV4.1 Flash 1017, off-peak$0.15$0.6$0.27
DeepSeekV4.1 Flash 1017, peak hours$0.3$1.2$0.54
GoogleGemini 3.1 Flash-Lite$0.25$1.5$0.55
AnthropicClaude Sonnet 5.5$2$10$4
OpenAIGPT-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.

ProviderModelInput, $ per 1MOutput, $ per 1MExample cost
JoinGonka GatewayAll three models below$0.006171$0.018513$0.0098736
OpenRouter · RelaceGLM-5.3 Flash$0.0463$0.0729$0.06088
OpenRouter · DeepInfraDeepSeek V4 Flash 0731$0.06$0.18$0.096
OpenRouter · GroqMiniMax 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

  1. Create an account and issue an API key in your dashboard. The key with the jg- prefix is shown when it is created.
  2. For an OpenAI-compatible client, specify https://gate.joingonka.ai/v1 and the ID of the selected model. For an Anthropic client, the base URL is https://gate.joingonka.ai.
  3. 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.toml on the Responses API
  • Cursor — your own key and URL in the model settings
  • DeepSeek Harness — custom provider in Settings → Models
  • Pi — provider in models.json or a single installer command

Detailed instructions with code examples (curl, Python, TypeScript) are in the API quick start.

For a volume of 1M input and 200K output tokens, the bill for GLM-5.3 Flash on November 22 is about $0.01 on JoinGonka, $0.061 at Relace via OpenRouter, and $0.25 on Z.ai. For a different volume or share of cached tokens, the total will change.

Want to learn more?

Explore other sections or start earning GNK right now.

Try for free →