Hey everyone!!!
The DeepSeek Coding Plan tutorial is here.
I'm Programmer Wanfeng, with over 300k followers across the web, author of the python-office open source project.
Today I'll tell you 2 ways to use it:
- API Call (simple and fast)
- Local Deployment (cost-saving and flexible)
Choose according to your situation.
🚀 Way 1: API Call
Step 1: Get API Key
- Visit DeepSeek official website
- Register an account
- Get API Key
Step 2: Code Call
1 | import openai |
Step 3: Integrate with IDE
Supports mainstream IDEs such as VS Code, JetBrains, etc.
💻 Way 2: Local Deployment
For those with certain technical capabilities, local deployment is recommended.
Benefits:
- No API call fees
- Data is completely private
- Can be used offline
Hardware Requirements
| Model Size | Minimum VRAM | Recommended Configuration |
|---|---|---|
| 7B | 6GB | GTX 1060+ |
| 13B | 12GB | RTX 3060+ |
| 33B | 24GB | RTX 4090+ |
| 67B | 48GB | Multi-card server |
Deployment Steps
1. Install Ollama
1 | curl -fsSL https://ollama.com/install.sh | sh |
2. Download Model
1 | ollama pull deepseek-coder:6.7b |
3. Run
1 | ollama run deepseek-coder:6.7b |
4. Call
1 | import openai |
📊 Comparison of Two Methods
| Dimension | API Call | Local Deployment |
|---|---|---|
| Difficulty to Get Started | Low | Medium |
| Cost | API fees | One-time hardware investment |
| Data Security | Data in cloud | Completely private |
| Offline Available | ❌ | ✅ |
| Model Updates | Automatic | Manual |
🎯 How to Choose?
- Want to get started quickly → API Call
- Pursue lowest cost → Local Deployment
- Have technical capabilities → Local Deployment
- Don't want to hassle → API Call
📚 Want to Learn More?
- DeepSeek Coding Plan Introduction
- Who Is DeepSeek Suitable For?
- DeepSeek vs Claude Code: Which Is Better?
You are also welcome to join the "30 Lectures · AI Programming Training Camp" that I collaborate on with Turing Community. 30 systematic courses + 15+ practical projects, I'll guide you to master AI programming from 0 to 1.
👉 Click to view training camp details
💡 Final Word
These two ways of using DeepSeek have no distinction between good and bad, only suitable or not.
Just choose according to your situation.
I'm Programmer Wanfeng, see you next time.
*For more AI programming content, welcome to visit my website: https://www.python4office.cn/
🤖 开发者效率工具推荐
👉 想体验 MiniMax Token Plan?点击这里享受 9 折优惠
💡 按次计费,非常划算! 想象成去菜市场买菜——买张门票进去,菜随便拿。按使用次数收费,不限额度,用多少付多少,特别适合开发者!