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

推荐订阅源

Blog — PlanetScale
Blog — PlanetScale
SecWiki News
SecWiki News
Google DeepMind News
Google DeepMind News
WordPress大学
WordPress大学
小众软件
小众软件
C
CERT Recently Published Vulnerability Notes
Jina AI
Jina AI
N
Netflix TechBlog - Medium
GbyAI
GbyAI
IT之家
IT之家
Apple Machine Learning Research
Apple Machine Learning Research
AWS News Blog
AWS News Blog
G
GRAHAM CLULEY
L
Lohrmann on Cybersecurity
C
Cybersecurity and Infrastructure Security Agency CISA
I
Intezer
T
Tor Project blog
P
Palo Alto Networks Blog
P
Privacy & Cybersecurity Law Blog
P
Privacy International News Feed
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
P
Proofpoint News Feed
T
Tailwind CSS Blog
C
Check Point Blog
Cloudbric
Cloudbric
Y
Y Combinator Blog
The Last Watchdog
The Last Watchdog
Forbes - Security
Forbes - Security
Last Week in AI
Last Week in AI
S
Security Affairs
博客园 - Franky
F
Fortinet All Blogs
量子位
M
MIT News - Artificial intelligence
C
Cisco Blogs
酷 壳 – CoolShell
酷 壳 – CoolShell
Stack Overflow Blog
Stack Overflow Blog
S
Secure Thoughts
V
Visual Studio Blog
AI
AI
美团技术团队
B
Blog RSS Feed
Application and Cybersecurity Blog
Application and Cybersecurity Blog
博客园 - 三生石上(FineUI控件)
阮一峰的网络日志
阮一峰的网络日志
Engineering at Meta
Engineering at Meta
人人都是产品经理
人人都是产品经理
Microsoft Security Blog
Microsoft Security Blog
T
Threatpost
Cyberwarzone
Cyberwarzone

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
How to Access 50+ Chinese AI Models Through One API
Mattias chaw · 2026-06-19 · via DEV Community

How to Access 50+ Chinese AI Models Through One API

The Chinese AI ecosystem exploded in 2025-2026. DeepSeek dropped training costs by an order of magnitude. Qwen 3 ships 19 variants from 0.6B to 235B parameters. GLM-5 competes head-to-head with GPT-5 at 3% of the price. There's Kylin, Yi-Lightning, Hunyuan-T1, MiniMax-M1, Step-2-16K, and 40+ more models from a dozen labs.

The models are incredible. The fragmentation is not.

Every lab has its own API. Different auth headers. Different response formats. Different streaming protocols. Different error codes. If you wanted to try 5 models from 5 Chinese labs last year, you'd need 5 SDKs and 5 billing dashboards. Nobody has time for that.

This is exactly the problem AIWave was built to solve.

One API Key. 50+ Models. Zero Code Changes.

AIWave is a unified API gateway that aggregates 50+ Chinese AI models behind a single endpoint. It speaks the OpenAI API format, which means every existing tool, SDK, and codebase in your stack works without modification.

Here's what that looks like in practice:

from openai import OpenAI

# Point to AIWave instead of OpenAI
client = OpenAI(
    base_url="https://api.aiwave.live/v1",
    api_key="sk-your-aiwave-key"
)

# Use DeepSeek V4 Pro
response = client.chat.completions.create(
    model="deepseek-v4-pro",
    messages=[{"role": "user", "content": "Explain MoE architecture"}]
)

# Switch to GLM-5 — change one string
response = client.chat.completions.create(
    model="glm-5",
    messages=[{"role": "user", "content": "Explain MoE architecture"}]
)

# Try Qwen 3 235B — same thing
response = client.chat.completions.create(
    model="qwen3-235b",
    messages=[{"role": "user", "content": "Explain MoE architecture"}]
)

That's it. Whatever you're already using — the OpenAI Python SDK, LangChain, LlamaIndex, Vercel AI SDK, a custom fetch wrapper — continues to work. You change the base URL and the model name, and suddenly you have access to 50+ Chinese models.

What Models Are Available?

Here's a snapshot of the major models available through AIWave as of June 2026:

