DeepSeek V4 Pro

DeepSeek V4 Pro 是一款大规模混合专家(MoE)模型,拥有 1.6T 总参数和 49B 激活参数,支持 1M token 上下文窗口。它专为高级推理、编码和复杂问题求解设计。

快速参考

属性
模型 IDdeepseek/deepseek-v4-pro
上下文窗口1,000,000 tokens
最大输出8,192 tokens
训练数据截止2024
流式
函数调用
结构化输出
批量 API

定价

类型价格
输入$0.76 / 1M tokens / 1M tokens
输出$1.52 / 1M tokens / 1M tokens

示例

from openai import OpenAI

client = OpenAI(
    base_url="https://openapi.linkwo.ai/v1",
    api_key="YOUR_API_KEY"
)

response = client.chat.completions.create(
    model="deepseek/deepseek-v4-pro",
    messages=[
        {"role": "system", "content": "You are an expert Python developer."},
        {"role": "user", "content": "Implement a binary search tree with insert, search, and delete operations."}
    ],
    temperature=0.3
)

print(response.choices[0].message.content)

最佳实践

  • 编码和数学任务建议使用 temperature: 0.3,以获得更确定的输出
  • 创意写作和头脑风暴建议使用 temperature: 0.7
  • 将复杂任务拆分为多个步骤以获得更好的效果
  • 利用 1M 上下文处理大型代码库或长文档

相关文档