provider
DeepSeek
Direct answerDeepSeek's current official model IDs are deepseek-v4-flash and deepseek-v4-pro; thinking is enabled by default and can be disabled. Direct calls use a DeepSeek API key, while this gateway uses its own Bearer token.
Updated · Reviewed
Direct access versus this gateway
Direct DeepSeek access uses https://api.deepseek.com and a DeepSeek API key. This gateway uses its own base URL and Bearer token. This page currently declares only /v1/chat/completions; do not treat DeepSeek's official Responses, Anthropic-compatible, or beta paths as gateway endpoints.
Current models and thinking
As of this review, the official IDs are deepseek-v4-flash and deepseek-v4-pro, both with thinking enabled by default. This replaces the old mental model that chat always means non-reasoning and reasoner always means reasoning. Direct calls can switch thinking.type and tune reasoning_effort; gateway calls must use a name actually enabled in the gateway model list because channels can map model IDs.
Streaming, JSON, and tools
Official Chat Completions streams SSE and terminates with [DONE]; stream_options.include_usage requests aggregate usage. JSON mode also needs an explicit JSON instruction or it may emit whitespace until the token limit. A tool call only proposes a function and arguments: the application must validate and execute it, never passing model output directly into payments, destructive database actions, or shell commands.
Errors and cost safety
401 usually indicates a bad key, 402 insufficient balance, 429 a rate limit, and 500/503 a potentially retryable service failure. Thinking can increase output tokens and latency. Set max_tokens, request timeouts, concurrency caps, and balance alerts, and read live pricing rather than hard-coding rates.
Production checklist
Verify the exact model ID, thinking mode, context, output cap, tools, and JSON support. Record request IDs, returned model, usage, and review date. Models and prices can change, so reproducible workloads should retain full requests and regression samples.
Reviewed provider catalog
Latest models by capability
These are provider-catalog models, not a promise of availability on this site. Confirm callable IDs, endpoints, and pricing in the model marketplace.
Text, reasoning, and code
-
deepseek-chatStableDeepSeek's current non-reasoning chat alias for general text, code, and tool use.
-
deepseek-reasonerStableDeepSeek's current reasoning alias for complex tasks, with a dedicated reasoning-content field.
Use cases
- Thinking and non-thinking modes
- Long-context processing
- OpenAI-compatible API
API protocols
/v1/chat/completions
FAQ
What is the difference between calling DeepSeek directly and using this gateway?
Direct calls use https://api.deepseek.com and a DeepSeek API key. This gateway uses its own base URL, Bearer token, and the /v1/chat/completions path declared on this page. DeepSeek's official Responses, Anthropic-compatible, or beta paths are not automatically gateway endpoints.
Which official model ID should I use, and how do I disable thinking?
The current official IDs are deepseek-v4-flash and deepseek-v4-pro, both with thinking enabled by default. Direct calls can set thinking.type=disabled or tune reasoning_effort. Through this gateway, first check its model list because a channel alias may differ from the official ID.
Why can JSON mode emit only whitespace, and may I execute tool arguments directly?
DeepSeek requires an explicit JSON instruction in the prompt; otherwise the model can stream whitespace until the token limit. Tool arguments are model-generated and must be validated for type, range, authorization, and side effects before execution.
How should I handle 402, 429, or an interrupted stream?
402 means insufficient provider balance and 429 means rate limiting; use bounded exponential backoff only for retryable 5xx/503 failures. Streams are SSE and end with [DONE]; request aggregate usage with supported stream_options.include_usage, and set timeouts and output budgets for thinking requests.
Related guides
Official sources
- DeepSeek Models and Pricing Official
- DeepSeek Chat Completions API Official
- DeepSeek Error Codes Official
兔子API