ChinaWHAPI TeamHow to Use DeepSeek API Outside China If you're building AI applications with Chinese...
If you're building AI applications with Chinese large language models (LLMs) like DeepSeek, you've probably encountered the challenge of accessing these APIs from outside China. That's where ChinaWHAPI comes in.
ChinaWHAPI is an OpenAI-compatible API gateway for Chinese LLMs. It provides unified access to multiple Chinese AI models including:
Unlike direct API access from Chinese providers, ChinaWHAPI allows international users to access these models without needing a Chinese phone number for verification.
If you're already using OpenAI's SDK, switching to ChinaWHAPI requires minimal code changes – just update the base_url and api_key.
Accepts international credit cards, making it accessible for developers worldwide.
Access multiple Chinese LLMs through a single API endpoint, simplifying your integration workflow.
pip install openai
from openai import OpenAI
client = OpenAI(
api_key="your_chinawhapi_key",
base_url="https://api.chinawhapi.com/v1"
)
response = client.chat.completions.create(
model="deepseek-chat",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Hello!"}
]
)
print(response.choices[0].message.content)
| Model | Provider | Use Case |
|---|---|---|
| deepseek-chat | DeepSeek | General conversation |
| deepseek-coder | DeepSeek | Code generation |
| qwen-plus | Alibaba | Advanced reasoning |
| glm-4 | Zhipu | Multi-modal tasks |
| moonshot-v1 | Moonshot | Long context understanding |
| Feature | Direct API | ChinaWHAPI |
|---|---|---|
| Phone Verification | Required (Chinese) | Not required |
| Payment | Local methods only | International cards |
| API Format | Varies by provider | OpenAI-compatible |
| Documentation | Chinese | English + Chinese |
| Support | Business hours (CST) | 24/7 |
ChinaWHAPI offers competitive pricing with pay-as-you-go model:
Prices may vary, check official website for latest rates.
ChinaWHAPI is ideal for:
base_url and start coding!ChinaWHAPI bridges the gap between international developers and powerful Chinese LLMs. With its OpenAI-compatible interface, no phone verification requirement, and support for multiple models, it's the easiest way to leverage Chinese AI capabilities in your projects.
Whether you're building AI agents, chatbots, or any application that needs Chinese language understanding, ChinaWHAPI provides the infrastructure you need to get started quickly.
*Have questions? Check out the documentation or join our