AiCredits
Model Guide

DeepSeek Model Names Explained: v4-flash, v4-pro, and the Retired chat/reasoner Aliases

DeepSeek's chat and reasoner model names were retired on 2026-07-24. Here's how v4-flash and v4-pro map to real workloads, with runnable migration code.

Published 2026-09-23 Updated 2026-09-23 6 min

The short version: two model names, two jobs

DeepSeek's model naming has changed more than once, and that churn is genuinely expensive. Teams pin a model string in a config file, the string quietly changes meaning or stops being supported, and a pipeline tuned for one behaviour starts producing another. So here is the state of the world in one line: call deepseek-v4-flash unless you have a specific reason to call deepseek-v4-pro. The older chat and reasoner names were retired on 2026-07-24, and any code still sending them is running on borrowed time.

The rename matters for a philosophical reason, not a cosmetic one. The old names described a mode — chat for conversation, reasoner for step-by-step thinking — which nudged people into treating the reasoning model as the better one and reaching for it everywhere. That is the wrong axis. The v4 names describe a tier: flash is the fast, cheap default, and pro is the stronger, costlier option you bring in for work that actually needs it. A mode name tells you how a model talks. A tier name tells you what it costs you to use it.

ModelDesigned forUse it when
deepseek-v4-flashhigh-volume, latency-sensitive workthe default: extraction, classification, summarisation, translation, routing, first-pass code review
deepseek-v4-promulti-step reasoning that flash gets subtly wrongambiguous specs, cross-file debugging, planning, adjudicating conflicting answers

Both are plain model IDs you pass to an OpenAI-compatible endpoint. Nothing else about your integration changes when you switch: same SDK, same request shape, same streaming behaviour. That is what makes a naming migration cheap when it is done deliberately and painful when it is done by find-and-replace.

What retirement of chat and reasoner means for your code

The model IDs chat and reasoner were retired on 2026-07-24. If your code still sends them, you are relying on a name with no defined destination: some gateways return an error, others map it to whatever they assume you meant. Either way you have lost control over which tier actually handles the request, and that is a bad place for a billing-sensitive pipeline to sit.

One caution before you migrate: the old names encoded a mode, so the correct replacement depends on the call site, not on the string. A chat name in a summarisation job becomes flash. A reasoner name in a planning step becomes pro. A reasoner name that was only ever used to pull JSON out of text becomes flash, and you save money for free.

import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["AICREDITS_API_KEY"],
    base_url="https://api.aicreditsapi.com/v1",
)

# Old mode-based names -> current capability tiers.
LEGACY = {"chat": "deepseek-v4-flash", "reasoner": "deepseek-v4-pro"}


def resolve(name: str) -> str:
    return LEGACY.get(name, name)


resp = client.chat.completions.create(
    model=resolve("chat"),
    messages=[{"role": "user", "content": "Explain what a token is in one sentence."}],
)
print(resp.choices[0].message.content)

Treat that dictionary as scaffolding for the migration, not as a permanent shim. New code should pass the v4 names directly. If a mapping table lives in your repo forever, someone will eventually assume it is a supported feature and route new work through it. Keep the model strings in one config module so the next rename costs you an edit in a single file instead of a search across the codebase.

Choosing a model by workload, not by reputation

The most common routing mistake is defaulting to pro because it feels safer. In practice, pro earns its keep only when the task has a failure mode a stronger model actually fixes: multi-step reasoning where flash drops a constraint, ambiguous requirements that need interpretation, or code work that spans several files. For extraction, classification, routing, summarisation and translation, flash is the right answer nearly every time.

  • deepseek-v4-flash: structured extraction, classification and tagging, chat UIs, summarisation, translation, first-pass code review, agent steps that run in a loop.

  • deepseek-v4-pro: spec-to-plan conversion, multi-file debugging, algorithm design, requirement clarification, and tie-breaking when flash produced two conflicting answers.

  • Neither: tasks where you cannot define success. A stronger model does not fix an unmeasured task — it just gives you a more confident wrong answer.

On cost, keep it qualitative: pro costs more than flash, off-peak requests cost less than peak-hour ones, and inputs that hit the cache cost less than cold ones. Actual rates change, so check aicreditsapi.com/pricing instead of hard-coding stale assumptions into your routing logic.

A reliable pattern is optimistic-then-escalate: let flash attempt the job, validate the output mechanically, and only pay for pro on the items that fail. The validation has to be automatic — a schema check, a parser, a unit test — not a vibe check.

import json

# Same client as above.
PROMPT = (
    'Extract the hiring location from this text and reply with ONLY JSON: '
    '{"city": "...", "country": "..."}. Text: "Remote role, must overlap Reykjavik hours."'
)


def ask(model: str, prompt: str) -> str:
    resp = client.chat.completions.create(
        model=model,
        messages=[{"role": "user", "content": prompt}],
        temperature=0,
    )
    return resp.choices[0].message.content.strip()


