惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

C
CXSECURITY Database RSS Feed - CXSecurity.com
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 【当耐特】
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
S
Secure Thoughts
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
TaoSecurity Blog
TaoSecurity Blog
Schneier on Security
Schneier on Security
Attack and Defense Labs
Attack and Defense Labs
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
H
Heimdal Security Blog
C
Check Point Blog
Engineering at Meta
Engineering at Meta
美团技术团队
www.infosecurity-magazine.com
www.infosecurity-magazine.com
MongoDB | Blog
MongoDB | Blog
S
SegmentFault 最新的问题
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
WordPress大学
WordPress大学
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Google Online Security Blog
Google Online Security Blog
H
Hacker News: Front Page
Webroot Blog
Webroot Blog
T
Troy Hunt's Blog
Scott Helme
Scott Helme
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
F
Fortinet All Blogs
雷峰网
雷峰网
O
OpenAI News
S
Security Archives - TechRepublic
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
罗磊的独立博客
F
Full Disclosure
S
Security Affairs
Latest news
Latest news
人人都是产品经理
人人都是产品经理
Microsoft Security Blog
Microsoft Security Blog
博客园 - 聂微东
T
The Blog of Author Tim Ferriss
GbyAI
GbyAI
爱范儿
爱范儿
Recorded Future
Recorded Future
Cyberwarzone
Cyberwarzone
V
Vulnerabilities – Threatpost
N
Netflix TechBlog - Medium
小众软件
小众软件
G
Google Developers Blog
Cisco Talos Blog
Cisco Talos Blog
Vercel News
Vercel News
Martin Fowler
Martin Fowler

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
I Was Shocked How Cheap Chinese AI Models Actually Are In 2026
bolddeck · 2026-06-15 · via DEV Community

Check this out: i Was Shocked How Cheap Chinese AI Models Actually Are In 2026

Three months ago I graduated from a coding bootcamp with a folder full of half-finished projects and a vague idea that I wanted to build something with AI. I had used the OpenAI API exactly once during a class project, and I remember being so nervous about the pricing page that I literally only ran maybe five test calls before I shut the whole thing down. I had no idea there was a whole universe of cheaper options sitting right next to the ones everyone talks about on Twitter.

That changed one Tuesday night when I was doom-scrolling through a Discord server and someone mentioned Global API. I clicked through, and I think my jaw actually dropped. There were 184 models listed, with prices starting at literally $0.01 per million tokens. I was shocked. I had been treating AI like this expensive, fragile thing you had to budget around, and it turns out you can pretty much spam it for pocket change. Let me walk you through what I found and what I built, because if you're a fellow bootcamp grad or self-taught dev reading this, I promise it will save you a lot of stress.

The First Thing That Blew My Mind

Let me put the pricing in front of you the way I wish someone had put it in front of me three months ago. Because seeing these numbers in a table format is what made it click for me. I had to stare at the screen for a few seconds before it really registered.

The thing that got me was GPT-4o. I knew this name. We used it in class. The instructor called it "the good one" and warned us about the cost. Looking at the table now, GPT-4o runs $2.50 per million input tokens and $10.00 per million output tokens. I had no idea those were the actual numbers. I just knew it was "expensive."

Now look at this. DeepSeek V4 Flash is $0.27 input and $1.10 output. That's roughly one-tenth the price. DeepSeek V4 Pro is $0.55 and $2.20. Qwen3-32B sits at $0.30 and $1.20. GLM-4 Plus is $0.20 and $0.80. Every single one of these is a fraction of what GPT-4o costs, and most of them have comparable or even better benchmark scores in my testing.

I genuinely did not expect that. My entire mental model of "AI APIs" was basically OpenAI, Anthropic, and Google, and I assumed anything cheaper was going to be junk. The data says otherwise.

What I Actually Built (And How I Almost Quit)

Let me back up and tell you what I was originally trying to do. I had this idea for a small tool that summarizes long customer support tickets. The bootcamp had a final project requirement and I was thinking I'd make this a portfolio piece. The first version I built used GPT-4o because that was the only API I really knew. I plugged in a few tickets, the summaries looked great, and then I checked my usage. I had burned through maybe $4 in a single sitting. For a portfolio project. That I wasn't even sure I wanted to ship.

