DeepSeek R1 API

Get DeepSeek R1 API with comparable to OpenAI-o1 performance in reasoning, math, and code tasks.

DeepSeek AI

DeepSeek R1

DeepSeek R1 uses a MoE architecture with 671B total parameters, 37B activated parameters. It delivers high performance in reasoning, math, and code tasks, outperforming many open-source models and competing with top proprietary models, while offering scalable open-source options.

Meta llama 3 introduction

RL-Driven Reasoning

Model uses reinforcement learning (RL) without supervised fine-tuning to develop advanced reasoning patterns, including self-verification and long CoT generation.

Cold-Start Data Incorporation

DeepSeek R1 improves model stability and reduces issues like endless repetition and language mixing by integrating cold-start data before RL stages.

Model Distillation

DeepSeek-R1 transfers reasoning capabilities from larger models into smaller ones, achieving strong performance in more compact architectures.

Developing with
DeepSeek R1 API

Gain instant access to DeepSeek R1 through production API: AI/ML API provides direct connectivity to DeepSeek R1.

Read more: Technical Model Card.
Try Deepseek R1 API in the Playground.

AIML API Integration
100+ AI Models
AIML API Data Enrichment
Cost-Effective API
Seamless data with AIML API
High Performance
AIML API webhooks icon
Serverless Architecture
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.aimlapi.com/v1",
    api_key="<YOUR_API_KEY>",    
)

response = client.chat.completions.create(
    model="deepseek/deepseek-r1",
    messages=[
        {
            "role": "system",
            "content": "You are an AI assistant who knows everything.",
        },
        {
            "role": "user",
            "content": "Tell me, why is the sky blue?"
        },
    ],
)

message = response.choices[0].message.content

print(f"Assistant: {message}")
Llama 3 intro
Breakthrough capabilities

DeepSeek R1 Surpasses OpenAI and Claude

DeepSeek R1's mixture-of-experts architecture drives competitive scalability and cost-efficiency, making it a leader among open-source AI models.

Read more: Deepseek R1 vs GPT o1-preview comparison

Mixtral icon

Versus OpenAI o1 (1217)

DeepSeek R1 outperforms OpenAI-o1-1217 in math and reasoning tasks like DROP and LiveCodeBench, showing its strength in complex problem-solving with RL-enhanced reasoning capabilities.

Google Icon

Versus Claude 3.5 Sonnet (1022)

DeepSeek R1 excels in areas requiring deep mathematical reasoning and large-scale code completion as well as MMLU and Chinese comparing to Claude-3.5.

OpenAI Icon

Versus GPT-4o (0513)

DeepSeek R1 outperforms GPT-4o in reasoning and math tasks, excelling in MATH-500 and AIME 2024, and handling advanced logic and computation at scale.

How to Get a Deepseek R1 API Key with AI/ML API

Create API Key

In the Playground, navigate to the Key Management section and click on Create API Key. You can easily activate or deactivate your keys as needed.

API key management page Image

Integrate AI

After creating your API key, you can integrate AI models into your application by following the guidelines provided in our API reference.

AI APP integration image
Get DeepSeek R1 API Key

Ready to get started? Get Your API Key Now!

Get API Key