DEV Community

purecast
purecast

Posted on

I Spent $200 Testing Chinese AI vs GPT-4o: Here's My Take

I Spent $200 Testing Chinese AI vs GPT-4o: Here's My Take

So like, here's the thing. I've been building indie projects for a few years now, and my OpenAI bill was getting kinda out of control. Last month alone I dropped something stupid like $340 just on API calls for my side project. That's when I started looking around at alternatives more seriously.

I had heard about Chinese AI models for a while. DeepSeek, Qwen, Kimi, GLM — those names kept popping up in dev Twitter threads and on Hacker News. And honestly? I was skeptical. I figured there had to be a catch. Either the quality was gonna be terrible, or you couldn't access them from the US, or something. But the more I dug in, the more I realized... honestly, I gotta say, I was wrong to ignore them.

Let me walk you through what I found, what I tested, and how I'm running my apps now for a FRACTION of what I used to pay.


Why I Even Started Looking

Look, I'm not anti-OpenAI. GPT-4o is solid. Claude 3.5 Sonnet genuinely impresses me sometimes. These are good models and I'm not gonna sit here and say they're trash. But here's the math that broke my brain:

When you're building a real product that handles real user traffic, every fraction of a cent per token matters. I was running a chatbot feature for one of my SaaS apps, and I did the math — if I got 10,000 users making 20 requests a day, my OpenAI bill would be astronomical. Like, mortgage-payment territory.

So I started looking at Chinese models. And what I found genuinely surprised me. The QUALITY gap has basically closed. The PRICE gap, though? That's only gotten wider. In a good way — for us builders, anyway.


The Pricing Reality Check

I'm just gonna throw the raw numbers at you because honestly, the first time I saw these side-by-side, I thought it was a typo. Maybe I'm missing something obvious here, but this seems too good to be true.

Here's what you're paying per million tokens (input/output):

The American models:

  • GPT-4o — $2.50 input / $10.00 output
  • Claude 3.5 Sonnet — $3.00 / $15.00
  • Gemini 1.5 Pro — $1.25 / $5.00
  • GPT-4o-mini — $0.15 / $0.60

The Chinese models:

  • DeepSeek V4 Flash — $0.18 / $0.25
  • Qwen3-32B — $0.18 / $0.28
  • GLM-5 — $0.73 / $1.92
  • Kimi K2.5 — $0.59 / $3.00

Now do that math in your head. DeepSeek V4 Flash at $0.25 per million output tokens vs GPT-4o at $10.00 per million output tokens. That's 40X cheaper. FORTY. TIMES.

And here's the kicker — DeepSeek V4 Flash isn't some garbage model. It's actually REALLY good. I'll get into benchmarks in a sec, but spoiler alert: it's competitive or better than GPT-4o on most tasks I care about.


But Wait, Can You Even Access These From Outside China?

Here's where I hit my first wall. I went to DeepSeek's website all excited and... yeah, the signup requires a Chinese phone number. Alipay or WeChat pay only. The whole thing is built for the Chinese market, which makes sense, but it makes it pretty much impossible for someone like me in the US.

Same story with Qwen, GLM, Kimi. All amazing models, all locked behind a wall of "sorry, not for you."

For like two weeks I just gave up on it. Went back to paying my OpenAI bill and trying not to look at the credit card statement. Then I found Global API somewhere — I honestly don't remember where, maybe a Reddit thread or a dev community — and it kinda changed everything for me.

Global API is basically a proxy service that gives you OpenAI-compatible endpoints to all these Chinese models. They handle the Chinese billing, they give you international payment (PayPal, regular credit card), the API is the exact same OpenAI format, so you don't have to rewrite anything. I literally changed my base URL from openai.com/v1 to global-apis.com/v1 and swapped the model name and... that was it. Like 5 minutes of work.

I'm gonna show you the code in a sec but first let me talk about quality because I know that's what you're really wondering about.


The Quality Numbers (And What I Actually Found)

I ran a bunch of my own benchmarks too, just to verify what the community was reporting. Here are the aggregated scores I found from various tests:

General Reasoning (MMLU-style benchmarks):

