Baltor Get started

Models

R1 0528

By DeepSeek. 684.5 billion parameters, a context window of 163,840 tokens and the licence mit.

Facts

Released
2025-05-28 the day the repository was first published on Hugging Face Hugging Face, read
Licence
mit the licence the model card declares Hugging Face, read
Open weights
Yes the weights are published in this Hugging Face repository Hugging Face, read
Parameters
684.5 billion counted from the safetensors weight files Hugging Face, read
Active parameters
51.1 billion estimate estimated from the expert counts and sizes in the configuration model configuration, read
Knowledge cutoff
2025-03-31 the knowledge cutoff OpenRouter lists OpenRouter, read
Context window
  • 163,840 tokens the maximum position embeddings in the model configuration model configuration, read
  • 163,840 tokens the context length OpenRouter lists OpenRouter, read
Longest output
  • 32,768 tokens the largest output OpenRouter's first provider allows OpenRouter, read
Tool calling
  • No the chat template in the tokenizer configuration has no place for tool definitions Hugging Face, read
  • Yes OpenRouter lists tools among the supported parameters OpenRouter, read
Structured output
  • Yes OpenRouter lists structured outputs among the supported parameters OpenRouter, read
Reasoning controls
  • Yes OpenRouter lists reasoning controls OpenRouter, read
Inputs and outputs
text in, text out Hugging Face, read
Good for
  • Reasoning: OpenRouter lists reasoning controls for it OpenRouter, read

Prices

Prices in US dollars per million tokens, as each source lists them
ProviderInputOutputContextAs ofSource
NanoGPT direct0.400 USD1.70 USD163,840 older than 30 days; check the providermodels.dev, read
Deep Infra direct0.500 USD2.15 USD163,840 older than 30 days; check the providermodels.dev, read
DeepInfra through OpenRouter0.500 USD2.15 USD163,840OpenRouter endpoints, read
Meganova direct0.500 USD2.15 USD163,840 older than 30 days; check the providermodels.dev, read
submodel direct0.500 USD2.15 USD75,000 older than 30 days; check the providermodels.dev, read
SiliconFlow through OpenRouter0.500 USD2.18 USD163,840OpenRouter endpoints, read
StreamLake through OpenRouter0.571 USD2.29 USD128,000OpenRouter endpoints, read
Novita through OpenRouter0.700 USD2.50 USD163,840OpenRouter endpoints, read
IO.NET direct2.00 USD8.75 USD128,000 older than 30 days; check the providermodels.dev, read
Hugging Face direct3.00 USD5.00 USD163,840 older than 30 days; check the providermodels.dev, read

Run it on your own hardware

Weights are the sizes of the files a source lists, or an estimate from the parameter count where none does. Memory is an estimate: weights plus KV cache plus 512 MiB and 5 percent of the weights for runtime buffers. Check it against your hardware.

QuantizationWeightsMemory at 8,192 tokensMemory at 32,768 tokens
IQ1_M137 GiB145 GiB147 GiB
IQ2_XXS153 GiB161 GiB163 GiB
IQ2_XS175 GiB185 GiB187 GiB
IQ2_S177 GiB186 GiB188 GiB
IQ2_M200 GiB211 GiB213 GiB
Q2_K222 GiB234 GiB235 GiB
Q2_K_L222 GiB234 GiB236 GiB
IQ3_XXS249 GiB263 GiB264 GiB
IQ3_XS258 GiB272 GiB274 GiB
Q3_K_S273 GiB288 GiB290 GiB
IQ3_M287 GiB302 GiB304 GiB
Q3_K_M287 GiB302 GiB304 GiB
Q3_K_L298 GiB314 GiB315 GiB
Q3_K_XL299 GiB314 GiB316 GiB
IQ4_XS335 GiB353 GiB355 GiB
IQ4_NL354 GiB373 GiB375 GiB
Q4_0360 GiB379 GiB381 GiB
Q4_K_S367 GiB386 GiB388 GiB
Q4_K_M381 GiB401 GiB403 GiB
Q4_1392 GiB413 GiB414 GiB
Q5_K_S431 GiB454 GiB455 GiB
Q5_K_M445 GiB469 GiB470 GiB
Q6_K515 GiB541 GiB543 GiB
Q8_0664 GiB699 GiB700 GiB

