D
DeepSeek-v4-flash
DeepSeek
对话
text
模型 Code
deepseek-v4-flash服务状态
可调用
模型介绍
高效轻量化MoE模型,总参284B,激活13B,原生支持百万超长上下文能力。推理速度快、延迟低、调用成本低廉,综合能力均衡,主打高并发、轻量化任务,适合日常对话、内容创作、基础 RAG、批量文案处理等普惠刚需场景。
模型能力
输入模态
模型体验支持
思考模式支持
Function Calling支持
结构化输出不支持
输出模态
内置工具不支持
联网搜索未提供
缓存未提供
模型价格
输入1元/ 百万 token
输入(缓存命中)0.2元/ 百万 token
输出2元/ 百万 token
模型限流与上下文
- 最大输入长度
- 968K Tokens
- 上下文长度
- 1M Tokens
- 最大输出长度
- 16K Tokens
API 代码示例
import requests
url = "https://limapi.com/api/v1/chat/completions"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
}
payload = {
"model": "deepseek-v4-flash",
"stream": True,
"messages": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "你好,请介绍一下你自己"}
]
}
response = requests.post(url, headers=headers, json=payload, stream=True)
for line in response.iter_lines():
if line:
print(line.decode("utf-8"))将示例中的 YOUR_API_KEY 替换为你的 API Key 即可调用。