def as_json(text: str):
    try:
        return json.loads(text)
    except json.JSONDecodeError:
        return None


result = as_json(ask("deepseek-v4-flash", PROMPT))
if result is None:
    # flash did not hold the format on this item; escalate once.
    result = as_json(ask("deepseek-v4-pro", PROMPT))
print(result)

The win is that pro handles a small slice of traffic instead of all of it. Note the guard condition: if your validator cannot distinguish good output from bad, escalation just adds cost without adding reliability. Build the validator first, then the escalation.

Two habits that keep spend predictable

First, keep a byte-identical prefix. If your system prompt changes because of a timestamp, a session ID, or a randomly ordered list of rules on every request, you never hit the cache and you pay full rate on every call. Put stable instructions first and variable content last.

Second, do not send the whole repository when one function will do. Long inputs are the quiet cost driver, and the fix is retrieval rather than a bigger context window. Both habits matter more than picking between flash and pro.

import json

# A frozen, byte-identical system prefix is what makes prefix caching work.
SYSTEM = """You review Python for the AiCredits lint toolkit.
Reply with ONLY JSON in this shape:
{"issues": [{"line": 0, "severity": "low|med|high", "fix": "one line"}]}
If there are no issues, reply {"issues": []}."""


def strip_fences(text: str) -> str:
    text = text.strip()
    if text.startswith("```"):
        text = text.split("\n", 1)[-1].rsplit("```", 1)[0]
    return text.strip()


def review(snippet: str) -> dict:
    resp = client.chat.completions.create(
        model="deepseek-v4-flash",
        messages=[
            {"role": "system", "content": SYSTEM},
            {"role": "user", "content": snippet},
        ],
        temperature=0,
    )
    text = strip_fences(resp.choices[0].message.content or "")
    try:
        return json.loads(text)
    except json.JSONDecodeError:
        return {"issues": [], "raw": text}


print(review("import os\n\nx = 1\nif x == 1: print( 'one' )\n"))

The SYSTEM block above is deliberately frozen and only the snippet varies, which is exactly what makes repeated calls cache-friendly. Review a hundred files and those calls share the same cached prefix. Notice too that the error path returns the raw text instead of raising: silent parse failures are how prompt drift goes unnoticed for weeks.

Rule of thumb: flash is the default, pro is a decision. If you cannot name the failure that pro fixes, you do not need it yet.

Naming mistakes that break production

  • Pinning a retired alias as a config default and never revisiting it. The retirement date has already passed.

  • Assuming pro is a drop-in upgrade. Without a validator guarding escalation, you double your call count for nothing.

  • Hard-coding model strings in ten files. One config module, one place to change.

  • Logging only the answer and not the model that produced it. You cannot tune routing without per-model logs.

  • Treating the model name as the only cost lever. Prefix stability and input length usually move the needle further.

FAQ

Is chat or reasoner still a valid model name?

No. Both were retired on 2026-07-24. Send deepseek-v4-flash or deepseek-v4-pro. Anything else is at best a legacy alias with no guaranteed destination, which means you cannot predict which tier handles the request.

Which model should I default to?

deepseek-v4-flash. It covers extraction, classification, summarisation, translation and first-pass code review. Escalate individual requests to deepseek-v4-pro when you have a mechanical validator that says flash failed.

Does the model name change what I pay?

Yes. pro costs more than flash, off-peak requests cost less than peak-hour ones, and cache hits cost less than cold input. Because rates change, check aicreditsapi.com/pricing rather than baking numbers into your code.

Can I switch models without rewriting my integration?

Yes. The endpoint is OpenAI-compatible, so only the model string changes. Keep that string, and any legacy alias map, in one config module so the next rename is a one-line edit.

Do I need a Chinese phone number or bank card to use these models?

Not through AiCredits. You pay with an international card or PayPal, and the endpoint in every snippet above is what your code talks to — no mainland phone number or bank account required.

If you are building outside China and tired of access friction, AiCredits sells deepseek-v4-flash and deepseek-v4-pro credits that you can buy with an international card or PayPal, with no Chinese phone number or mainland bank account. The base URL in all three snippets is the same endpoint your code will hit in production. There is also a set of code linting tools if you want the review pass shown above without maintaining the prompt and schema yourself.

Migrate the model strings this week, keep them in one place, and put a validator in front of any escalation. That is the whole discipline behind DeepSeek naming: two tiers, one default, and a documented reason every time you reach for the stronger one.

Try Lint in 2 seconds

Wrote something? Paste it here for a free grammar check. No account needed.

More Tools →

Related Tools

💻Code Explainer

Was this article helpful?

| Share on X Reddit Copy link

服务器宕机了?别等用户告诉你

Wakeless 梦哨 帮你 30 秒监控网站 / API / SSL 证书,宕机秒级告警到邮箱、飞书、Slack。免费档 30 个监控,永久免费,无需信用卡。

免费开始监控 →
💬
反馈意见 / Feedback ×