---
title: DeepSeek: R1 API | Text Generation | ModelsLab
description: Build with DeepSeek: R1 API by Deepseek. Text generation, chat, code, and reasoning. Pay-per-use. Free tier.
url: https://modelslab.com/models/modelslab/deepseek-deepseek-r1.md
canonical: https://modelslab.com/models/modelslab/deepseek-deepseek-r1.md
type: product
component: Playground/LLM/Index
generated_at: 2026-06-24T23:49:46.748053Z
---

DeepSeek: R1
---

 [LLMs.txt](https://modelslab.com/models/open_router/deepseek-deepseek-r1/llms.txt) [.md](https://modelslab.com/models/deepseek/deepseek-deepseek-r1.md)

DeepSeek: R1
---

Choose a prompt below to get started or type your own message

 Explain quantum computing in simple terms

 Write a Python function to sort a list

 Create a marketing email for a SaaS product

 Compare REST vs GraphQL APIs

Send

### DeepSeek: R1

deepseek deepseek-deepseek-r1

Copy model ID

PricingInput $0.70 / 1M tokens

Output $2.50 / 1M tokens

API EndpointsOpenAI Compatible

`https://modelslab.com/api/v7/llm/chat/completions`Endpoint

Anthropic Compatible

`https://modelslab.com/api/v7/llm/v1/messages`Messages

`https://modelslab.com/api/v7/llm/v1/messages/count_tokens`Count Tokens

`https://modelslab.com/api/v7/llm/v1/models`Models

Use with Claude Code

cURL Example

ParametersSystem MessageYou are a helpful AI assistant specialized in providing accurate and detailed responses.

Temperature0.7

Max Tokens1000

Top P0.9

Frequency Penalty0

Presence Penalty0

Model Info

Support

Related Models
---

Discover similar models you might be interested in

 [View all LLM Models](https://modelslab.com/models?feature=llmaster)

[#### open\_router/Qwen: Qwen3 VL 30B A3B Instruct

qwen-qwen3-vl-30b-a3b-instruct

From $0.33/M tokens](https://modelslab.com/models/open_router/qwen-qwen3-vl-30b-a3b-instruct)

[#### open\_router/StepFun: Step 3.5 Flash

stepfun-step-3.5-flash

From $0.20/M tokens](https://modelslab.com/models/open_router/stepfun-step-3.5-flash)

[#### open\_router/Anthropic: Claude Opus 4.8 (Fast)

anthropic-claude-opus-4.8-fast

From $30.00/M tokens](https://modelslab.com/models/open_router/anthropic-claude-opus-4.8-fast)

[#### open\_router/WizardLM-2 8x22B

microsoft-wizardlm-2-8x22b

From $0.62/M tokens](https://modelslab.com/models/open_router/microsoft-wizardlm-2-8x22b)

[#### open\_router/Mistral: Ministral 3 8B 2512

mistralai-ministral-8b-2512

From $0.15/M tokens](https://modelslab.com/models/open_router/mistralai-ministral-8b-2512)

[#### meta/Meta Llama 3.1 405B Instruct Turbo

meta-llama-Meta-Llama-3.1-405B-Instruct-Turbo

From $3.50/M tokens](https://modelslab.com/models/meta/meta-llama-Meta-Llama-3.1-405B-Instruct-Turbo)

[#### open\_router/Sao10K: Llama 3 8B Lunaris

sao10k-l3-lunaris-8b

From $0.04/M tokens](https://modelslab.com/models/open_router/sao10k-l3-lunaris-8b)

[#### openai/GPT-5.1-Codex-Max

gpt-5.1-codex-max

From $5.63/M tokens](https://modelslab.com/models/openai/gpt-5.1-codex-max)

[#### open\_router/TheDrummer: UnslopNemo 12B

thedrummer-unslopnemo-12b

From $0.40/M tokens](https://modelslab.com/models/open_router/thedrummer-unslopnemo-12b)

[#### open\_router/MoonshotAI: Kimi K2 0711

moonshotai-kimi-k2

From $1.44/M tokens](https://modelslab.com/models/open_router/moonshotai-kimi-k2)

[#### open\_router/Qwen: Qwen3 Next 80B A3B Instruct

qwen-qwen3-next-80b-a3b-instruct

From $0.59/M tokens](https://modelslab.com/models/open_router/qwen-qwen3-next-80b-a3b-instruct)

[#### open\_router/Cohere: Command R7B (12-2024)

cohere-command-r7b-12-2024

From $0.09/M tokens](https://modelslab.com/models/open_router/cohere-command-r7b-12-2024)

[#### open\_router/Xiaomi: MiMo-V2.5-Pro

xiaomi-mimo-v2.5-pro

From $0.65/M tokens](https://modelslab.com/models/open_router/xiaomi-mimo-v2.5-pro)

[#### open\_router/Google Gemini Flash Latest

google-gemini-flash-latest

From $5.25/M tokens](https://modelslab.com/models/open_router/google-gemini-flash-latest)

[#### scb10x/Typhoon 2 70B Instruct

scb10x-scb10x-llama3-1-typhoon2-70b-instruct

From $1.06/M tokens](https://modelslab.com/models/scb10x/scb10x-scb10x-llama3-1-typhoon2-70b-instruct)

[#### open\_router/Nex AGI: Nex-N2-Pro

nex-agi-nex-n2-pro

From $0.63/M tokens](https://modelslab.com/models/open_router/nex-agi-nex-n2-pro)

[#### open\_router/DeepSeek: DeepSeek V4 Pro

deepseek-deepseek-v4-pro

From $0.65/M tokens](https://modelslab.com/models/open_router/deepseek-deepseek-v4-pro)

[#### open\_router/Qwen: Qwen3 30B A3B

qwen-qwen3-30b-a3b

From $0.31/M tokens](https://modelslab.com/models/open_router/qwen-qwen3-30b-a3b)

Open Source Alternatives
---

Explore open-source models that offer similar capabilities with full transparency and flexibility

 [View all open source models](https://modelslab.com/models?feature=llm&provider=open-source-models)

[MU

Popular](https://modelslab.com/models/modelslab/uncensored-chat)[ModelsLab](https://modelslab.com/models/modelslab)

 [Modelslab: Uncensored Chat

Open Source Model](https://modelslab.com/models/modelslab/uncensored-chat)

About DeepSeek: R1
---

DeepSeek R1 is here: Performance on par with \[OpenAI o1\](/openai/o1), but open-sourced and with fully open reasoning tokens. It's 671B parameters in size, with 37B active in an inference pass....

### Technical Specifications

Model IDdeepseek-deepseek-r1

CategoryLLM Models

TaskText Generation

Price$1.6 per million tokens

AddedFebruary 20, 2026

### Key Features

- Chat completion and multi-turn conversation API
- Streaming response with token-by-token output
- Function calling and tool use support
- System prompts and role-based messaging
- JSON mode and structured output

### Quick Start

Integrate DeepSeek: R1 into your application with a single API call. Get your API key from the [pricing page](https://modelslab.com/pricing) to get started.

PythonJavaScriptcURLPHP

```
<code>import requests
import json

url = "https://modelslab.com/api/v7/llm/chat/completions"

headers = {
    "Content-Type": "application/json"
}

data = {
        "model_id": "deepseek-deepseek-r1",
        "messages": [
            {
                "role": "user",
                "content": "Hello!"
            }
        ],
        "max_tokens": 1000,
        "key": "YOUR_API_KEY"
    }

try:
    response = requests.post(url, headers=headers, json=data)
    response.raise_for_status()  # Raises an HTTPError for bad responses (4XX or 5XX)
    result = response.json()
    print("API Response:")
    print(json.dumps(result, indent=2))
except requests.exceptions.HTTPError as http_err:
    print(f"HTTP error occurred: {http_err} - {response.text}")
except Exception as err:
    print(f"Other error occurred: {err}")</code>
```

### Pricing

DeepSeek: R1 API costs $1.600000 per million tokens. Pay only for what you use with no minimum commitments. [View pricing plans](https://modelslab.com/pricing)

### Use Cases

- AI chatbots and virtual assistants
- Code generation and developer tools
- Content writing and copywriting automation
- Data analysis, summarization, and extraction

[Browse LLM Models](https://modelslab.com/models?feature=llmaster) [More from Deepseek](https://modelslab.com/models/open_router) [View Pricing](https://modelslab.com/pricing)

DeepSeek: R1 FAQ
---

### What is DeepSeek: R1?

DeepSeek R1 is here: Performance on par with \[OpenAI o1\](/openai/o1), but open-sourced and with fully open reasoning tokens. It's 671B parameters in size, with 37B active in an inference pass....

### How do I use the DeepSeek: R1 API?

You can integrate DeepSeek: R1 into your application with a single API call. Sign up on ModelsLab to get your API key, then use the model ID "deepseek-deepseek-r1" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation.

### How much does DeepSeek: R1 cost?

DeepSeek: R1 costs $1.600000 per million tokens. ModelsLab uses pay-per-use pricing with no minimum commitments. A free tier is available to get started.

### What is the DeepSeek: R1 model ID?

The model ID for DeepSeek: R1 is "deepseek-deepseek-r1". Use this ID in your API requests to specify this model.

### Does DeepSeek: R1 have a free tier?

Yes, ModelsLab offers a free tier that lets you try DeepSeek: R1 and other AI models. Sign up to get free API credits and start building immediately.

---

*This markdown version is optimized for AI agents and LLMs.*

**Links:**
- [Website](https://modelslab.com)
- [API Documentation](https://docs.modelslab.com)
- [Blog](https://modelslab.com/blog)

---
*Generated by ModelsLab - 2026-06-25*