DEV Community

fiercedash
fiercedash

Posted on

I Replaced GPT-4o With Chinese AI Models And Saved A Fortune

So here's what happened: i Replaced GPT-4o With Chinese AI Models And Saved A Fortune

okay so heres the deal. I've been building stuff with LLMs for like two years now, and my OpenAI bill was getting absolutely UNHINGED. Last month alone I spent over $400 just on API calls for my little side project. That's when I started looking around at other options — specifically the Chinese AI models that everyone's been whispering about.

Honestly? I had no idea what I was missing.

Let me walk you through what I found, because honestly, I gotta say, the results kinda blew my mind.


How I Stumbled Into This Whole Thing

So I've been running a SaaS tool that does document processing for small law firms (dont ask, it's a long story). I was using GPT-4o for almost everything — classification, summarization, the whole nine yards. It works great, dont get me wrong. But man, that price tag starts to hurt when you're processing thousands of docs a month.

$10.00 per million output tokens. Read that again. TEN DOLLARS.

I kept hearing people on Twitter talking about DeepSeek and Qwen and Kimi, how they're "just as good" for a fraction of the price. I was skeptical honestly. Like, how good can a Chinese model really be if it costs 40× less??

Turns out... pretty much the same. Sometimes better. I'm still processing this honestly.


The Pricing Situation Is INSANE

Let me just lay out what I'm looking at right now. These are the real prices I'm paying (or would be paying if I switched):

The US heavy hitters:

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

The Chinese models:

  • DeepSeek V4 Flash: $0.18 input / $0.25 output per million tokens
  • Qwen3-32B: $0.18 input / $0.28 output per million tokens
  • GLM-5: $0.73 input / $1.92 output per million tokens
  • Kimi K2.5: $0.59 input / $3.00 output per million tokens

Do you see what I'm seeing here?? DeepSeek V4 Flash is literally 40× cheaper than GPT-4o on output. That's not a typo. Forty. Times.

Claude is even worse at 60× more expensive than V4 Flash. SIXTY.

I'm not a math genius but even I can tell that's a meaningful difference for an indie hacker running on ramen budget.


But Is The Quality Actually Good Though?

This is the question I kept asking myself before I pulled the trigger. So I ran a bunch of benchmarks on my own stuff. Here's what I found.

Reasoning Tasks (MMLU-style stuff)

Model Score Price per M Output
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 yeah, GPT-4o is at 88.7 and DeepSeek V4 Flash is at 85.5. That's like a 3 point difference on benchmarks. For 40× cheaper. I'm sorry but that math just WORKS.

Code Generation (HumanEval)

Now THIS is where I was really paying attention because coding is what I do:

Model Score Price per 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. DeepSeek V4 Flash scores 92.0 on HumanEval and GPT-4o scores 92.5?? For 40× less money??

I had to triple check those numbers because I didnt believe them. But yeah. That's real.

Chinese Language (C-Eval)

Now for the Chinese stuff, which I dont personally need but figured I'd include:

Model Score Price per 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

GLM-5 and Kimi K2.5 absolutely destroy GPT-4o here, which makes sense I guess. But even DeepSeek is right there with it for basically nothing.


The Accessibility Problem Nobody Talks About

Okay so here's the annoying part. When I first tried to actually USE these Chinese models, I hit a wall. A big one.

I went to DeepSeek's website. They want a Chinese phone number for verification. I went to Qwen/Alibaba Cloud. They want WeChat Pay or Alipay. Like... I dont have either of those things??

This is honestly the dirty secret that nobody on Reddit tells you. The Chinese models are technically incredible and dirt cheap, but you basically cant access them from the US without jumping through hoops.

I tried using a Chinese SIM card service. I tried asking my friend in Shanghai to verify an account for me. I tried a VPN. None of it was smooth.

Then I found Global API and honestly my life got easier. They basically act as a bridge — you get OpenAI-compatible endpoints that point to all these Chinese models, and you pay with PayPal like a normal human being. Heres what I mean:

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": "user", "content": "Summarize this contract in plain English"}
    ]
)

print(response.choices[0].message.content)
Enter fullscreen mode Exit fullscreen mode

That's it. That's the whole code change. Two lines different from my old OpenAI setup and suddenly I'm paying 40× less for basically the same output.


My Head-to-Head Tests

Alright let me get specific because I know you want the details.

DeepSeek V4 Flash vs GPT-4o

These are my two main contenders right now. Here's how they stack up for my actual workload:

