DeepSeek R1 — GitHub Models

Free, rate-limited DeepSeek R1 via GitHub Models — authenticate with a GitHub token, no credit card.

About the Model

DeepSeek R1 is the open reasoning model that put DeepSeek on the map, with strong chain-of-thought performance and broad free availability. The providers below cover the free options.

For a stronger free upgrade, we recommend DeepSeek V4 Pro — a 1.6T-parameter MoE that rivals top proprietary models in coding, also free here.

How to Access for Free (via GitHub Models)

GitHub Models offers DeepSeek R1 on its free, rate-limited inference tier — authenticate with a GitHub personal access token (no credit card). Free limits vary by your GitHub plan.

cURL:

```bash curl https://models.github.ai/inference/chat/completions \ -H "Authorization: Bearer $GITHUB_TOKEN" \ -H "Content-Type: application/json" \ -d '{"model":"deepseek/DeepSeek-R1","messages":[{"role":"user","content":"Explain the Monty Hall problem."}]}' ```

Python (OpenAI SDK):

```python from openai import OpenAI

client = OpenAI(base_url="https://models.github.ai/inference", api_key="GITHUB_TOKEN") resp = client.chat.completions.create( model="deepseek/DeepSeek-R1", messages=[{"role": "user", "content": "Explain the Monty Hall problem."}], ) print(resp.choices[0].message.content) ```

Code Examples

No examples provided yet.

GitHub Models DeepSeek R1 — GitHub Models - Free AI API | Free AI API