Knowledge Base Sections ▾

API and pricing

DeepSeek V4 Flash 0731 API: Pricing and Free Start

In short: DeepSeek V4 Flash 0731 is no longer available from DeepSeek itself. On September 10, 2026, its API moved to V4.1 Flash, and the old name deepseek-v4-flash now points to the new model — at $0.15 per million input tokens and $0.60 per million output tokens, and twice as expensive during peak hours. The 0731 build is still sold by OpenRouter providers — for example, DeepInfra at $0.06 and $0.18 — and by JoinGonka Gateway at $0.0062 and $0.019; with us it's served by the decentralized Gonka network.

New JoinGonka accounts get 3M free tokens, the API is compatible with OpenAI and Anthropic, and in the installer for Claude Code, Codex CLI, and OpenCode this model is set by default. Below — pricing with sources, what changed at DeepSeek, setup, and specs.

DeepSeek V4 Flash 0731 API price calculator

What your month on DeepSeek V4 Flash 0731 costs: on the official API, on the cheapest OpenRouter provider, and on JoinGonka. Everywhere — pay only for tokens, no subscription.

Example workload:

Chatbot or service: short history, responses of noticeable length, no cache considered.

M
M
Where to payPer month
DeepSeek API (DeepSeek-V4.1-Flash)$0.15 input, $0.003 from cache · $0.60 output per 1MAt peak hours: $0.30 input · $1.20 outputDeepSeek currently sells a different model — DeepSeek-V4.1-Flash.$6.00
OpenRouter, cheapest provider (DeepInfra)DeepSeek V4 Flash 0731·$0.06 input, $0.015 from cache · $0.18 output per 1M$2.10
JoinGonka GatewayDeepSeek V4 Flash 0731·$0.0062 input · $0.019 output per 1MContext 380 000 tokens, output up to 32 768.Cache input — at the regular input price.$0.22
Difference from the cheapest option of the same model:$1.88per month(×9.7cheaper than DeepInfra on OpenRouter)
Fine-tune the calculation

The resent part of a request — dialogue history, system prompt — costs less on official APIs and many providers. On JoinGonka all input is at one price, and the calculation accounts for that.

Work at DeepSeek peak hours

Peak hours for DeepSeek are on weekdays, excluding Chinese holidays: 01:00–04:00, 06:00–10:00 UTC. The price during these hours is shown in the API row above.

Free start: new JoinGonka accounts get 3M tokens, and the key is issued right after sign-up.

Get free tokens →

Prices outside JoinGonka verified on November 2, 2026 (DeepSeek prices · model status at DeepSeek · providers on OpenRouter). The JoinGonka price is pulled from the gateway API and updates automatically. Cache write fees charged by others are not included.

How Much Does DeepSeek V4 Flash API Cost: DeepSeek, OpenRouter, and JoinGonka

Prices per 1M tokens as of November 2, 2026:

Where to buyModelInputCached inputOutput
DeepSeek, off-peakV4.1 Flash$0.15$0.003$0.60
DeepSeek, peak hoursV4.1 Flash$0.30$0.006$1.20
OpenRouter — DeepInfraV4 Flash 0731$0.06$0.015$0.18
OpenRouter — RelaceV4 Flash 0731$0.07$0.014$0.14
JoinGonka GatewayV4 Flash 0731$0.0062at input price$0.019

DeepSeek's peak hours are on weekdays, excluding Chinese holidays, from 01:00 to 04:00 and from 06:00 to 10:00 UTC, that is 9:00–12:00 and 14:00–18:00 Beijing time. These have been in effect since August 17, 2026: during that time the price is double. With JoinGonka and OpenRouter providers, the price doesn't depend on the time of day.

The 0731 build on OpenRouter is sold by more than twenty providers, and the model card doesn't show the cheapest one. The cheapest of all are DeepInfra and Relace: the difference with them is about ×10 on input and ×8 on output.

DeepSeek has a very cheap cache — $0.003 per million tokens off-peak, cheaper than our input. But an agent's bill is also made up of output at $0.60 (during peak — $1.20) and input that misses the cache, so even for an agent that reads almost everything from cache, a month on JoinGonka usually comes out cheaper. And that comparison is already against a different, newer model.

What Changed at DeepSeek: Peak Hours and V4.1 Flash

  • August 17, 2026. DeepSeek introduced peak hours: during Chinese working hours, the API price is double what it is the rest of the time.
  • September 10, 2026. V4.1 Flash was released, and V4 Flash was retired from the API. The name deepseek-v4-flash was kept for compatibility, but requests to it are now served by the new model.
  • October 17, 2026. V4.1 Flash was updated to build 1017, the main model name in the API is now deepseek-flash.

What this means in practice: code that calls deepseek-v4-flash at DeepSeek itself has been running on a different model since September. Responses, reasoning length, and agent behavior could have changed without a single edit in your project. If you need the 0731 build specifically, the one your prompts and agents are debugged on, it's available from OpenRouter providers and JoinGonka — with us under the exact identifier deepseek-ai/DeepSeek-V4-Flash-0731.