Model Score Output Price/M
GPT-4o 88.7 $10.00
Claude 3.5 Sonnet 89.0 $15.00
Kimi K2.5 87.0 $3.00
DeepSeek V4 Flash 85.5 $0.25
GLM-5 86.0 $1.92
Qwen3.5-397B 87.5 $2.34

So GPT-4o and Claude 3.5 are still technically top dogs on MMLU. But look at the scores — we're talking 85.5 vs 88.7. That's like a 3-point gap. For context, the difference between GPT-4o and GPT-3.5 was something like 15-20 points. The frontier has gotten crowded.

Code Generation (HumanEval):

Model Score Output Price/M
DeepSeek V4 Flash 92.0 $0.25
Qwen3-Coder-30B 91.5 $0.35
GPT-4o 92.5 $10.00
Claude 3.5 Sonnet 93.0 $15.00
DeepSeek Coder 91.0 $0.25

Wait what. DeepSeek V4 Flash scoring 92.0 on HumanEval? AT 25 CENTS PER MILLION TOKENS?? That's literally within 0.5 points of GPT-4o, which costs 40x more. And Claude 3.5 at 93.0, sure it's the best, but it's also $15.00 per million output. That's 60 times more expensive.

For code generation specifically, Chinese models are actually DOMINATING the value game. Hands down.

Chinese Language (C-Eval):

Model Score Output Price/M
GLM-5 91.0 $1.92
Kimi K2.5 90.5 $3.00
Qwen3-32B 89.0 $0.28
GPT-4o 88.5 $10.00
DeepSeek V4 Flash 88.0 $0.25

This one kinda makes sense right? Models trained heavily on Chinese corpora tend to do better on Chinese benchmarks. But the wild thing is they still crush on English too.


My Actual Testing Experience

OK so I ran some practical tests on my own. I built a simple test harness that threw the same prompts at each model and compared outputs. Here's what I found, completely anecdotally:

Coding tasks: I asked each model to write a Python function that parses CSV files with edge cases (nested quotes, escaped characters, mixed line endings). DeepSeek V4 Flash handled it cleanly. GPT-4o handled it cleanly too. Honestly couldn't tell a meaningful quality difference, but my costs were 40x lower on DeepSeek. No contest.

Reasoning tasks: Gave them logic puzzles, math word problems, that kind of thing. Claude 3.5 Sonnet was still the king here — it doesn't hallucinate as much. DeepSeek V4 Flash was solid for simpler reasoning but stumbled on really tricky multi-step logic. That's where the quality gap still shows up for me.

Creative writing: GPT-4o and Claude still have a slight edge in terms of style and "voice." The Chinese models are more... functional? Less flair. They're not BAD, just different. For most SaaS use cases though, you'd never notice.

Speed: This surprised me. DeepSeek V4 Flash actually outputs faster than GPT-4o in my tests — I was getting like 60 tokens/sec vs GPT-4o's 50ish. Less latency, which matters for chat apps.

The takeaway I came to: for 95% of what I'm building, I genuinely cannot justify paying 40x more for GPT-4o. The marginal quality difference doesn't matter when your cost structure is built on tighter margins.


Actually Building With These Models (The Code Part)

Alright, let me show you how stupid easy this is. I was NOT expecting it to be this simple. If you've ever used the OpenAI Python SDK, you already know 90% of what you need.

Here's a basic chat completion using DeepSeek V4 Flash through Global API:

from openai import OpenAI

client = OpenAI(
    api_key="your-global-api-key",
    base_url="https://global-apis.com/v1"
)

response = client.chat.completions.create(
    model="deepseek-v4-flash",
    messages=[
        {"role": "system", "content": "You are a helpful coding assistant."},
        {"role": "user", "content": "Write a Python function to debounce API calls"}
    ],
    temperature=0.7,
    max_tokens=500
)

print(response.choices[0].message.content)
print(f"Tokens used: {response.usage.total_tokens}")
Enter fullscreen mode Exit fullscreen mode

That's literally it. Same SDK, same method, same response format. The only differences are the base_url and the model name. Your existing OpenAI code works with minimal changes.

