DeepSeek has upgraded to V4.1 Flash. Change model to deepseek-v4.1-flash to migrate
DeepSeek · deepseek-v4-flash
DeepSeek V4 Flash API
The V4 preview Flash model: 284B total and 13B active parameters, with a 1M context. DeepSeek has replaced it with V4.1 Flash; this page covers pricing and migration.
60% offvs. DeepSeek official peak price · input $0.1215 / 1M, one rate all day
DeepSeek has retired V4 Flash. The official API now serves deepseek-v4-flash requests with V4.1 Flash. For new projects, use DeepSeek V4.1 Flash directly; both cost the same on AnyAIGC.
Sort these 10,000 user feedback messages by issue type and return JSON
Read all 10,000 messages in batches and grouped them into 5 issue types
{"total": 10000, "categories": [
{"type": "payment_failed", "count": 3120},
{"type": "shipping_delay", "count": 2480},
{"type": "login_issue", "count": 1960},
{"type": "feature_request", "count": 1530},
{"type": "other", "count": 910}]}
Demo only. This is a sample answer, not generated live. Sign up and try it with your own API key →
deepseek-v4-flash costs $0.1215 per 1M input tokens, $0.4860 per 1M output tokens and $0.0024 per 1M cache hits, the same as V4.1 Flash.
- Price 60% off official peak
- Model ID deepseek-v4-flash
- Context 1M tokens
- Input $0.1215 / 1M
- Concurrency Unlimited
- Business Self-service invoices
The lightweight model from the V4 preview
DeepSeek released the V4 preview in April 2026 with two models, V4 Pro and V4 Flash. V4 Flash is the lighter one: an MoE with 284B total and 13B active parameters, sharing V4 Pro's architecture, with a 1M-token context and open weights under the MIT license.
On September 10 DeepSeek released V4.1 Flash and retired V4 Flash. For compatibility, the official API temporarily routes deepseek-v4-flash requests to V4.1 Flash and bills them at the Flash price.
If your code still says deepseek-v4-flash, you can keep calling it on AnyAIGC. For new projects, switch the model name to deepseek-v4.1-flash: it costs the same and also accepts images.
- Context window
- 1Mtokens
- Parameters
- 284B13B active, MoE
- Input
- TextText only
- Thinking
- Three modesNon-think / Think High / Think Max
- Weights
- OpenMIT license
- Official status
- RetiredReplaced by deepseek-v4.1-flash
What DeepSeek V4 Flash can do
- 01
Software engineering
At Max effort, DeepSeek reports SWE-bench Verified 79.0 and LiveCodeBench 91.6 for the V4 preview.
- 02
Science reasoning
DeepSeek reports GPQA Diamond 88.1 and HLE 34.8 (Max effort).
- 03
Web browsing agents
DeepSeek reports BrowseComp 73.2 and Terminal Bench 2.0 at 56.9 (Max effort).
- 04
Three thinking modes
DeepSeek lists Non-think, Think High and Think Max.
- 05
1M context
Long documents and large repos fit in a single context.
- 06
Easy migration
Change only the model field to move to deepseek-v4.1-flash. Endpoint, auth and parameters stay the same.
DeepSeek V4 Flash API pricing
Per-token billing at one rate all day, the same as V4.1 Flash. DeepSeek bills the legacy name at the Flash price, shown below for comparison.
- Per-token billingInput, output and cache hits priced separately
- One rate all dayOfficial peak price is 2× off-peak
- About 60% offVs. DeepSeek's official peak price
- No concurrency capOn by default for every user
| Item | Model | AnyAIGC | Official off-peak | Official peak | Discount |
|---|---|---|---|---|---|
| InputCache miss, per 1M tokens | deepseek-v4-flash | $0.1215 | $0.15 | $0.30 | 60% off |
| OutputPer 1M tokens, incl. thinking | deepseek-v4-flash | $0.4860 | $0.60 | $1.20 | 60% off |
| Cache hitPer 1M tokens | deepseek-v4-flash | $0.0024 | $0.003 | $0.006 | 60% off |
Prices are in USD and billed on the tokens you actually use. Output includes thinking tokens, and repeated prompt prefixes are billed at the cache-hit rate. Official prices come from the DeepSeek API pricing page (USD). Peak time is weekdays 01:00–04:00 and 06:00–10:00 UTC (9:00–12:00 and 14:00–18:00 Beijing time); all other hours are off-peak. The table shows the lowest price in the model catalog. Live prices are shown in the AnyAIGC model catalog. The official price is the Flash price DeepSeek charges after routing the legacy name to V4.1 Flash.
Cost examples
Estimates for common workloads. Struck-through figures are the same usage at DeepSeek's official off-peak and peak prices.
-
10,000 ticket labels
Each: 2,000 input tokens + 300 output
$3.89
Official peak
$9.60· off-peak$4.80 -
50-turn coding agent
Each turn: 60K cache-hit tokens + 4,000 input + 2,000 output
$0.080
Official peak
$0.198· off-peak$0.099 -
1M input + 1M output
1M input tokens + 1M output tokens
$0.608
Official peak
$1.50· off-peak$0.750
DeepSeek V4 Flash official benchmarks
Instruct model results DeepSeek published with the V4 preview (Max reasoning effort), compared with V4 Pro from the same release.
V4 Flash vs. V4 Pro · official evals
| Benchmark | V4 Flash | V4 Pro |
|---|---|---|
| SWE-bench VerifiedSoftware engineering, Resolved | 79.0 | 80.6 |
| LiveCodeBenchCoding, Pass@1 | 91.6 | 93.5 |
| GPQA DiamondScience reasoning, Pass@1 | 88.1 | 90.1 |
| HLEGeneral reasoning, Pass@1 | 34.8 | 37.7 |
| Terminal Bench 2.0Terminal coding, Acc | 56.9 | 67.9 |
| BrowseCompWeb browsing, Pass@1 | 73.2 | 83.4 |
| CodeforcesCompetitive programming, Rating | 3052 | 3206 |
Source: the DeepSeek-V4-Flash model card, results as published by DeepSeek.
V4 Flash vs. V4.1 Flash vs. V4 Pro
DeepSeek has replaced V4 Flash. Start new projects on V4.1 Flash, which costs the same.
| Spec | V4 Flash | V4.1 Flash | V4 Pro |
|---|---|---|---|
| Status | Retired by DeepSeek | Latest | Available |
| Context | 1M | 1M | 1M |
| Input | Text | Text, images | Text |
| AnyAIGC inputPer 1M tokens | $0.1215 | $0.1215 | $0.5346 |
| AnyAIGC outputPer 1M tokens | $0.4860 | $0.4860 | $1.6038 |
| Cache hitPer 1M tokens | $0.0024 | $0.0024 | $0.0178 |
Specs come from the official DeepSeek API docs and Hugging Face model cards. Prices are current AnyAIGC prices; live prices are shown in the model catalog. See the DeepSeek V4.1 Flash API guide.
Where V4 Flash is still in use
- 01 · Existing code
Keep it running as is
Scripts and services that hard-code
deepseek-v4-flashkeep working and are billed at the same rate. - 02 · Batch jobs
Classification, extraction, summaries
Ticket triage, field extraction and review tagging. Low unit price, one rate all day, no concurrency cap.
- 03 · Staged migration
Compare old and new
Run the same samples through
deepseek-v4-flashanddeepseek-v4.1-flash, compare outputs, then switch over. - 04 · Coding agents
Everyday coding in Claude Code
Use it for everyday coding in Claude Code. For better results, switch the model to
deepseek-v4.1-flash.
Get started with the DeepSeek V4 Flash API
- Sign up and add credit: create an account at anyaigc.ai. Top up from $1; your balance works across every model on the platform.
- Create an API key: create a key in the console, copy the
sk-key, and store it in theANYAIGC_API_KEYenvironment variable. - Send a request: call
POST https://anyaigc.ai/v1/chat/completionswithmodelset todeepseek-v4-flashand anAuthorization: Bearerheader. With the OpenAI SDK, just setbase_urltohttps://anyaigc.ai/v1.
curl https://anyaigc.ai/v1/chat/completions \
-H "Authorization: Bearer $ANYAIGC_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-v4-flash",
"messages": [
{"role": "user", "content": "Explain what a MoE model is in three sentences."}
]
}'
import os
from openai import OpenAI
client = OpenAI(
base_url="https://anyaigc.ai/v1",
api_key=os.environ["ANYAIGC_API_KEY"],
)
resp = client.chat.completions.create(
model="deepseek-v4.1-flash",
messages=[
{"role": "system", "content": "You are a senior backend engineer. Answer with runnable code."},
{"role": "user", "content": "Write a Go HTTP client with timeouts and retries."},
],
)
print(resp.choices[0].message.content)
print(resp.usage) # prompt_tokens_details.cached_tokens = tokens billed at the cache-hit rate
import os
from openai import OpenAI
client = OpenAI(base_url="https://anyaigc.ai/v1", api_key=os.environ["ANYAIGC_API_KEY"])
stream = client.chat.completions.create(
model="deepseek-v4-flash",
messages=[{"role": "user", "content": "Write 5 changelog entries for a SaaS product."}],
stream=True,
stream_options={"include_usage": True}, # the last chunk carries token usage
)
for chunk in stream:
if chunk.choices and chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="", flush=True)
print()
import json
import os
from openai import OpenAI
client = OpenAI(base_url="https://anyaigc.ai/v1", api_key=os.environ["ANYAIGC_API_KEY"])
tools = [{
"type": "function",
"function": {
"name": "run_tests",
"description": "Run the unit tests at a path in the repo and return the failing cases",
"parameters": {
"type": "object",
"properties": {"path": {"type": "string", "description": "Test file or directory"}},
"required": ["path"],
},
},
}]
messages = [{"role": "user", "content": "Run tests/test_api.py and tell me which cases fail."}]
resp = client.chat.completions.create(model="deepseek-v4-flash", messages=messages, tools=tools)
msg = resp.choices[0].message
# Send the full assistant message back unchanged, then append the tool results
messages.append(msg.model_dump(exclude_none=True))
for call in msg.tool_calls or []:
args = json.loads(call.function.arguments)
result = {"path": args["path"], "failed": ["test_login_timeout"]} # replace with the real result
messages.append({"role": "tool", "tool_call_id": call.id, "content": json.dumps(result)})
final = client.chat.completions.create(model="deepseek-v4-flash", messages=messages, tools=tools)
print(final.choices[0].message.content)
Migration tip: moving from deepseek-v4-flash to deepseek-v4.1-flash only means changing the model field. Parameters, endpoint and auth stay the same, and so does the price.
See the Chat Completions API reference for every parameter. Swap the model name in the doc examples for the DeepSeek model ID you want.
Use DeepSeek V4 Flash in Claude Code
Claude Code works with V4 Flash, but we recommend configuring deepseek-v4.1-flash instead. Just swap the model name in the config below.
- Install Claude Code: use the official installer, for example
curl -fsSL https://claude.ai/install.sh | bashon macOS or Linux. - Add the config: edit
~/.claude/settings.json, add the env block below, and replaceANTHROPIC_AUTH_TOKENwith the key you created on AnyAIGC. - Start coding: run
claudein your project folder. Type/modelto confirm the current model isdeepseek-v4-flash.
{
"env": {
"ANTHROPIC_BASE_URL": "https://anyaigc.ai",
"ANTHROPIC_AUTH_TOKEN": "sk-your-API-key",
"ANTHROPIC_MODEL": "deepseek-v4-flash",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "deepseek-v4-flash",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "deepseek-v4-flash",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "deepseek-v4-flash",
"API_TIMEOUT_MS": "300000",
"CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS": "1"
}
}
Recommended: replace every deepseek-v4-flash in the config with deepseek-v4.1-flash. Same price, better results.
For full steps and common errors, see the Claude Code setup guide. Swap the model name in the guide for deepseek-v4-flash.
DeepSeek V4 Flash API for teams and enterprises
Teams can top up, issue invoices themselves, and work with a dedicated support and technical contact.
- Invoices
Issue them yourself
Issue an invoice in the console for the amount you actually topped up, whenever you need one.
- Dedicated support
Account and technical contacts
Work with a dedicated support contact and technical engineer for onboarding, migration and troubleshooting.
- WeChat Pay
- Alipay
- USDT
- Credit card
Why teams trust AnyAIGC
Trial credit, top-ups, refunds, data handling and billing, spelled out up front.
5M free tokens to start
New accounts get trial credit, so you can test before you top up.
Top up from $1, refundable
Top up from $1. Unused balance can be refunded with no fee.
Official channels, real models
Requests go to official model channels, never cheaper or reverse-engineered substitutes.
No retention, no training
Unless the law requires it, your prompts and outputs are not persistently stored or used for training. See the privacy policy.
Transparent billing, spend caps
See tokens and cost for every request in the console, and set a quota on each API key.
24/7 support
Contact support any time about integration, billing or incidents.
Other DeepSeek models
One API key calls every DeepSeek model below. Pick by task and budget.
- DeepSeek overviewCompare V4.1 Flash, V4 Pro and V4 Flash pricing
- LatestDeepSeek V4.1 FlashNative vision, 552B MoE, 1M context · input $0.1215 / 1M
- DeepSeek V4 Pro1.6T MoE flagship, adjustable reasoning effort · input $0.5346 / 1M
- LegacyDeepSeek V4 FlashUpgraded to V4.1 Flash by DeepSeek · input $0.1215 / 1M
Specs and how to choose it
DeepSeek's release notes state that DeepSeek-V4-Flash has 284B total and 13B active parameters, positioned as the fast, efficient and economical choice.
The vendor says its reasoning closely approaches V4-Pro and that it performs on par with V4-Pro on simple agent tasks, with a smaller size and faster responses.
The release notes also say a 1M context is now the default across all official DeepSeek services.
This page lists Input at $0.1215, Output at $0.4860, Cache hit at $0.0024, matching the pricing table above.
Compared with deepseek-v4-pro: the release notes describe V4-Pro as the larger 1.6T-total, 49B-active model that leads open models in agentic coding.
Specs come from the vendor's official documentation (api-docs.deepseek.com). The table on this page is the price, and the model catalog is authoritative for live rates.
DeepSeek V4 Flash API FAQ
Has DeepSeek V4 Flash been deprecated?
Yes. DeepSeek retired V4 Flash when it released V4.1 Flash on September 10, 2026. For compatibility, the official API still accepts the deepseek-v4-flash model name, serves those requests with V4.1 Flash and bills them at the Flash price. For new projects, use deepseek-v4.1-flash directly; both cost the same on AnyAIGC.
How much does the DeepSeek V4 Flash API cost?
deepseek-v4-flash on AnyAIGC is billed per token: $0.1215 per 1M input tokens, $0.4860 per 1M output tokens and $0.0024 per 1M cache-hit tokens, the same as V4.1 Flash. DeepSeek bills the legacy name at the Flash price: off-peak $0.15 input, $0.60 output and $0.003 cache hit, doubled at peak times. Live prices are shown in the model catalog.
Does AnyAIGC have peak and off-peak pricing?
No. The official DeepSeek API uses time-of-day pricing: weekdays 01:00–04:00 and 06:00–10:00 UTC (9:00–12:00 and 14:00–18:00 Beijing time) is peak time, and peak prices are double the off-peak prices. On AnyAIGC, deepseek-v4-flash is billed at one rate around the clock. That rate is about 60% off the official peak price. Live prices are shown in the model catalog.
What do I change to move from V4 Flash to V4.1 Flash?
Change model in the request body from deepseek-v4-flash to deepseek-v4.1-flash. The endpoint, auth and parameters stay the same. V4.1 Flash adds image input, and DeepSeek says it outperforms V4 Pro on benchmarks.
What are V4 Flash's parameters and context length?
DeepSeek lists V4 Flash as an MoE with 284B total and 13B active parameters, sharing V4 Pro's architecture. It has a 1M-token context, accepts text only, and its weights are open under the MIT license.
Can I use DeepSeek V4 Flash in Claude Code?
Yes. DeepSeek models on AnyAIGC support both the OpenAI and the Anthropic API formats. In the env block of ~/.claude/settings.json, set ANTHROPIC_BASE_URL to https://anyaigc.ai, ANTHROPIC_AUTH_TOKEN to your API key and ANTHROPIC_MODEL to deepseek-v4-flash, then run claude. You pay per token.
Are there concurrency or rate limits?
AnyAIGC does not cap concurrency for deepseek-v4-flash, and every user gets this by default. That suits batch jobs, CI pipelines and parallel agents.
How do I get a DeepSeek V4 Flash API key?
Sign up at anyaigc.ai, add credit, and create a key in the console. The same key works for every DeepSeek model and 300+ other models on the platform, so you do not need a separate DeepSeek Platform account.
Can I get an invoice from AnyAIGC?
Yes. You can issue invoices yourself in the console, for the amount you actually topped up.
Which payment methods are supported?
You can top up with WeChat Pay, Alipay, USDT or a credit card. Your balance is in USD and works across every model on the platform. Invoices can be issued in the console for the amount you topped up.
Is there free trial credit for new users?
Yes. New accounts get 5 million tokens of trial credit, so you can test before deciding to top up. Top-ups start at $1.
Can I get a refund on my balance?
Yes. Unused balance can be refunded with no fee. Contact support to start a refund.
Are these the real models? Is my data safe?
Requests go to official model channels, never cheaper or reverse-engineered substitutes. Unless the law requires it, we do not persistently store your prompts or outputs or use them for training, and the console shows tokens and cost for every request.
Change one model name to upgrade to V4.1 Flash
Sign up, create an API key, and use either deepseek-v4-flash or deepseek-v4.1-flash at the same price.