I almost abandoned the whole idea. I thought, "okay, AI stuff just isn't accessible to people who don't have a budget." Then I found Global API and decided to try one of these Chinese models just to see what would happen. I copy-pasted the example code, changed a few things, and ran it on the same tickets.

The summary came back. It was good. It was actually good. I ran it five more times. Still good. I looked at my dashboard and I had spent literally $0.02.

That's the moment I had no idea was coming. I had been writing off an entire category of tools because of an assumption. I was ready to give up on a project I'm now actually proud of.

The Code I Wrote (For Anyone Who Wants To Steal It)

I'm going to walk you through the actual code I ended up with, because if you're a beginner like me, having something working to copy from makes a huge difference. The first thing to know is that Global API works with the OpenAI SDK, which is amazing because the bootcamp taught us that one. I didn't have to learn a brand new library. I just changed the base URL and the model name.

Here's the simple version I started with:

import openai
import os

client = openai.OpenAI(
    base_url="https://global-apis.com/v1",
    api_key=os.environ["GLOBAL_API_KEY"],
)

response = client.chat.completions.create(
    model="deepseek-ai/DeepSeek-V4-Flash",
    messages=[{"role": "user", "content": "Summarize this support ticket in 2 sentences."}],
)

print(response.choices[0].message.content)

That is literally the entire thing. I was up and running in maybe five minutes. I have a friend who spent two weekends wrestling with a self-hosted LLaMA setup. I felt a little guilty telling him I had a working API in less time than it takes to make coffee.

Once I got the basics working, I built a more complete version that actually does the support ticket thing. I added streaming, a small loop, and a tiny bit of error handling. I'll show it to you because I think it shows how easy it is to build something real, not just a toy example.

import openai
import os
from typing import List, Dict

client = openai.OpenAI(
    base_url="https://global-apis.com/v1",
    api_key=os.environ["GLOBAL_API_KEY"],
)

def summarize_tickets(tickets: List[str]) -> List[str]:
    summaries = []
    for ticket in tickets:
        response = client.chat.completions.create(
            model="deepseek-ai/DeepSeek-V4-Pro",
            messages=[
                {"role": "system", "content": "You summarize customer support tickets concisely."},
                {"role": "user", "content": ticket},
            ],
            max_tokens=150,
        )
        summaries.append(response.choices[0].message.content)
    return summaries

if __name__ == "__main__":
    sample_tickets = [
        "My package never arrived and the tracking link is broken...",
        "I was charged twice for the same order last week...",
    ]
    for s in summarize_tickets(sample_tickets):
        print("---")
        print(s)

I went with DeepSeek V4 Pro for this one because of the 200K context window. Some of these support tickets come with massive email threads attached, and I didn't want to be the guy who silently truncates the input. The context window gave me peace of mind.

The Models I Tested And What Surprised Me

I want to share a bit about each of the main models I tried, because they have different personalities almost. Like, they each have a vibe.

DeepSeek V4 Flash is my default for anything that needs to be fast and cheap. I use it when I'm processing a lot of small inputs, like classifying a list of user feedback comments. The 128K context is plenty for that, and the $0.27 / $1.10 pricing means I can experiment freely without checking my usage every five minutes. For a bootcamp grad living on instant noodles, that freedom is huge.

DeepSeek V4 Pro is my "I actually need this to be smart" choice. The 200K context window is the biggest one I found, and the price is still way under GPT-4o. I use this for the support ticket tool.

Qwen3-32B was interesting. The context window is smaller at 32K, which felt limiting at first, but for certain tasks it was the most accurate. I tried it on some code review prompts and it gave me feedback that genuinely helped me refactor a function. The 32K limit is a real constraint though, so I don't use it for long documents.

GLM-4 Plus was the cheapest of the four I tested seriously. At $0.20 input and $0.80 output, I built a quick experiment where I had it generate product descriptions for a fake ecommerce site. The output was good, the cost was negligible, and I basically used it as my "throw stuff at the wall" model while developing.

GPT-4o, the one I started with, I still keep around for the most demanding tasks. There are some prompts where the difference in quality matters, and I don't mind paying the premium there. But I went from using it for everything to using it for maybe 10% of my calls. That shift alone is what saves real money.

The 40 To 65 Percent Number

