DeepSeek Models & API

Browse the DeepSeek models currently available on TokenHub. Compare pricing, context windows, and supported capabilities, then start with one OpenAI-compatible API workflow.

DeepSeek Models & API Pricing

Compare current DeepSeek API pricing, input and output token costs, context windows, and supported endpoints. Open a model page for full specifications and request examples.

Compare input, output, and cache-read prices separately from model capabilities.

Tên mô hìnhĐầu vào/ triệu tokenĐầu ra/ triệu tokenĐọc cache/ triệu token

DeepSeek

DeepSeek R1deepseek-r1
$0.5714$2.2857$0.2286

DeepSeek

DeepSeek V3deepseek-v3
$0.2857$1.1429$0.1143

DeepSeek

DeepSeek V3.1 Terminusdeepseek-v3.1-terminus
$0.5714$1.7143$0.0857

DeepSeek

DeepSeek V3.2 Thinkdeepseek-v3.2-think
$0.2857$0.4286$0.0286

DeepSeek

DeepSeek V4 Flashdeepseek-v4-flash
$0.4286$1.2857$0.0143

DeepSeek

DeepSeek V4 Flash Vision Expdeepseek-v4-flash-vision-exp
$0.4286$1.2857$0.0143

DeepSeek

DeepSeek V4 Prodeepseek-v4-pro
$1.2857$3.8571$0.0429

Compare context windows, maximum output, reasoning, tool calling, endpoints, and release dates.

Tên mô hìnhPhương thứcCửa sổ ngữ cảnhMax outputReasoningTool callingEndpointNgày phát hành

DeepSeek

DeepSeek R1deepseek-r1
128K
32.8K
OpenAI / Anthropic
20 thg 1, 2025

DeepSeek

DeepSeek V3deepseek-v3
128K
16K
OpenAI / Anthropic
26 thg 12, 2024

DeepSeek

DeepSeek V3.1 Terminusdeepseek-v3.1-terminus
128K
64K
OpenAI / Anthropic
22 thg 9, 2025

DeepSeek

DeepSeek V3.2 Thinkdeepseek-v3.2-think
128K
64K
OpenAI / Anthropic
1 thg 12, 2025

DeepSeek

DeepSeek V4 Flashdeepseek-v4-flash
1M
384K
OpenAI / Responses
24 thg 4, 2026

DeepSeek

DeepSeek V4 Flash Vision Expdeepseek-v4-flash-vision-exp
1M
384K
OpenAI / Responses / Anthropic
21 thg 8, 2026

DeepSeek

DeepSeek V4 Prodeepseek-v4-pro
1M
384K
OpenAI / Responses
24 thg 4, 2026
Catalog data

Pricing, model availability, context windows, and endpoint support reflect the current TokenHub catalog. Confirm the model detail page before a production release because specifications and availability can change.

Last updated: 2026-08-25

Get started with the DeepSeek API

Use the DeepSeek OpenAI-compatible API with Chat Completions or Responses, or call DeepSeek through the Claude Messages API. OpenAI SDK examples are available in Python and Node.js; streaming support depends on the selected endpoint.

  1. 01Create a TokenHub API key
  2. 02Choose an available DeepSeek model
  3. 03Choose an API protocol
  4. 04Use the published endpoint and model ID
  5. 05Send your first request

Choose an API protocol

import OpenAI from "openai"

const client = new OpenAI({
  apiKey: process.env.TOKENHUB_API_KEY,
  baseURL: "https://us-api.tokenhub.com/v1",
})

const result = await client.chat.completions.create({
  "model": "deepseek-v3.2-think",
  "messages": [
    {
      "role": "user",
      "content": "Explain why low latency matters for an AI product in one sentence."
    }
  ]
})
console.log(result.choices[0]?.message?.content)
import json
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ.get("TOKENHUB_API_KEY"),
    base_url="https://us-api.tokenhub.com/v1",
)

request = json.loads("{\"model\":\"deepseek-v3.2-think\",\"messages\":[{\"role\":\"user\",\"content\":\"Explain why low latency matters for an AI product in one sentence.\"}]}")
result = client.chat.completions.create(**request)
print(result.choices[0].message.content)
curl 'https://us-api.tokenhub.com/v1/chat/completions' \
  -X 'POST' \
  -H "Authorization: Bearer $TOKENHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "deepseek-v3.2-think",
  "messages": [
    {
      "role": "user",
      "content": "Explain why low latency matters for an AI product in one sentence."
    }
  ]
}'
const response = await fetch("https://us-api.tokenhub.com/v1/chat/completions", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.TOKENHUB_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "model": "deepseek-v3.2-think",
    "messages": [
      {
        "role": "user",
        "content": "Explain why low latency matters for an AI product in one sentence."
      }
    ]
  }),
})
const data = await response.json()
console.log(data)
import os
import requests

response = requests.request(method="POST", url="https://us-api.tokenhub.com/v1/chat/completions",
    headers={
        "Authorization": f"Bearer {os.environ['TOKENHUB_API_KEY']}",
        "Content-Type": "application/json",
    },
    json=__import__("json").loads("{\"model\":\"deepseek-v3.2-think\",\"messages\":[{\"role\":\"user\",\"content\":\"Explain why low latency matters for an AI product in one sentence.\"}]}"),
)
response.raise_for_status()
print(response.json())
import OpenAI from "openai"