Start it with a local runtime

  • Ollama
    ollama run hf.co/bartowski/deepseek-ai_DeepSeek-R1-0528-GGUF:Q4_0
  • LM Studio
    lms get bartowski/deepseek-ai_DeepSeek-R1-0528-GGUF
    lms server start
  • llama.cpp server
    llama-server -hf bartowski/deepseek-ai_DeepSeek-R1-0528-GGUF:Q4_0 --jinja
  • vLLM
    vllm serve deepseek-ai/DeepSeek-R1-0528
  • SGLang
    sglang serve --model-path deepseek-ai/DeepSeek-R1-0528 --port 30000

Use it from your harness

Set up for DeepInfra with the model deepseek-ai/DeepSeek-R1-0528. Each endpoint page has the same setup for its own address.

OpenCode

Put this in opencode.json in your project folder:

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "deepinfra": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "DeepInfra",
      "options": {
        "baseURL": "https://api.deepinfra.com/v1/openai",
        "apiKey": "{env:DEEPINFRA_TOKEN}"
      },
      "models": {
        "deepseek-ai/DeepSeek-R1-0528": {
          "name": "R1 0528",
          "limit": {
            "context": 163840,
            "output": 32768
          }
        }
      }
    }
  }
}
  • OpenCode reads any OpenAI-compatible address through the @ai-sdk/openai-compatible package, and an address that speaks the Responses API through @ai-sdk/openai.

From OpenCode documentation, read .

Pi

Put this in ~/.pi/agent/models.json:

{
  "providers": {
    "deepinfra": {
      "baseUrl": "https://api.deepinfra.com/v1/openai",
      "api": "openai-completions",
      "apiKey": "$DEEPINFRA_TOKEN",
      "models": [
        {
          "id": "deepseek-ai/DeepSeek-R1-0528"
        }
      ]
    }
  }
}
  • The apiKey field can name an environment variable as $NAME.

From Pi documentation, read .

Codex

Codex speaks only the Responses API, and DeepInfra documents no Responses address. A gateway that offers one can sit in between.

  • Codex speaks the Responses API only: responses is the one supported wire API of a custom provider. Ollama and LM Studio are built in and start with --oss.

From Codex documentation, read .

Claude Code

Put this in ~/.claude/settings.json, or variables in your shell:

export ANTHROPIC_BASE_URL="https://api.deepinfra.com/anthropic"
export ANTHROPIC_AUTH_TOKEN="$DEEPINFRA_TOKEN"
export ANTHROPIC_MODEL="deepseek-ai/DeepSeek-R1-0528"
claude
  • Claude Code sends Anthropic Messages requests to ANTHROPIC_BASE_URL. Anthropic says it does not support routing Claude Code to models other than Claude through any gateway, so some features may not work with another model.

From Claude Code documentation, read .

Other ways to reach it

  • Hugging Face, model deepseek-ai/DeepSeek-R1-0528
  • IO.NET, model deepseek-ai/DeepSeek-R1-0528
  • Meganova, model deepseek-ai/DeepSeek-R1-0528
  • NanoGPT, model deepseek-ai/DeepSeek-R1-0528
  • submodel, model deepseek-ai/DeepSeek-R1-0528
  • OpenRouter, model deepseek/deepseek-r1-0528
  • Ollama, model hf.co/bartowski/deepseek-ai_DeepSeek-R1-0528-GGUF:Q4_0

Published results

These are results other people published. Baltor did not run them and does not rank models by them.