DeepSeek Setup
DeepSeek Setup
Getting Your API Key
- Visit DeepSeek Platform
- Create an account or sign in
- Navigate to API Keys
- Click Create new API key
- Copy the generated key
Free Tier
- Free credits upon registration
- Rate-limited free usage available
- Very affordable paid pricing
Environment Variables
export DEEPSEEK_API_KEY="your-api-key-here"Add to your shell profile to persist:
echo 'export DEEPSEEK_API_KEY="your-api-key-here"' >> ~/.bashrcsource ~/.bashrcVerify Your Setup
Test your API key:
curl https://api.deepseek.com/v1/models \ -H "Authorization: Bearer $DEEPSEEK_API_KEY"A successful response lists available models. Verify your key if you receive an error.