Lab Model Parameters Strengths
DeepSeek V4 Pro ~685B (37B active, MoE) Reasoning, code, math
DeepSeek V4 Lite ~285B (16B active, MoE) General chat, cost efficiency
Zhipu GLM-5 ~400B Chinese+English bilingual, long context
Zhipu GLM-5-Flash ~400B Speed-optimized GLM-5
Alibaba Qwen 3 235B 235B Multilingual, RAG, tool use
Alibaba Qwen 3 32B 32B Edge deployment, fast inference
MiniMax M1 ~450B (MoE) Creative writing, long-form
StepFun Step-2-16K ~1T (MoE) Ultra-large context, research
Tencent Hunyuan-T1 ~300B (MoE) Enterprise, structured output
Baidu ERNIE 4.5 ~260B Search integration, knowledge
01.AI Yi-Lightning ~200B Low latency, multilingual
Kylin AI Kylin-70B 70B Dense model, consistent quality
BAAI AquilaChat-3 70B Open-source, academic

And that's just the flagships. AIWave also serves specialized models — embedding models for RAG, vision models for multimodal tasks, code-specific fine-tunes, and audio models for speech-to-text.

Why This Architecture Matters

Having a unified API for Chinese models isn't just convenient. It enables fundamental patterns that are impossible with fragmented APIs.

Pattern 1: Model A/B Testing

Want to know whether DeepSeek V4 Pro or GLM-5 is better for your customer support pipeline? Run both side-by-side on the same prompts:

models = ["deepseek-v4-pro", "glm-5", "qwen3-235b"]
results = {}

for model in models:
    response = client.chat.completions.create(
        model=model,
        messages=[{"role": "user", "content": customer_query}]
    )
    results[model] = response.choices[0].message.content

With separate APIs, this requires three SDKs and three billing accounts. With AIWave, it's a three-line loop.

Pattern 2: Intelligent Fallback

Chinese AI labs sometimes have capacity issues when traffic spikes. A model that's normally sub-200ms can spike to 2+ seconds during a launch event. With a unified API, you can implement automatic fallback:

def smart_request(prompt, primary="deepseek-v4-pro", fallbacks=None):
    if fallbacks is None:
        fallbacks = ["glm-5", "qwen3-235b", "deepseek-v4-lite"]

    models_to_try = [primary] + [m for m in fallbacks if m != primary]

    for model in models_to_try:
        try:
            response = client.chat.completions.create(
                model=model,
                messages=[{"role": "user", "content": prompt}],
                timeout=15
            )
            return response.choices[0].message.content, model
        except Exception:
            continue

    raise Exception("All models failed")

Pattern 3: Cost-Optimized Routing

Not every request needs DeepSeek V4 Pro. Simple classification tasks, formatting jobs, and basic Q&A can run on cheaper models:

def classify_ticket(text):
    # Simple classification — use the cheapest capable model
    response = client.chat.completions.create(
        model="qwen3-32b",  # ~$0.07/M tokens
        messages=[{
            "role": "system",
            "content": "Classify: billing, technical, or general. Reply with one word."
        }, {
            "role": "user",
            "content": text
        }]
    )
    return response.choices[0].message.content

def handle_technical_issue(text):
    # Complex reasoning — use the best model
    response = client.chat.completions.create(
        model="deepseek-v4-pro",  # ~$0.14/M tokens
        messages=[{
            "role": "system",
            "content": "You are a senior DevOps engineer. Diagnose and fix."
        }, {
            "role": "user",
            "content": text
        }]
    )
    return response.choices[0].message.content

This routing strategy alone can cut API costs by 60-70% compared to sending everything to the most expensive model.

Streaming, Function Calling, and Vision

The AIWave API supports the full OpenAI feature set across most models:

Streaming — token-by-token output for real-time UX:

stream = client.chat.completions.create(
    model="deepseek-v4-pro",
    messages=[{"role": "user", "content": "Write a haiku about GPUs"}],
    stream=True
)
for chunk in stream:
    if chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="")

Function Calling — structured tool use with JSON schema:

tools = [{
    "type": "function",
    "function": {
        "name": "get_weather",
        "description": "Get current weather",
        "parameters": {
            "type": "object",
            "properties": {
                "city": {"type": "string"},
                "unit": {"type": "string", "enum": ["celsius", "fahrenheit"]}
            },
            "required": ["city"]
        }
    }
}]

response = client.chat.completions.create(
    model="qwen3-235b",
    messages=[{"role": "user", "content": "What's the weather in Berlin?"}],
    tools=tools
)

