DeepSeek

DeepSeek-V4-Flash-0731

deepseek/deepseek-v4-flash
/v1/chat/completions/v1/messages/v1/responses/v1beta/models/*/v1/models/*

DeepSeek-V4-Flash是深度求索公司于2026年4月24日发布的高效经济版大语言模型。它采用混合专家(MoE)架构,总参数量约2840亿,每次推理仅激活约130亿参数,并原生支持高达100万Token的超长上下文。该版本在推理能力和简单Agent任务上接近性能强大的Pro版本,但凭借更小的参数和激活规模,能提供更快捷、低成本的API服务。适合需要快速响应和追求极致性价比的各类轻量级应用场景。

Input / output modalities
文本 to 文本
Reference input / output price
Input¥1Output¥4per 1M tokens
Context window
1M
Added to catalog
Apr 24, 2026

Providers and pricing

ProviderTime-based pricing (Beijing Time)Input /MOutput /MCached /MContextMax outputDetails
DeepSeek
Mon–Fri09:00-12:0014:00-18:00Input ¥2Output ¥8Cached ¥0.04
¥1¥4¥0.021M384K
Ali
every day09:00-12:0014:00-18:00Input ¥3Output ¥9Cached ¥0.3
¥1.5¥4.5¥0.151M384K
Tencent
every day09:00-12:0014:00-18:00Input ¥3Output ¥9Cached ¥0.1
¥1.5¥4.5¥0.251M384K

DeepSeek

Latency
12.36s
Throughput
164 tokens/s
Context
1M

Pricing

Input
¥1/M tokens
Output
¥4/M tokens
Cached
¥0.02/M tokens

Time-based pricing (Beijing Time)

The prices below apply during the listed Beijing Time periods; base pricing applies at other times.

Applicable period

Mon–Fri09:00-12:0014:00-18:00

peak

Input
¥2/M tokens
Output
¥8/M tokens
Cached
¥0.04/M tokens

Specifications

Context
1M
Max output
384K
Supported APIs
/v1/chat/completions/v1/messages/v1/responses/v1beta/models/*/v1/models/*

Ali

Latency
112.84s
Throughput
125 tokens/s
Context
1M

Pricing

Input
¥1.5/M tokens
Output
¥4.5/M tokens
Cached
¥0.15/M tokens

Time-based pricing (Beijing Time)

The prices below apply during the listed Beijing Time periods; base pricing applies at other times.

Applicable period

every day09:00-12:0014:00-18:00

peak

Input
¥3/M tokens
Output
¥9/M tokens
Cached
¥0.3/M tokens

Specifications

Context
1M
Max output
384K
Supported APIs
/v1/completions/v1/chat/completions/v1/messages/v1/responses/v1beta/models/*/v1/models/*

Tencent

Latency
0.8s
Throughput
114 tokens/s
Context
1M

Pricing

Input
¥1.5/M tokens
Output
¥4.5/M tokens
Cached
¥0.25/M tokens

Time-based pricing (Beijing Time)

The prices below apply during the listed Beijing Time periods; base pricing applies at other times.

Applicable period

every day09:00-12:0014:00-18:00

peak

Input
¥3/M tokens
Output
¥9/M tokens
Cached
¥0.1/M tokens

Specifications

Context
1M
Max output
384K
Supported APIs
/v1/chat/completions/v1/messages/v1/responses/v1beta/models/*/v1/models/*

DeepSeek-V4-Flash-0731 code examples and API guide

Modelmesh normalizes requests and responses across service providers behind one consistent API.

Modelmesh provides an OpenAI-compatible Completion API for more than 300 models and service providers. Call it directly, through the OpenAI SDK, or with supported third-party SDKs.

Modelmesh-specific request headers in these examples are optional. When supplied, your application can appear on the Modelmesh rankings.

Supported endpointsSelect an endpoint to switch the example below.
/v1/chat/completions
from openai import OpenAI API_KEY = "$SSY_API_KEY" client = OpenAI( base_url="https://router.shengsuanyun.com/api/v1", api_key=API_KEY, ) try: completion = client.chat.completions.create( model="deepseek/deepseek-v4-flash", messages=[{"role": "user", "content": "Which number is larger, 9.11 or 9.8?"}], temperature=0.6, top_p=0.7, stream=True, ) response_text = "" for chunk in completion: if chunk.choices and chunk.choices[0].delta.content is not None: content = chunk.choices[0].delta.content print(content, end="", flush=True) response_text += content except Exception as error: print(f"Request failed: {error}")
                
              

Related Models