The lineup of models on the Gonka network also changes — by vote of the network participants. The current list is always returned by GET https://gate.joingonka.ai/v1/models.

How to Connect DeepSeek V4 Flash 0731 via API

1. Key. Sign up for JoinGonka Gateway and create a jg-… key in your dashboard. New accounts get 3M free tokens.

2. Request. The endpoint is https://gate.joingonka.ai/v1, the model is deepseek-ai/DeepSeek-V4-Flash-0731:

curl https://gate.joingonka.ai/v1/chat/completions \
  -H "Authorization: Bearer jg-your-key" \
  -H "Content-Type: application/json" \
  -d '{"model": "deepseek-ai/DeepSeek-V4-Flash-0731", "messages": [{"role": "user", "content": "Hello!"}]}'

If your code is already written against the DeepSeek API on the OpenAI SDK, only three lines change — the endpoint, the key and the model name:

from openai import OpenAI

client = OpenAI(api_key="jg-your-key", base_url="https://gate.joingonka.ai/v1")
response = client.chat.completions.create(
    model="deepseek-ai/DeepSeek-V4-Flash-0731",
    messages=[{"role": "user", "content": "Summarize this changelog in three bullet points: ..."}],
)
print(response.choices[0].message.content)

3. Agents and editors. The installer sets up Claude Code, Codex CLI, OpenCode and other tools with a single command. Wherever it writes the config itself, DeepSeek V4 Flash is the default, and a flag switches an already-configured tool over to it:

npx @joingonka/setup --model deepseek

For Anthropic-compatible clients the endpoint is https://gate.joingonka.ai, without /v1. For how Claude Code runs on DeepSeek and what it costs per month, see the article "Claude Code cheaper".

DeepSeek V4 Flash 0731 specs in the API

V4 Flash is the lightweight model in the DeepSeek V4 family: an MoE with 284 billion parameters, of which about 13 billion are active per token, with open weights under the MIT license. Build 0731 is a retrained version dated July 31, 2026. By DeepSeek's own benchmarks on agentic tasks it beats even the preview of the flagship V4 Pro: Terminal Bench 2.1 — 82.7, DeepSWE — 54.4. In JoinGonka its working specs are:

  • Context — 380,000 tokens, verified with a request of 381,000 input tokens. OpenRouter providers offer a window of up to 1M, network hosts are configured for 400,000, and we publish what we've verified.
  • Response — up to 32,768 tokens — four times more than GLM-5.3 Flash and MiniMax M2.7.
  • Reasoning and tool calling work over OpenAI- and Anthropic-compatible paths, including multi-step agent scenarios.
  • Text only: the network doesn't accept images yet.

Models, their IDs and limits are in the Gonka API documentation, availability is on the gateway status page.

DeepSeek V4 Flash, GLM-5.3 Flash and MiniMax M2.7: which model to pick

GLM-5.3 FlashDeepSeek V4 Flash 0731MiniMax M2.7
Context in JoinGonka390,000380,000180,000
Response up to8,192, including reasoning32,7688,192
StrengthTasks that need thinking: logic, bug hunting, code analysisLong answers, big documents, long agent sessionsFast short answers
Official APIZ.ai: $0.15 / $0.50V4 Flash retired, V4.1 Flash — from $0.15 / $0.60MiniMax is retiring the model from its API
JoinGonkaone price — $0.0062 input / $0.019 output per 1M

In JoinGonka all models share one price, so you pick the model for the task, and switching is one model line in the request. For a deeper look at GLM-5.3 Flash and its reasoning, see the model page.

When to choose DeepSeek V4 Flash 0731

  • Coding agents. Claude Code, Codex CLI and OpenCode run long sessions with tools — that's where the 380,000 context and up to 32,768-token responses matter, which is why the installer defaults to DeepSeek V4 Flash.
  • Big documents and whole repositories. An annual report, a bundle of contracts or a mid-sized repository fits in a single request, with no chunking.
  • Long answers. Big files, reports and translations in a single request, without splitting into parts.
  • Code tuned to build 0731. Prompts and agents configured for this version run on this same version, not on a model the provider swapped in under the old name.

For tasks where the model needs to think through tangled logic, compare answers with GLM-5.3 Flash — its reasoning is on by default.

DeepSeek no longer sells DeepSeek V4 Flash 0731 itself: since September 10, 2026 its API serves V4.1 Flash at $0.15 / $0.60 per million tokens off-peak and $0.30 / $1.20 at peak hours. Build 0731 is offered by OpenRouter providers — from $0.06 / $0.18 — and by JoinGonka Gateway: $0.0062 per million input and $0.019 per million output tokens at any time of day. Context in JoinGonka is 380,000 tokens, responses up to 32,768, the ID is deepseek-ai/DeepSeek-V4-Flash-0731. New accounts get 3M free tokens, and setup is npx @joingonka/setup --model deepseek.

Want to learn more?

Explore other sections or start earning GNK right now.

Connect DeepSeek V4 Flash through JoinGonka →