DeepSeek-R1

Models

Model details

Model
deepseek-ai/DeepSeek-R1
Provider
huggingface
API
openai-completions
Base URL
https://router.huggingface.co/v1
Input
text
Reasoning
Yes
Context window
64,000
Max tokens
32,768
Cost / million input
$0.7
Cost / million output
$2.5
Cost / million cache read
$0
Cost / million cache write
$0
Model config JSON
{
  "providers": {
    "huggingface": {
      "apiKey": "YOUR_API_KEY",
      "models": [
        {
          "id": "deepseek-ai/DeepSeek-R1",
          "name": "DeepSeek-R1",
          "reasoning": true,
          "input": [
            "text"
          ],
          "contextWindow": 64000,
          "maxTokens": 32768,
          "cost": {
            "input": 0.7,
            "output": 2.5,
            "cacheRead": 0,
            "cacheWrite": 0
          },
          "compat": {
            "supportsDeveloperRole": false
          }
        }
      ],
      "api": "openai-completions",
      "baseUrl": "https://router.huggingface.co/v1"
    }
  }
}