DeepSeek V4 Flash API

Lightweight MoE model with 284B total / 13B active parameters and native 1M context, tuned for low-latency, cost-effective high-concurrency use.

DeepSeekText Generation1M contextGermany (Frankfurt)Proprietary EndpointNew

About DeepSeek V4 Flash

Lightweight MoE model with 284B total / 13B active parameters and native 1M context, tuned for low-latency, cost-effective high-concurrency use.

reasoning

DeepSeek V4 Flash specs

Model ID
deepseek-v4-flash
Provider
DeepSeek
Category
Text Generation
Context window
1M tokens
Max output
393,216 tokens
Input
text
Output
text
Region
Germany (Frankfurt)
Endpoints
POST /v1/chat/completions
POST /v1/responses
POST /v1/messages

DeepSeek V4 Flash API pricing

Live pay-as-you-go rates from the EmpirioLabs catalog. You are billed only for what you use, with no monthly minimum.

Type
Spec
Rate
Input
per 1M prompt tokens
$0.14
Output
per 1M generated tokens
$0.28
Web Search (Linkup)
per call when invoked
$0.013
Compare on the full pricing page

How to call the DeepSeek V4 Flash API

DeepSeek V4 Flash serves the OpenAI-compatible Chat Completions API. Point any OpenAI SDK at https://api.empiriolabs.ai/v1 with your EmpirioLabs API key and use the model id deepseek-v4-flash. Get an API key from the EmpirioLabs dashboard.

cURL
curl https://api.empiriolabs.ai/v1/chat/completions \
  -H "Authorization: Bearer $EMPIRIOLABS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-v4-flash",
    "messages": [
      {"role": "user", "content": "Write a haiku about the ocean."}
    ]
  }'
Python (OpenAI SDK)
from openai import OpenAI

client = OpenAI(
    base_url="https://api.empiriolabs.ai/v1",
    api_key="YOUR_EMPIRIOLABS_API_KEY",
)

response = client.chat.completions.create(
    model="deepseek-v4-flash",
    messages=[{"role": "user", "content": "Write a haiku about the ocean."}],
)
print(response.choices[0].message.content)
Full DeepSeek V4 Flash API reference

DeepSeek V4 Flash API parameters

Request parameters supported by the DeepSeek V4 Flash API on EmpirioLabs. Defaults apply when a field is omitted.

ParameterTypeDefaultRange / valuesDescription
temperaturenumber0.70 to 2Sampling temperature. 0 = deterministic, 2 = maximum randomness.
top_pnumber0.90 to 1Nucleus sampling probability mass. Lower = more focused.
max_tokensnumber40961 to 393216Maximum output tokens.
stopstring--Up to 4 strings where the model will stop generating further tokens.
enable_thinkingbooleantrue-Enable step-by-step reasoning before answering.
reasoning_effortenummediumnone, low, medium, high, maxReasoning effort level. none disables thinking. low, medium, high, and max set bounded thinking budgets sized to the selected model. Sent as an OpenAI-style...
thinking_budgetnumber327681 to 393216Maximum tokens reserved for the reasoning process. Up to 393216.
web_search_linkupbooleanfalse-Optional web search powered by Linkup. When enabled, recent web sources are retrieved using your latest user message as the query and provided to the model as...
disable_formattingbooleanfalse-When enabled, the gateway will not append the "Sources" footer to assistant responses that used Linkup web search. Useful when the model output is piped to another...

DeepSeek V4 Flash variants

Variants are alternate versions of DeepSeek V4 Flash with their own model id. Depending on the variant, they can differ in serving region, pricing, or supported parameters; everything else works the same way.

DeepSeek V4 Flash :variant1Singapore1M context

Call it with the model id deepseek-v4-flash:variant1.

Type
Spec
Rate
Input
per 1M prompt tokens
$0.20
Output
per 1M generated tokens
$0.40
Web search
per request when enabled
$0.02
Try :variant1 in the playground

DeepSeek V4 Flash :variant2China1M contextSave up to 2%

Call it with the model id deepseek-v4-flash:variant2.

Type
Spec
Rate
Input
per 1M prompt tokens
$0.14$0.138
Output
per 1M generated tokens
$0.28$0.275
Implicit cache read
per 1M cached input tokens
$0.028
Web search
per request when enabled
$0.01
Try :variant2 in the playground

DeepSeek V4 Flash API: common questions

How much does the DeepSeek V4 Flash API cost?

On EmpirioLabs, DeepSeek V4 Flash is billed pay as you go: Input $0.14 per 1M prompt tokens; Output $0.28 per 1M generated tokens; Web Search (Linkup) $0.013 per call when invoked. The live rate card on this page always matches what the API charges.

What is the context window of DeepSeek V4 Flash?

DeepSeek V4 Flash supports a 1M-token context window with up to 393,216 output tokens per response.

Is the DeepSeek V4 Flash API OpenAI-compatible?

Yes. DeepSeek V4 Flash serves the OpenAI-compatible Chat Completions API, so existing OpenAI SDKs work by pointing base_url at https://api.empiriolabs.ai/v1 and setting the model id to deepseek-v4-flash.

Which DeepSeek V4 Flash variants are available?

DeepSeek V4 Flash is available as 3 model ids: the default deepseek-v4-flash plus deepseek-v4-flash:variant1 (Singapore), deepseek-v4-flash:variant2 (China). Variants can differ in serving region, pricing, or supported parameters; the rate cards for each are on this page.

Can I try DeepSeek V4 Flash in the browser before integrating?

Yes. The EmpirioLabs playground runs DeepSeek V4 Flash in the browser with the same parameters the API exposes, so you can test prompts before writing code.

How do I get a DeepSeek V4 Flash API key?

Create an EmpirioLabs account, then generate a key under API Keys in the dashboard. Billing is pay-as-you-go credits, so you only pay for the requests you make.

Ready to use better endpoints?

Explore our models, or contact us about business inquiries, custom deployments, or anything else.