Skip to content

DeepSeek Setup

DeepSeek Setup

Getting Your API Key

  1. Visit DeepSeek Platform
  2. Create an account or sign in
  3. Navigate to API Keys
  4. Click Create new API key
  5. Copy the generated key

Free Tier

  • Free credits upon registration
  • Rate-limited free usage available
  • Very affordable paid pricing

Environment Variables

Terminal window
export DEEPSEEK_API_KEY="your-api-key-here"

Add to your shell profile to persist:

Terminal window
echo 'export DEEPSEEK_API_KEY="your-api-key-here"' >> ~/.bashrc
source ~/.bashrc

Verify Your Setup

Test your API key:

Terminal window
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.