← Claude and GPT API models

DeepSeek V4.1 Flash API

Model ID deepseek-v4.1-flash · DeepSeek · Prices as of

Short answer

DeepSeek V4.1 Flash is available through APIVAI at $0.19 per million input tokens and $0.74 per million output tokens as of 2026-12-04, 40% below DeepSeek's official list price of $0.29 / $1.16. Use the model ID deepseek-v4.1-flash with an APIVAI key in the OpenAI format at https://api.apivai.com/v1 (Chat Completions). Billing is pay-as-you-go from a prepaid balance, from $10, with no subscription.

DeepSeek V4.1 Flash API pricing

Per 1M tokensAPIVAIOfficial list price
Input$0.19$0.29
Output$0.74$1.16

Prompt caching: cache writes cost $0.19 and cache reads $0.0037 per million tokens. Context window: — tokens. Prices are checked against the price list every 6 hours; see all model prices.

How much does DeepSeek V4.1 Flash cost per request?

Each request is billed for its input and output tokens. Coding agents resend the conversation and files with every step, so their requests are much larger than a chat message.

ExampleInput / output tokensAPIVAIOfficial price
One chat message2,000 / 500 each$0.00075$0.00116
One coding-agent step30,000 / 1,500 each$0.00681$0.0104
1,000 chat messages2,000 / 500 each$0.75$1.16
A month of agent use (100 steps a day, 22 days)30,000 / 1,500 each$14.98$22.97
One coding-agent step with prompt caching (25,000 of the 30,000 input tokens read from cache)30,000 / 1,500, 25,000 cached$0.00215—

Thinking and reasoning tokens are billed as output, so when the model thinks, the output count can be higher than the text you see.

How do you call DeepSeek V4.1 Flash?

cURL (OpenAI format)

curl https://api.apivai.com/v1/chat/completions \
  -H "Authorization: Bearer $APIVAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-v4.1-flash",
    "max_tokens": 4096,
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Python (OpenAI SDK)

from openai import OpenAI

client = OpenAI(api_key="YOUR_APIVAI_API_KEY", base_url="https://api.apivai.com/v1")
resp = client.chat.completions.create(
    model="deepseek-v4.1-flash",
    max_tokens=4096,
    messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)

Other DeepSeek models

ModelInput / output per 1MBelow official price
DeepSeek V4 Pro$0.84 / $2.5140%

FAQ

Is this the same DeepSeek V4.1 Flash model?

Yes. Requests with the model ID deepseek-v4.1-flash are answered by DeepSeek V4.1 Flash; only the price and the way you pay differ. The thinking-signature test that shows a Claude backend has no GPT equivalent, so we make no further claim here. What you can check yourself is the model field in each response and the tokens billed for each request (listed per request in the dashboard's usage log); Is your Claude API relay serving the real model? explains what such checks can and cannot prove.

What is the model ID for DeepSeek V4.1 Flash?

deepseek-v4.1-flash. The list of models changes over time, so check GET https://api.apivai.com/v1/models with your key before hard-coding a name.

Which tools can use DeepSeek V4.1 Flash?

Any OpenAI-compatible tool or SDK (Cursor, Cline, Continue, Aider and others) through https://api.apivai.com/v1.

How is DeepSeek V4.1 Flash billed?

Per token, from a prepaid balance: $0.19 per million input tokens and $0.74 per million output tokens, with thinking tokens counted as output. The minimum top-up is $10 by card or crypto, or ¥20 by Alipay or WeChat Pay, and there is no subscription.

How many requests can I send?

Each key allows 60 requests per minute; each key has its own limit, so use several keys for more.

Create an account, top up from $10 and use deepseek-v4.1-flash with your key.

Ready to start?

Get your API key in 30 seconds. Pay as you go for Claude and GPT.

Get Started