<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: ChinaWHAPI Team</title>
    <description>The latest articles on DEV Community by ChinaWHAPI Team (@chinawhapi).</description>
    <link>https://dev.to/chinawhapi</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3923135%2F92c7354a-4c29-4389-b1f5-1b07874afe72.png</url>
      <title>DEV Community: ChinaWHAPI Team</title>
      <link>https://dev.to/chinawhapi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/chinawhapi"/>
    <language>en</language>
    <item>
      <title>How to Use DeepSeek API Outside China</title>
      <dc:creator>ChinaWHAPI Team</dc:creator>
      <pubDate>Sun, 10 May 2026 10:14:18 +0000</pubDate>
      <link>https://dev.to/chinawhapi/how-to-use-deepseek-api-outside-china-iko</link>
      <guid>https://dev.to/chinawhapi/how-to-use-deepseek-api-outside-china-iko</guid>
      <description>&lt;h1&gt;
  
  
  How to Use DeepSeek API Outside China
&lt;/h1&gt;

&lt;p&gt;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 &lt;strong&gt;ChinaWHAPI&lt;/strong&gt; comes in.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is ChinaWHAPI?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;ChinaWHAPI is an OpenAI-compatible API gateway for Chinese LLMs.&lt;/strong&gt; It provides unified access to multiple Chinese AI models including:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;DeepSeek (V3, R1)&lt;/li&gt;
&lt;li&gt;Qwen (Alibaba)&lt;/li&gt;
&lt;li&gt;GLM (Zhipu)&lt;/li&gt;
&lt;li&gt;Moonshot (Kimi)&lt;/li&gt;
&lt;li&gt;ERNIE (Baidu)&lt;/li&gt;
&lt;li&gt;Doubao (ByteDance)&lt;/li&gt;
&lt;li&gt;MiniMax&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why Use ChinaWHAPI?
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. No Chinese Phone Number Required
&lt;/h3&gt;

&lt;p&gt;Unlike direct API access from Chinese providers, ChinaWHAPI allows international users to access these models without needing a Chinese phone number for verification.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. OpenAI-Compatible Format
&lt;/h3&gt;

&lt;p&gt;If you're already using OpenAI's SDK, switching to ChinaWHAPI requires minimal code changes – just update the &lt;code&gt;base_url&lt;/code&gt; and &lt;code&gt;api_key&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. International Payment Support
&lt;/h3&gt;

&lt;p&gt;Accepts international credit cards, making it accessible for developers worldwide.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Unified API Interface
&lt;/h3&gt;

&lt;p&gt;Access multiple Chinese LLMs through a single API endpoint, simplifying your integration workflow.&lt;/p&gt;

&lt;h2&gt;
  
  
  Quick Start Guide
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Installation
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install &lt;/span&gt;openai
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Basic Usage
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;openai&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;OpenAI&lt;/span&gt;

&lt;span class="n"&gt;client&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;OpenAI&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;api_key&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;your_chinawhapi_key&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;base_url&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;https://api.chinawhapi.com/v1&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;chat&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;completions&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;deepseek-chat&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;messages&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;
        &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;role&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;system&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;content&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;You are a helpful assistant.&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;
        &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;role&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;user&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;content&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Hello!&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;choices&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;].&lt;/span&gt;&lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;content&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Available Models
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Model&lt;/th&gt;
&lt;th&gt;Provider&lt;/th&gt;
&lt;th&gt;Use Case&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;deepseek-chat&lt;/td&gt;
&lt;td&gt;DeepSeek&lt;/td&gt;
&lt;td&gt;General conversation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;deepseek-coder&lt;/td&gt;
&lt;td&gt;DeepSeek&lt;/td&gt;
&lt;td&gt;Code generation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;qwen-plus&lt;/td&gt;
&lt;td&gt;Alibaba&lt;/td&gt;
&lt;td&gt;Advanced reasoning&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;glm-4&lt;/td&gt;
&lt;td&gt;Zhipu&lt;/td&gt;
&lt;td&gt;Multi-modal tasks&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;moonshot-v1&lt;/td&gt;
&lt;td&gt;Moonshot&lt;/td&gt;
&lt;td&gt;Long context understanding&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Comparison with Direct API Access
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Feature&lt;/th&gt;
&lt;th&gt;Direct API&lt;/th&gt;
&lt;th&gt;ChinaWHAPI&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Phone Verification&lt;/td&gt;
&lt;td&gt;Required (Chinese)&lt;/td&gt;
&lt;td&gt;Not required&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Payment&lt;/td&gt;
&lt;td&gt;Local methods only&lt;/td&gt;
&lt;td&gt;International cards&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;API Format&lt;/td&gt;
&lt;td&gt;Varies by provider&lt;/td&gt;
&lt;td&gt;OpenAI-compatible&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Documentation&lt;/td&gt;
&lt;td&gt;Chinese&lt;/td&gt;
&lt;td&gt;English + Chinese&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Support&lt;/td&gt;
&lt;td&gt;Business hours (CST)&lt;/td&gt;
&lt;td&gt;24/7&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Pricing
&lt;/h2&gt;

&lt;p&gt;ChinaWHAPI offers competitive pricing with pay-as-you-go model:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;DeepSeek V3: $0.27 / 1M tokens (input), $1.10 / 1M tokens (output)&lt;/li&gt;
&lt;li&gt;Qwen Plus: $0.50 / 1M tokens (input), $1.50 / 1M tokens (output)&lt;/li&gt;
&lt;li&gt;GLM-4: $0.70 / 1M tokens (input), $2.80 / 1M tokens (output)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Prices may vary, check official website for latest rates.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Use Cases
&lt;/h2&gt;

&lt;p&gt;ChinaWHAPI is ideal for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;AI Agents&lt;/strong&gt;: Build autonomous agents with Chinese LLM capabilities&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Chatbots&lt;/strong&gt;: Create multilingual customer support bots&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SaaS Applications&lt;/strong&gt;: Integrate Chinese AI models into your products&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Research&lt;/strong&gt;: Experiment with different Chinese LLM architectures&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Content Creation&lt;/strong&gt;: Generate Chinese content for global audiences&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Getting Started
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Sign up at &lt;a href="https://chinawhapi.com" rel="noopener noreferrer"&gt;ChinaWHAPI&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Get your API key from the dashboard&lt;/li&gt;
&lt;li&gt;Install the OpenAI SDK&lt;/li&gt;
&lt;li&gt;Update your &lt;code&gt;base_url&lt;/code&gt; and start coding!&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;




&lt;p&gt;*Have questions? Check out the &lt;a href="https://chinawhapi.com/docs" rel="noopener noreferrer"&gt;documentation&lt;/a&gt; or join our &lt;/p&gt;

&lt;h3&gt;
  
  
  How to Use DeepSeek API Outside Chinacommunity discussions on GitHub.*
&lt;/h3&gt;

</description>
      <category>ai</category>
      <category>api</category>
      <category>llm</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
