Chat model

deepseek-v4-1-flash API

deepseek-v4-1-flash is a chat model you call through the OpenAI-compatible /chat/completions endpoint, with streaming and tool calls. Send "deepseek-v4-1-flash" as the model name and keep the rest of your code. You pay per token from a prepaid balance.

1M tokens of contextUp to 393.2K output tokensFrom $0.105 per 1M input tokensStreaming and tool calls

Price

US$ per 1M tokens. The first figure is what you pay; the list price is struck through.

ModelContextInput (cache hit)Input (cache miss)Output
deepseek-v4-1-flash
Peak hours: Mon–Fri 09:00–12:00, 14:00–18:00 UTC+8
−30% off the list price
1M
$0.0042 $0.006 · peak
$0.0021 $0.003 · off-peak
$0.21 $0.30 · peak
$0.105 $0.15 · off-peak
$0.84 $1.20 · peak
$0.42 $0.60 · off-peak
Try it

See all prices →

Specifications

Model IDdeepseek-v4-1-flash
TypeChat model
EndpointPOST /chat/completions
Context window1,048,576 tokens
Max output393,216 tokens

Copy, paste, run

Copy this request, put in your key, and run it. "deepseek-v4-1-flash" is the model name to send.

from openai import OpenAI

client = OpenAI(base_url="https://api.apistore.cloud/v1", api_key="sk-...")

stream = client.chat.completions.create(
    model="deepseek-v4-1-flash",
    messages=[{"role": "user", "content": "Hello!"}],
    stream=True,
)
for chunk in stream:
    print(chunk.choices[0].delta.content or "", end="")

Questions

How do I call deepseek-v4-1-flash?

Send an OpenAI-format request to /chat/completions with "model": "deepseek-v4-1-flash". Any SDK or tool that accepts an OpenAI-compatible base URL and key works.

How much does deepseek-v4-1-flash cost?

From $0.105 per 1M input tokens and from $0.42 per 1M output tokens. The table above always shows the current prices.

What are the limits of deepseek-v4-1-flash?

A context window of 1M tokens and up to 393.2K output tokens per answer. Request limits apply per key and per account.

How do I get an API key for deepseek-v4-1-flash?

Create an account with email or Google, verify your address, then create a key on the API keys page. Add credit by card and the key works at once.

Other models

More about this model family →

Start in a few minutes

Create an account, verify your email, create a key and make your first call.