DeepSeek V4.1 Flash is live on AnyAIGC at $0.1215 per 1M input tokens, one rate all day
DeepSeek
DeepSeek API
DeepSeek V4.1 Flash, V4 Pro and V4 Flash, all on one API key. Per-token billing with no peak hours, about 60% off DeepSeek's official peak price.
60% offvs. DeepSeek official peak price · input $0.1215 / 1M, one rate all day
Read this repo, fix the failing tests and add the missing type definitions
Read the repo and found 3 failing tests and 2 missing type definitions
Failing tests: test_parse_date, test_retry and test_config_merge.
Causes: utils/date.py ignores time zones, the backoff cap in retry() is inverted, and merge() shallow-copies and mutates the defaults.
Patched 3 files and added types for Config and RetryPolicy.
Re-run: 42 passed, 0 failed.
Demo only. This is a sample answer, not generated live. Sign up and try it with your own API key →
OpenAI-compatible /v1/chat/completions that also plugs straight into Claude Code. deepseek-v4.1-flash starts at $0.1215 per 1M input tokens, with no concurrency cap.
- Price 60% off official peak
- Models V4.1 Flash · V4 Pro · V4 Flash
- Context 1M
- Input from $0.1215 / 1M
- Concurrency Unlimited
- Business Self-service invoices
Three DeepSeek models
One key, one endpoint. Change the model ID to match the task.
- Latestdeepseek-v4.1-flash
DeepSeek V4.1 Flash
The smallest model in DeepSeek's new architecture family: a 552B MoE with native vision. DeepSeek says it beats V4 Pro across the board.
- 1M context, up to 384K output
- Image input and tool calls
- Input about 1/4 the price of V4 Pro
- deepseek-v4-pro
DeepSeek V4 Pro
The DeepSeek V4 flagship: 1.6T total and 49B active parameters. The August GA release added low / high / max reasoning effort.
- 1M context, up to 384K output
- Adjustable reasoning effort
- MIT license
- Legacydeepseek-v4-flash
DeepSeek V4 Flash
The V4 preview Flash model: 284B total and 13B active parameters. DeepSeek has retired it and routes the old name to V4.1 Flash.
- 1M context
- Same price as V4.1 Flash
- Use V4.1 Flash for new projects
DeepSeek API pricing
Per-token billing at one rate all day, with no subscription or monthly fee. The table compares DeepSeek's official off-peak and peak USD prices.
- 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 | AnyAIGC | Official off-peak | Official peak | Discount |
|---|---|---|---|---|
deepseek-v4.1-flash · DeepSeek V4.1 Flash | ||||
| InputCache miss, per 1M tokens | $0.1215 | $0.15 | $0.30 | 60% off |
| OutputPer 1M tokens, incl. thinking | $0.4860 | $0.60 | $1.20 | 60% off |
| Cache hitPer 1M tokens | $0.0024 | $0.003 | $0.006 | 60% off |
deepseek-v4-pro · DeepSeek V4 Pro | ||||
| InputCache miss, per 1M tokens | $0.5346 | $0.66 | $1.32 | 60% off |
| OutputPer 1M tokens, incl. thinking | $1.6038 | $1.98 | $3.96 | 60% off |
| Cache hitPer 1M tokens | $0.0178 | $0.022 | $0.044 | 60% off |
deepseek-v4-flash · DeepSeek V4 Flash | ||||
| InputCache miss, per 1M tokens | $0.1215 | $0.15 | $0.30 | 60% off |
| OutputPer 1M tokens, incl. thinking | $0.4860 | $0.60 | $1.20 | 60% off |
| Cache hitPer 1M tokens | $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. DeepSeek has retired V4 Flash, so the official price for deepseek-v4-flash is the V4.1 Flash price.
Cost examples
Estimates for common workloads. Struck-through figures are the same usage at DeepSeek's official off-peak and peak prices.
-
V4.1 Flash · 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 -
V4.1 Flash · 10,000 ticket labels
Each: 2,000 input tokens + 300 output
$3.89
Official peak
$9.60· off-peak$4.80 -
V4 Pro · 500K-token codebase review
500K input tokens + 5,000 output
$0.275
Official peak
$0.680· off-peak$0.340
V4.1 Flash vs. V4 Pro vs. V4 Flash
Start new projects on V4.1 Flash. Keep V4 Pro if it is already tuned in production. Move off V4 Flash.
| Spec | V4.1 Flash | V4 Pro | V4 Flash |
|---|---|---|---|
| Status | Latest | Available | Retired by DeepSeek |
| Parameters | 552B MoE | 1.6T / 49B active | 284B / 13B active |
| Context / max output | 1M / 384K | 1M / 384K | 1M / – |
| Input | Text, images | Text | Text |
| AnyAIGC inputPer 1M tokens | $0.1215 | $0.5346 | $0.1215 |
| AnyAIGC outputPer 1M tokens | $0.4860 | $1.6038 | $0.4860 |
| Cache hitPer 1M tokens | $0.0024 | $0.0178 | $0.0024 |
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. “–” means DeepSeek has not published the figure.
What teams build with the DeepSeek API
- 01 · Coding agents
Claude Code, CI and auto-fix
Plug DeepSeek into Claude Code or your own agent framework to read code, run tests and fix errors. AnyAIGC has no concurrency cap, so many agents can run at once.
- 02 · Long context
Large repos and long documents
A 1M-token context holds a whole codebase or hundreds of pages. Repeated prefixes bill at the cache-hit rate, just $0.0024 per 1M tokens on V4.1 Flash.
- 03 · Vision
Charts, screenshots and scans
V4.1 Flash takes images natively, so it can read charts, inspect UI screenshots and pull fields out of scanned documents.
- 04 · Batch jobs
Classification, extraction, summaries
V4.1 Flash input is $0.1215 per 1M tokens at one rate all day, a good fit for ticket triage, field extraction and review tagging at scale.
Get started with the DeepSeek API in three steps
- 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.1-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.1-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"])
# Toggle thinking with the thinking field (enabled / disabled); set depth with reasoning_effort
resp = client.chat.completions.create(
model="deepseek-v4-pro",
reasoning_effort="high",
extra_body={"thinking": {"type": "enabled"}},
messages=[{"role": "user", "content": "Prove that the square root of 2 is irrational and point out the key step."}],
)
print(resp.choices[0].message.content)
print(resp.usage.completion_tokens_details.reasoning_tokens) # tokens spent on thinking
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.1-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()
Parameters: DeepSeek says the V4 series thinks by default. The thinking field in the request body turns it on or off ({"type": "enabled"} or {"type": "disabled"}), and reasoning_effort sets the depth (officially low / high / max). Thinking tokens count as output and show up in usage.completion_tokens_details.reasoning_tokens. Sampling parameters such as temperature have no effect in thinking mode.
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 in Claude Code
Point Claude Code at DeepSeek: edit one config file and your terminal coding agent runs on DeepSeek V4.1 Flash, billed per token.
- 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.1-flash.
{
"env": {
"ANTHROPIC_BASE_URL": "https://anyaigc.ai",
"ANTHROPIC_AUTH_TOKEN": "sk-your-API-key",
"ANTHROPIC_MODEL": "deepseek-v4.1-flash",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "deepseek-v4.1-flash",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "deepseek-v4.1-flash",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "deepseek-v4.1-flash",
"API_TIMEOUT_MS": "300000",
"CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS": "1"
}
}
Switch models: to use V4 Pro, replace deepseek-v4.1-flash with deepseek-v4-pro in the config. You can also keep ANTHROPIC_DEFAULT_HAIKU_MODEL on V4.1 Flash for lightweight subtasks.
For full steps and common errors, see the Claude Code setup guide. Swap the model name in the guide for deepseek-v4.1-flash.
DeepSeek 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.
Every DeepSeek model
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
DeepSeek API FAQ
How much does the DeepSeek API cost?
DeepSeek on AnyAIGC is billed per token. Per 1M tokens: deepseek-v4.1-flash is $0.1215 input, $0.4860 output and $0.0024 cache hit; deepseek-v4-pro is $0.5346 input, $1.6038 output and $0.0178 cache hit; deepseek-v4-flash costs the same as V4.1 Flash. 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, every DeepSeek model 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.
Which DeepSeek models does AnyAIGC offer, and what are the model IDs?
This page covers three: deepseek-v4.1-flash (DeepSeek's latest Flash model, with native vision), deepseek-v4-pro (the 1.6T-parameter V4 flagship) and deepseek-v4-flash (the V4 preview Flash model, which DeepSeek has replaced with V4.1 Flash). Put the model ID in the model field of the request body. Switching models means changing only that field.
Should I use V4.1 Flash or V4 Pro?
Start with V4.1 Flash for most work. DeepSeek says it now beats V4 Pro on performance, cost, speed and total task time, its input price is about a quarter of V4 Pro's, and it can read images. If you already have V4 Pro tuned in production, you can keep using V4 Pro: DeepSeek has said it will keep serving the V4 Pro API after September 14, 2026.
How big is the context window? Can I send images?
DeepSeek lists a 1M-token context and up to 384K output tokens for both V4.1 Flash and V4 Pro. Only V4.1 Flash accepts images; V4 Pro and V4 Flash are text-only.
Is the DeepSeek API OpenAI-compatible?
Yes. All three models use POST https://anyaigc.ai/v1/chat/completions with the same request and response format as OpenAI Chat Completions. With the official OpenAI SDK, set base_url to https://anyaigc.ai/v1. The Anthropic format is supported too, so Claude Code works.
Can I use DeepSeek 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.1-flash, then run claude. You pay per token.
Are there concurrency or rate limits?
AnyAIGC does not cap concurrency for the DeepSeek series, and every user gets this by default. That suits batch jobs, CI pipelines and parallel agents.
How do I get a DeepSeek 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.
Run every DeepSeek model on one key
Sign up, create an API key, and you can use DeepSeek V4.1 Flash and V4 Pro in your code or Claude Code within minutes.