Source: catalog-fallback

DeepSeek API documentation, organized for your first call

Start with the DeepSeek quick answers below, then browse the curated official catalog. The page also calls/api/documentsin the browser to refresh page titles and descriptions from each official docs site. If a crawl fails, it falls back to the built-in official link summary.

Providers

7

Pages

28

Updated

2026年9月22日 16:33

DeepSeek API quick answers

The five things developers ask before their first call. Each answer links to a full guide.

First API call

What is the DeepSeek API base URL?

DeepSeek is OpenAI-compatible. Keep the standard openai library and change only base_url, api_key, and the model name.

base_url="https://api.deepseek.com/v1"Python quickstart guide
Model selection

Which DeepSeek model ID should I use?

Use deepseek-v4-flash as the default for chat, streaming, and repeated tool steps. Switch to deepseek-v4-pro for harder reasoning or review-heavy work. Both have a 1M-token context window.

Pro vs Flash guide
Thinking & tool calls

How do thinking mode and tool calls work?

Thinking mode returns a reasoning_content field alongside the answer, and DeepSeek supports OpenAI-style function calling / tools. Use Flash for high-frequency tool loops and Pro for harder chains.

Thinking & tool-call guide
Pricing & rate limits

What does the DeepSeek API cost?

Per 1M tokens, cache-hit / cache-miss / output: DeepSeek V4 Flash off-peak: $0.007 / ¥0.05 / $0.22 / ¥1.50 / $0.66 / ¥4.50; DeepSeek V4 Flash peak: $0.014 / ¥0.10 / $0.44 / ¥3.00 / $1.32 / ¥9.00; DeepSeek V4 Pro off-peak: $0.022 / ¥0.15 / $0.66 / ¥4.50 / $1.98 / ¥13.50; DeepSeek V4 Pro peak: $0.044 / ¥0.30 / $1.32 / ¥9.00 / $3.96 / ¥27.00. Peak hours are 09:00–12:00 and 14:00–18:00 Beijing time (01:00–04:00 and 06:00–10:00 UTC).

API pricing guide
Troubleshooting

OpenAI-compatible or Anthropic-compatible endpoint?

Use the /v1 OpenAI-compatible endpoint for standard SDKs, or DeepSeek's Anthropic-compatible endpoint for Claude Code. Always call the real model IDs (deepseek-v4-pro / deepseek-v4-flash); legacy aliases are being retired.

OpenAI vs Anthropic routing guide
D

DeepSeek

DeepSeek

DeepSeek official docs cover first API calls, model and pricing details, thinking mode, tool usage, and the API reference.

DeepSeek-V4-ProDeepSeek-V4-FlashDeepSeek-V3.2 legacy aliases
quickstartCatalog fallback

Your First API Call | DeepSeek API Docs

Start from the API key and base URL, then send your first chat/completions request.

Source

api-docs.deepseek.com

Open
modelsCatalog fallback

Models & Pricing

Review DeepSeek V4 Pro and Flash model routes, current context limits, and pricing guidance.

Source

api-docs.deepseek.com

Open
referenceCatalog fallback

API Reference

Entry point for DeepSeek authentication, endpoints, and API reference material.

Source

api-docs.deepseek.com

Open
guidesCatalog fallback

Thinking Mode

Explains reasoning_content, thinking parameters, and compatibility notes for thinking mode.

Source

api-docs.deepseek.com

Open