D
DeepSeek-v3.2
DeepSeek
对话
text
模型 Code
deepseek-v3.2服务状态
可调用
模型介绍
DeepSeek-V3.2是引入DeepSeek Sparse Attention(一种稀疏注意力机制)的正式版模型,也是DeepSeek推出的首个将思考融入工具使用的模型,同时支持思考模式与非思考模式的工具调用。
模型能力
输入模态
模型体验支持
思考模式支持
Function Calling支持
结构化输出不支持
输出模态
内置工具不支持
联网搜索未提供
缓存未提供
模型价格
输入2元/ 百万 token
输入(缓存命中)0.4元/ 百万 token
显式缓存创建2.5元/ 百万 token
显式缓存命中0.2元/ 百万 token
输出3元/ 百万 token
模型限流与上下文
- 最大输入长度
- 125K Tokens
- 上下文长度
- 128K 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-v3.2",
"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 即可调用。