Want to switch between models for A/B testing? Easy.

from openai import OpenAI

client = OpenAI(
    api_key="your-global-api-key",
    base_url="https://global-apis.com/v1"
)

def test_model(model_name, prompt):
    response = client.chat.completions.create(
        model=model_name,
        messages=[{"role": "user", "content": prompt}],
        temperature=0.3
    )
    return {
        "model": model_name,
        "output": response.choices[0].message.content,
        "tokens": response.usage.total_tokens,
        "cost_estimate": response.usage.total_tokens * 0.25 / 1_000_000  # rough estimate
    }

# Compare models head-to-head
models = ["deepseek-v4-flash", "qwen3-32b", "glm-5", "kimi-k2.5"]
prompt = "Explain quantum entanglement to a 10-year-old"

for model in models:
    result = test_model(model, prompt)
    print(f"\n{result['model']}: ~${result['cost_estimate']:.6f}")
    print(result['output'][:200] + "...")
Enter fullscreen mode Exit fullscreen mode

This makes it really easy to run comparisons on YOUR actual use cases. Not synthetic benchmarks, but whatever weird specific thing your app does.


The Head-to-Head Matchups

Let me break down the main comparisons I was weighing in my head:

DeepSeek V4 Flash vs GPT-4o

This is THE big one everyone's talking about.

Factor V4 Flash GPT-4o
Output Price $0.25/M $10.00/M
General reasoning Good Slightly better
Code generation Excellent Excellent
Speed ~60 tok/s ~50 tok/s
Context window 128K 128K
Vision input No Yes

If your app needs vision (image understanding), GPT-4o still has the edge. But for text-only stuff — which is most apps — DeepSeek V4 Flash wins on value by a MILE. The 40x price difference is not made up for by the marginal quality improvement.

Qwen3-32B vs GPT-4o-mini

This one's pretty much a clean sweep.

Factor Qwen3-32B GPT-4o-mini
Output Price $0.28/M $0.60/M
Quality Solid Decent
Code generation Good OK
Chinese language Excellent Meh

Qwen3-32B is better than GPT-4o-mini in pretty much every way I can measure it, and it's cheaper. In 2026, I genuinely don't see a reason to use GPT-4o-mini over Qwen3-32B unless you have some specific reason. Honestly, I just can't recommend the more expensive option here.

Kimi K2.5 vs Claude 3.5 Sonnet

This one is more nuanced.

Factor K2.5 Claude 3.5 Sonnet
Output Price $3.00/M $15.00/M
Reasoning quality Excellent Slightly better
Chinese language Excellent OK

Claude 3.5 Sonnet is STILL the best in class for the kind of nuanced reasoning that requires really careful thought. But it's also 5x more expensive than Kimi K2.5. Whether that premium is worth it depends on your use case. For my use case (mostly code + simple reasoning), Kimi is plenty good and saves me a ton.


The "Hidden" Reasons US Devs Weren't Using Chinese Models

I gotta be honest here, the technical reasons are obvious. Let me just list out the barriers that existed before Global API existed:

  1. Payment — Chinese platforms wanted WeChat or Alipay. If you don't have a Chinese bank account, you're locked out. Period.

  2. Registration — Chinese phone number required for SMS verification. I literally cannot get one. You probably can't either.

  3. API format differences — Some Chinese providers used their own API formats. You couldn't just swap code over.

  4. Geo-restrictions — Sometimes the APIs just wouldn't work from certain IP ranges.

  5. Documentation — Mostly in Chinese. Machine translation gets you 80% there but the last 20% is rough.

  6. Support — If something breaks, you're dealing with Chinese-language support tickets across a 12-hour time difference.

  7. Currency — Billed in CNY, which adds conversion hassle.

Global API solved ALL of these for me. I get a normal email signup, I pay with PayPal (or regular Visa), I get English documentation, the API is OpenAI-format, support speaks English, billing is in USD. Honestly, I cannot overstate how much friction this removed. It went from "technically possible but a nightmare" to "literally 5 minutes to set up."

Top comments (0)