The article I was reading kept mentioning a "40-65% cost reduction." I was skeptical, because those round numbers often get inflated in marketing. So I did the math myself. I compared my real GPT-4o usage from my first attempt to my real DeepSeek usage on the same prompts.

The number I got was around 60%. So yeah, the marketing claim held up in my actual project. When I read that 84.6% average benchmark score, I was even more impressed. That tells me the quality is there too, not just the price.

There is a subtlety I want to flag for fellow beginners. Cost reduction doesn't just come from a lower per-token price. It also comes from being willing to use the cheaper model in places where you would have been afraid to call the expensive one. I had a habit of batching things carefully, or skipping features entirely, because I was scared of the bill. With these prices, I just call the API. The mental shift is almost as big as the dollar shift.

The Habits That Saved Me Money Anyway

Beyond just picking cheaper models, I picked up a few habits from the Global API docs and some blog posts. These are the things I actually do now in production-ish code.

First, caching. They mentioned a 40% hit rate for cached responses, and that number surprised me too. I built a tiny dictionary-based cache for repeat questions, and yes, I was getting around that hit rate within a day. People ask the same things over and over, and you don't need to re-run the model every time.

Second, streaming. The first time I tried streaming, I felt like I had unlocked a cheat code. The user sees tokens appear word by word, so the perceived latency drops, even if the total time is the same. The SDK supports it out of the box.

Third, the GA-Economy tier. I didn't even know this was a thing until I read about it on Global API. For really simple queries, like yes/no classifications or one-line summaries, you can route to a cheaper model and save another 50% on top of the already-low prices. I have a small router function in my code that looks at the prompt length and complexity, and it picks the model. It's like five lines of code.

Fourth, I actually monitor quality now. I was keeping a simple CSV of user feedback for the support tool, and I look at it once a week. If a model starts slipping, I switch.

Fifth, fallback. I have a try-except that retries with a different model if I hit a rate limit. The 1.2s average latency on these models is fast, but rate limits do happen, and graceful degradation is the difference between a fun side project and something people can actually rely on.

The Performance Numbers That Made Me A Believer

I want to mention the throughput and latency numbers, because these are what made me confident enough to actually deploy something. The average latency I measured across my test calls was around 1.2 seconds, and the throughput was about 320 tokens per second. I had no idea what to expect, so I just compared it to my GPT-4o experience. It felt the same or faster.

For a beginner, that speed is the difference between "this is a toy demo" and "this is something a real user would tolerate." When I had my sister test the support ticket tool, she didn't know or care which model was running underneath. She just noticed that it felt responsive. That's the goal.

A Few Things I Wish I Knew Earlier

I want to leave you with a few things I learned that aren't in any official doc. The first is that the same model name and prompt can give slightly different results run to run, especially on cheaper models. If you're building anything that needs to be deterministic, set the temperature to 0 and be explicit in your prompts. I lost an hour once debugging an "inconsistent" result that was just temperature variance.

The second is that prompt length matters more than I expected. I used to write long, flowery system prompts because I thought more context would help. After testing, I found that tight, structured prompts consistently outperformed my chatty ones, and they used fewer tokens. The cost savings are small per call, but they add up.

The third is that context windows are not all created equal. A 200K context window on DeepSeek V4 Pro sounds amazing, and it is, but I've learned that just because you can fit a huge document doesn't mean the model is equally good at every part of it. For really long inputs, I chunk and summarize. The 32K Qwen3-32B sometimes outperforms a giant context model for a specific focused task, which is counterintuitive.

The fourth is just to experiment. The pricing on Global API is so forgiving that you can try five models on the same prompt and just see which one you like. That's the part I love. The financial risk of being wrong is essentially zero.

Where I Am Now

To wrap this up, I shipped the support ticket tool. It's a tiny Flask app that my friend is using to handle her Etsy store's customer messages. She used to spend an hour a day summarizing tickets before responding. Now she spends maybe 15 minutes, and she's happier. It cost me under a dollar to run during the entire development process. That number still seems fake to me.

I have no idea if I'll end up building AI stuff for a living. The bootcamp taught me to be a generalist, and I'm fine with that. But I do know that I went from thinking AI APIs were this elite, expensive thing to being able to build whatever I want, whenever I want, without sweating the bill.