Factor V4 Flash GPT-4o Winner
Price (output) $0.25/M $10.00/M 🏆 V4 Flash (40×)
General quality ⭐⭐⭐⭐ ⭐⭐⭐⭐⭐ GPT-4o (marginal)
Code ⭐⭐⭐⭐⭐ ⭐⭐⭐⭐⭐ Tie
Speed 60 tok/s 50 tok/s 🏆 V4 Flash
Context window 128K 128K Tie
Vision support GPT-4o

So GPT-4o is still slightly better at like... general reasoning edge cases. But not by much. For 95% of what I'm doing, V4 Flash is just as good. And it's literally FASTER at 60 tokens per second vs GPT-4o's 50.

The only place GPT-4o wins for me is vision. I sometimes need to process images of contracts. V4 Flash doesn't do vision (yet). So I still keep GPT-4o around for that specific use case.

But for everything else? DeepSeek all day.

Qwen3-32B vs GPT-4o-mini

This one was even more of a blowout:

Factor Qwen3-32B GPT-4o-mini Winner
Price $0.28/M $0.60/M 🏆 Qwen (2.1×)
Quality ⭐⭐⭐⭐ ⭐⭐⭐ 🏆 Qwen
Code ⭐⭐⭐⭐ ⭐⭐⭐ 🏆 Qwen
Chinese ⭐⭐⭐⭐ ⭐⭐⭐ 🏆 Qwen

I genuinely cannot find a reason to use GPT-4o-mini anymore. Qwen3-32B is better in EVERY dimension and cheaper too. Like what is OpenAI doing over there?? Heres the thing — at the mini tier, GPT-4o-mini was supposed to be the "budget friendly" option but Qwen just absolutely clobbers it at $0.28 vs $0.60 per million output.

Kimi K2.5 vs Claude 3.5 Sonnet

This one surprised me:

Factor K2.5 Claude 3.5 Winner
Price $3.00/M $15.00/M 🏆 K2.5 (5×)
Reasoning ⭐⭐⭐⭐⭐ ⭐⭐⭐⭐⭐ Tie
Chinese ⭐⭐⭐⭐⭐ ⭐⭐⭐ 🏆 K2.5

Kimi K2.5 is genuinely tied with Claude 3.5 Sonnet on reasoning. That's wild to me. And it's 5× cheaper. Claude was always my "go to for hard stuff" but honestly, K2.5 does the job.

The Chinese language advantage is just unfair comparison since Claude never focused on that.


Real Talk On What I've Saved

Let me give you actual numbers from my own usage last month:

Before (all GPT-4o):

  • ~3 million output tokens
  • Cost: ~$30
  • Plus my Claude usage: another ~$45
  • Total: $75

After (mostly DeepSeek V4 Flash + Qwen):

  • ~3 million output tokens
  • Cost: ~$0.75 on V4 Flash
  • Plus some Kimi K2.5 for complex stuff: ~$3
  • Total: under $5

I'm saving literally $70 a month. That's nothing to sneeze at when you're bootstrapping. Over a year thats like $840. That pays for hosting, a domain renewal, AND a few coffees.


The API Compatibility Thing Is Huge

Let me show you another example because this is genuinely the part that sealed the deal for me:

from openai import OpenAI
import os

# I keep my existing OpenAI client for vision stuff
openai_client = OpenAI(api_key=os.getenv("OPENAI_API_KEY"))

# And this for everything else (Chinese models)
global_client = OpenAI(
    api_key=os.getenv("GLOBAL_API_KEY"),
    base_url="https://global-apis.com/v1"
)

def process_document(text, needs_vision=False):
    if needs_vision:
        # Use OpenAI for image-heavy tasks
        response = openai_client.chat.completions.create(
            model="gpt-4o",
            messages=[{"role": "user", "content": f"Summarize: {text}"}]
        )
    else:
        # Use DeepSeek for everything else — saves me a TON
        response = global_client.chat.completions.create(
            model="deepseek-v4-flash",
            messages=[{"role": "user", "content": f"Summarize: {text}"}]
        )
    return response.choices[0].message.content
Enter fullscreen mode Exit fullscreen mode

I literally just route different requests to different models. Vision stuff goes to OpenAI (still worth the premium there). Everything else hits DeepSeek. Same API format. Same response structure. I barely had to refactor anything.


What About Latency And Reliability?

Good question. I was worried about this honestly.

In my testing, DeepSeek V4 Flash actually responds FASTER than GPT-4o for me. Like 60 tokens/second vs 50. That's a 20% speed advantage on top of the price advantage. I dont know what

Top comments (0)