Repository with runnable examples: github.com/apirouter-chat/apirouter-examples
DeepSeek is one of the strongest low-cost reasoning models available right now. The problem for many developers outside China is access: separate account, regional payment, different SDK.
This guide shows a shorter path. You can call DeepSeek using the OpenAI Python SDK through an OpenAI-compatible endpoint. Same SDK, same request format, two lines changed.
What you need
Python 3.8+
An API key from APIRouter (free $0.50 trial credit)
The openai Python package
Current DeepSeek models
Two DeepSeek models are available in the public catalog :
Model Input / 1M Output / 1M Best for
deepseek-ai/DeepSeek-V4-Flash $0.056 $0.112 Fast reasoning, coding, agent workflows
deepseek-ai/DeepSeek-R1 $0.200 $0.872 Multi-step analysis, math, planning
Other Chinese AI models on the same endpoint:
Model Input / 1M Output / 1M Best for
Qwen/Qwen3.6-35B-A3B $0.0228 $0.1828 Latest-gen coding, multilingual
moonshotai/Kimi-K2.6 $0.380 $1.60β¦