Vision — image understanding with multimodal models:

response = client.chat.completions.create(
    model="qwen3-vl-235b",
    messages=[{
        "role": "user",
        "content": [
            {"type": "text", "text": "What's in this image?"},
            {"type": "image_url", "image_url": {"url": "https://example.com/photo.jpg"}}
        ]
    }]
)

The Cost Comparison

Here's what you'd pay per million input tokens across different providers as of June 2026:

Provider Model Input ($/1M tokens) Output ($/1M tokens)
OpenAI GPT-4o $2.50 $10.00
OpenAI GPT-5 $3.75 $15.00
Anthropic Claude 4 Sonnet $3.00 $15.00
Google Gemini 2.5 Pro $2.50 $10.00
DeepSeek V4 Pro $0.14 $0.55
Zhipu GLM-5 $0.11 $0.44
Alibaba Qwen 3 235B $0.14 $0.56
01.AI Yi-Lightning $0.10 $0.40
Tencent Hunyuan-T1 $0.08 $0.32

Chinese models are 15-30x cheaper on input and 18-30x cheaper on output. The unified API layer doesn't add markup — AIWave passes through the underlying model costs directly.

Getting Started in 3 Steps

Step 1: Get an API key

Sign up at aiwave.live, grab your key from the dashboard. It's free to start — you get credits to test any model.

Step 2: Install the OpenAI SDK (if you don't already have it)

pip install openai

Step 3: Write 4 lines of code

from openai import OpenAI

client = OpenAI(
    base_url="https://api.aiwave.live/v1",
    api_key="sk-your-key-here"
)

response = client.chat.completions.create(
    model="deepseek-v4-pro",
    messages=[{"role": "user", "content": "Hello from AIWave!"}]
)

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

That's it. You now have access to 50+ Chinese AI models through a single API key, using the same client code you've been writing for years.

What's Under the Hood

AIWave handles the messy parts so you don't have to:

  • Auth normalization — Different labs use different authentication schemes (Bearer tokens, signed requests, HMAC signatures). AIWave normalizes everything to a single API key.
  • Response standardization — Every model's output is mapped to the OpenAI chat completion format, including token counts, finish reasons, and logprobs where available.
  • Streaming translation — Server-sent events (SSE) from different providers are normalized so your OpenAI streaming code works unchanged.
  • Load balancing — AIWave distributes traffic across provider instances, handles rate limits transparently, and retries on transient failures.
  • Monitoring — The dashboard shows per-model usage, costs, latency percentiles, and error rates so you can track spend across all 50 models.

All of this happens transparently. From your application's perspective, it's just calling an OpenAI-compatible endpoint.

When Should You Use Chinese Models?

The honest answer: not for everything. Here's a decision framework:

Use Chinese models when:

  • Cost is a significant factor (it always is at scale)
  • You need high throughput (Chinese labs serve billions of tokens/day)
  • Your use case involves Chinese language content (GLM-5 and Qwen 3 are genuinely better at Chinese than any Western model)
  • You're running batch jobs, evaluations, or data processing at volume
  • You want to compare model outputs across providers without managing multiple APIs

Stick with GPT-5 or Claude when:

  • You need the absolute cutting edge on a novel reasoning benchmark
  • You're heavily invested in OpenAI-specific features like Structured Outputs with strict mode
  • Your compliance requirements demand US-based infrastructure exclusively

For most production workloads — chatbots, RAG pipelines, code generation, content moderation, summarization, extraction — Chinese models deliver identical or better quality at 5-10% of the cost.

The Bigger Picture

The API economy is fragmenting. Every major lab wants to own the developer relationship. They want you on their platform, using their SDK, locked into their ecosystem.

AIWave takes the opposite approach. It's a thin translation layer that gives you access to everything without committing to anything. Use DeepSeek for reasoning, GLM for long-form writing, Qwen for vision, Yi for latency-sensitive tasks — all through one integration, one bill, one dashboard.

The Chinese AI model ecosystem is moving too fast to bet on a single lab. Six months ago, DeepSeek V3 was state-of-the-art. Now V4 Pro is here. Three months from now, something else will be. The smart move isn't picking a winner — it's building infrastructure that doesn't care which model wins.


AIWave provides unified API access to 50+ AI models from China's top labs. Get started at aiwave.live with free trial credits.