← 返回
未分类 Key

Deepseek V4

Use DeepSeek V4 (Flash & Pro) from the command line — one-shot Q&A, thinking mode, multi-turn chat. OpenAI-compatible API, no special CLI needed. Supports de...
Use DeepSeek V4 (Flash & Pro) from the command line — one-shot Q&A, thinking mode, multi-turn chat. OpenAI-compatible API, no special CLI needed. Supports de...
jiajiaoy jiajiaoy 来源
未分类 clawhub v1.0.1 1 版本 100000 Key: 需要
★ 0
Stars
📥 343
下载
💾 0
安装
1
版本
#latest

概述

DeepSeek V4

Use DeepSeek V4 Flash and Pro directly from your terminal — one-shot questions, deep reasoning with thinking mode, and multi-turn chat. No special CLI required; uses the OpenAI-compatible API via a small Python script.

Setup

1. Get API key: https://platform.deepseek.com/api_keys

2. Set environment variable:

export DEEPSEEK_API_KEY=your_key_here
# Add to ~/.zshrc or ~/.bashrc to persist

Models

ModelIDBest forPrice (input/output)
------------------------------------------
V4 Flash ⚡deepseek-v4-flashQ&A, writing, coding, summaries$0.014 / $0.028 per 1M
V4 Pro 🚀deepseek-v4-proHard reasoning, math, deep analysis$0.174 / $0.348 per 1M

Both support 1M token context. Cache hits are 10× cheaper.

Legacy aliases (deepseek-chat → flash, deepseek-reasoner → pro) deprecated 2026-07-24.

Commands

One-shot question (Flash — fast & cheap)

uv run {baseDir}/scripts/ask.py "Explain the difference between V4 Flash and V4 Pro"

One-shot with Pro model

uv run {baseDir}/scripts/ask.py "Write a merge sort in Rust" --model pro

Thinking mode (Pro with visible reasoning trace)

uv run {baseDir}/scripts/ask.py "Prove that there are infinitely many primes" --think

Multi-turn chat

uv run {baseDir}/scripts/chat.py --model flash
uv run {baseDir}/scripts/chat.py --model pro --think

Show models & pricing

uv run {baseDir}/scripts/models.py

Model Selection Guide

Use Flash when:

  • Everyday Q&A and explanations
  • Writing, editing, translation
  • Code generation and review
  • Summarization and classification
  • Cost is a priority

Use Pro when:

  • Multi-step math or logic problems
  • Complex debugging or architecture decisions
  • Deep research and analysis
  • You want to see the reasoning process (--think)

Tips

  • Thinking mode (--think) streams the internal reasoning before the final answer — useful for hard problems and to verify correctness
  • System prompt: --system "You are a concise assistant" to set tone
  • No streaming: --no-stream for cleaner output in scripts
  • DeepSeek's API is OpenAI-compatible — any OpenAI SDK works with base_url="https://api.deepseek.com/v1"

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-05-08 00:05 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 195 📥 67,623
dev-programming

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 72 📥 181,802
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 677 📥 327,204