Roar AI
Get started
DeepSeek

DeepSeek API

Access DeepSeek’s open-weight models through Roar AI for coding, reasoning, document work and AI agents, without running your own GPUs.

Compare model pricing and reach DeepSeek alongside over 200 other AI models from one account.

DeepSeek API models and pricing

Compare every DeepSeek model’s input and output rates, context window, cached input rate and where it is processed.

ModelInput / 1MOutput / 1MContextBest forProcessed in
$1.56$3.121MCoding across large repositoriesSingapore
Cached input$0.234—Repeat a long prompt prefix and those tokens bill at this rate. Automatic.
Everything about DeepSeek V4 Pro
$0.195$0.781.05MLow-cost coding and tool useSingapore
Cached input$0.0195—Repeat a long prompt prefix and those tokens bill at this rate. Automatic.
Everything about DeepSeek V4.1 Flash

Per million tokens, in US dollars, unless a row names another unit. Compare them for your own usage with the token calculator.

Which DeepSeek model should you use?

For work at scale, measure accuracy, response time and the cost of a finished task on your own requests before you choose a default.

The first choice for most work: coding, tool use and long documents at low cost, and it reads images.

DeepSeek’s largest model, for hard coding and maths in text, where Flash falls short.

Why access DeepSeek through Roar AI?

Roar AI runs DeepSeek’s models for you, next to every other lab’s, behind one API.

Managed inference

Use DeepSeek’s open-weight models without buying GPUs, setting up inference servers or maintaining deployments.

Published rates

Compare input, output and cached input rates for each model, and pay only for what you use.

A familiar API format

Call DeepSeek through the OpenAI-compatible API that DeepSeek’s own developers and most AI tools already use.

One account across AI labs

Reach DeepSeek, OpenAI, Anthropic, Google and others without a separate account for each.

Usage and billing in one place

Follow usage across apps, and manage keys and spend limits, on one monthly invoice.

How to use the DeepSeek API

Getting started takes three steps:

  1. Create a Roar AI account and generate an API key.
  2. Point your SDK at the Roar AI API address.
  3. Choose a DeepSeek model and make your first request.

DeepSeek models are called through the OpenAI-compatible Chat Completions API. If you are moving an existing DeepSeek integration, check the model IDs, reasoning settings and request parameters before you switch.

import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.roar-ai.com/v1",
    api_key=os.environ["ROAR_API_KEY"],
)

reply = client.chat.completions.create(
    model="deepseek-v4.1-flash",
    messages=[{"role": "user", "content": "Summarise this contract in plain English."}],
)
print(reply.choices[0].message.content)

Read the API documentation.

How DeepSeek API pricing works

DeepSeek models are billed by the tokens they process. Input is your prompts, instructions and context; output is the answer, plus any reasoning the model does first.

Sending the same prompt prefix again is billed at the cached input rate shown in the table.

When you compare DeepSeek with other models, count retries, reasoning, answer length and accuracy. A lower rate per token is not always the lower cost per finished task.

DeepSeek API vs self-hosting DeepSeek

DeepSeek publishes its model weights, so you can run them on your own hardware or call them through a managed API like Roar AI.

Managed DeepSeek APISelf-hosted DeepSeek
InfrastructureRun for youRun by your team
CostBy usageHardware, hosting and operations
SetupAn API keyDeploying and tuning an inference stack
ControlThe API’s featuresYour whole deployment
Best forVariable demand and simple integrationSteady, heavy demand or special infrastructure needs

Self-hosting pays off for steady, predictable work or particular infrastructure needs. For demand that varies, an API avoids paying for GPUs that sit idle.

Where are DeepSeek API requests processed?

DeepSeek models are processed in Singapore. Your requests enter through the Roar AI gateway nearest you; the rest of the way, the route is the one we chose for each model, and it stays the same from call to call.

Where a model runs is not the whole answer for data residency: the gateway’s own logs and your app’s data have locations of their own.

Frequently asked questions

Can I use the DeepSeek API through Roar AI?

Yes. Every DeepSeek model listed on this page is available through Roar AI’s API, on the same key as every other model on the platform.

How is DeepSeek usage billed?

At the published rate per model, on one monthly invoice together with any other models your team uses. The rate does not move with what a provider charges us.

Do I need a separate account with DeepSeek?

No. One Roar AI key reaches every DeepSeek model listed here, so there is no separate DeepSeek account to set up.

Where are DeepSeek requests processed?

DeepSeek models are processed in Singapore. Your requests enter through the Roar AI gateway nearest you.

How do I get a DeepSeek API key through Roar AI?

Create a Roar AI account and generate an API key from your dashboard, then use it with the Roar AI address and a DeepSeek model ID. It is a Roar AI key, not one issued by DeepSeek.

How much does the DeepSeek API cost?

It depends on the model and the tokens you use. The table on this page shows Roar AI’s current rates for every DeepSeek model.

What is the cheapest DeepSeek model?

DeepSeek V4.1 Flash has lower standard rates than DeepSeek V4 Pro. Check the table for current rates, and compare what a finished task costs on your own work.

Can I use the OpenAI SDK with DeepSeek?

Yes. Point the SDK at the Roar AI address with your Roar AI key, and name a DeepSeek model ID.

Is DeepSeek open source?

DeepSeek publishes open weights under a licence for each model. Check that licence before self-hosting or redistributing the weights; calling the models through an API needs no download.

Is the DeepSeek API free?

No. DeepSeek usage through Roar AI is billed at the published token rates. Open weights make the model free to download, not free to run.

Does DeepSeek support reasoning and tool calling?

Yes. Each model’s page and the API reference list its reasoning settings, tool calling and the inputs it accepts.

Can I use DeepSeek alongside GPT, Claude and Gemini?

Yes. Every model is on the same Roar AI key, allowing for differences in features and request formats between labs.

Start building with DeepSeek

Use DeepSeek’s models without running your own GPUs, with published rates and usage in one place.