const client = new OpenAI({
  apiKey: process.env.TOKENHUB_API_KEY,
  baseURL: "https://us-api.tokenhub.com/v1",
})

const result = await client.responses.create({
  "model": "deepseek-v3.2-think",
  "input": "Explain why low latency matters for an AI product in one sentence."
})
console.log(result.output_text)
import json
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ.get("TOKENHUB_API_KEY"),
    base_url="https://us-api.tokenhub.com/v1",
)

request = json.loads("{\"model\":\"deepseek-v3.2-think\",\"input\":\"Explain why low latency matters for an AI product in one sentence.\"}")
result = client.responses.create(**request)
print(result.output_text)
curl 'https://us-api.tokenhub.com/v1/responses' \
  -X 'POST' \
  -H "Authorization: Bearer $TOKENHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "deepseek-v3.2-think",
  "input": "Explain why low latency matters for an AI product in one sentence."
}'
const response = await fetch("https://us-api.tokenhub.com/v1/responses", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.TOKENHUB_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "model": "deepseek-v3.2-think",
    "input": "Explain why low latency matters for an AI product in one sentence."
  }),
})
const data = await response.json()
console.log(data)
import os
import requests

response = requests.request(method="POST", url="https://us-api.tokenhub.com/v1/responses",
    headers={
        "Authorization": f"Bearer {os.environ['TOKENHUB_API_KEY']}",
        "Content-Type": "application/json",
    },
    json=__import__("json").loads("{\"model\":\"deepseek-v3.2-think\",\"input\":\"Explain why low latency matters for an AI product in one sentence.\"}"),
)
response.raise_for_status()
print(response.json())
curl 'https://us-api.tokenhub.com/v1/messages' \
  -X 'POST' \
  -H "Authorization: Bearer $TOKENHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "deepseek-v3.2-think",
  "max_tokens": 1024,
  "messages": [
    {
      "role": "user",
      "content": "Explain why low latency matters for an AI product in one sentence."
    }
  ]
}'
const response = await fetch("https://us-api.tokenhub.com/v1/messages", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.TOKENHUB_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "model": "deepseek-v3.2-think",
    "max_tokens": 1024,
    "messages": [
      {
        "role": "user",
        "content": "Explain why low latency matters for an AI product in one sentence."
      }
    ]
  }),
})
const data = await response.json()
console.log(data)
import os
import requests

response = requests.request(method="POST", url="https://us-api.tokenhub.com/v1/messages",
    headers={
        "Authorization": f"Bearer {os.environ['TOKENHUB_API_KEY']}",
        "Content-Type": "application/json",
    },
    json=__import__("json").loads("{\"model\":\"deepseek-v3.2-think\",\"max_tokens\":1024,\"messages\":[{\"role\":\"user\",\"content\":\"Explain why low latency matters for an AI product in one sentence.\"}]}"),
)
response.raise_for_status()
print(response.json())

Which DeepSeek model should you choose?

Use this DeepSeek model selection guide to match the API workload to a model, then verify DeepSeek API pricing, context window, and endpoint support before shipping.

API workloadStart withWhen it fitsVerify before launch
High-volume, cost-aware API callsDeepSeek V4 FlashChat, summarization, generation, and batch work where fast iteration matters.DeepSeek API pricing, throughput, and output-token cost
Complex reasoningDeepSeek R1Multi-step analysis, code reasoning, and tasks where answer quality matters more than latency.Reasoning latency, output length, and total request cost
General production workflowsDeepSeek V3.2 ThinkEveryday assistants, extraction, and product features using one DeepSeek API integration.Task accuracy, endpoint support, and production price
Long documents and conversationsDeepSeek V4 FlashLong-context DeepSeek API requests where prompts, files, or chat history are the constraint.Context window, input-token pricing, and streaming support
High-quality or high-stakes deliveryDeepSeek V4 ProFinal outputs where capability headroom matters more than the lowest possible unit cost.Task-specific quality, latency, and the cost difference versus Flash

DeepSeek API FAQ

Which DeepSeek models are available on TokenHub?

The model list on this page reflects the DeepSeek models currently available in the TokenHub catalog. Availability can change, so open a model detail page before integrating.

Which DeepSeek model should I use?

Start with the workload: use a fast model for cost-aware iteration, a reasoning-capable model for complex tasks, and compare context windows when long inputs matter.

How is DeepSeek API pricing calculated?

Pricing depends on the selected model and billing type. Review input, output, cache, or per-request pricing in the catalog and model detail page.

Can I use the OpenAI SDK with DeepSeek models on TokenHub?

Yes. Use the OpenAI Python or Node.js SDK with the TokenHub Base URL, API key, and DeepSeek model ID for Chat Completions or Responses requests.

Which API protocols can I use to call DeepSeek?

TokenHub provides DeepSeek examples for OpenAI Chat Completions, OpenAI Responses, and Claude Messages. Streaming support depends on the endpoint used by your request.

Where do I find the DeepSeek model ID?

Each pricing row shows its model ID. You can also find it on the corresponding model detail page.

Start building with DeepSeek

Choose a model, create a TokenHub API key, and keep the same API workflow as your application evolves.