You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
VSCode + ZooCode Tutorial: Connect Chinese AI Models (DeepSeek, Qwen, GLM) to Your Editor
#23
If you're a developer looking to integrate Chinese AI models into your VSCode workflow, ZooCode is the bridge you need. It's a VSCode extension that turns any OpenAI-compatible API endpoint into a full-featured coding assistant — chat, inline completions, and code generation — right inside your editor.
This guide walks you through connecting ZooCode to AIWave, an OpenAI-compatible API gateway that provides access to 48 Chinese AI models through a single endpoint. No multiple accounts, no separate SDK installations.
Why ZooCode?
GitHub Copilot locks you into OpenAI's models. Cursor uses Claude by default. ZooCode lets you pick any model from any vendor — and switch between them per-task. This matters because:
No single model is best at everything
Model quality changes monthly — the leader today may not be the leader next quarter
Cost varies dramatically between models
You might want Chinese models for Chinese codebases, Western models for English documentation
ZooCode decouples your editor from your model vendor. You get the best tool for each job.
Why Chinese AI Models for Coding?
Cost efficiency. DeepSeek V4 Flash costs $0.21/$0.41 per million tokens (input/output) — roughly 10× cheaper than GPT-4o ($2.50/$10.00) while scoring 89.2% on HumanEval versus GPT-4o's 90.2%. The gap is negligible; the savings are not.
Massive context windows. DeepSeek V4 Flash supports 1M token context. DeepSeek V4 Pro also supports 1M. You can paste entire codebases into context.
Strong coding benchmarks. Qwen3 Coder (480B MoE) hits 88.4% on HumanEval. GLM-5.1 from Zhipu scores 87.0%.
Prerequisites
VSCode (latest stable)
ZooCode extension — install from the VSCode Extensions Marketplace (search "ZooCode")
AIWave account — sign up here (new accounts get $1 free credit)
Your API key — found in the AIWave dashboard after login
Cost Comparison: How Much Will You Actually Spend?
Let's estimate a typical workday:
Task
Tokens (avg)
Model
Cost per task
Chat question
2K in / 1K out
DeepSeek V4 Flash
~$0.0001
Code generation
5K in / 2K out
Qwen3 Coder
~$0.0002
Code review
10K in / 3K out
DeepSeek V4 Flash
~$0.0003
Documentation
8K in / 4K out
DeepSeek V4 Flash
~$0.0003
Daily total (50 interactions): ~$0.015 — roughly $0.45/month for a full-time developer. Compare that to GitHub Copilot at $10/month or Claude Pro at $20/month.
Troubleshooting
"API key not recognized": Double-check you're using your AIWave key. The Base URL must be exactly https://aiwave.live/v1.
"Model not found": The model ID must match AIWave's catalog exactly. Use deepseek-v4-flash, not deepseek-v4-flash-2025-06-01.
Slow responses: Chinese models are served from Singapore. If you're in Europe or the Americas, expect 200-500ms added latency. For latency-sensitive work, consider using the low-cost GLM-4.7 FlashXX for quick tasks.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
If you're a developer looking to integrate Chinese AI models into your VSCode workflow, ZooCode is the bridge you need. It's a VSCode extension that turns any OpenAI-compatible API endpoint into a full-featured coding assistant — chat, inline completions, and code generation — right inside your editor.
This guide walks you through connecting ZooCode to AIWave, an OpenAI-compatible API gateway that provides access to 48 Chinese AI models through a single endpoint. No multiple accounts, no separate SDK installations.
Why ZooCode?
GitHub Copilot locks you into OpenAI's models. Cursor uses Claude by default. ZooCode lets you pick any model from any vendor — and switch between them per-task. This matters because:
ZooCode decouples your editor from your model vendor. You get the best tool for each job.
Why Chinese AI Models for Coding?
Prerequisites
Step 1: Get Your AIWave API Key
https://aiwave.live/v1This Base URL is critical. ZooCode needs it to route requests through AIWave's OpenAI-compatible proxy.
Step 2: Configure ZooCode in VSCode
Open VSCode and launch ZooCode:
Ctrl+Shift+P(Windows/Linux) orCmd+Shift+P(macOS)ZooCode: Open SettingsEnter the following values:
Alternatively, if ZooCode supports JSON configuration, edit your settings file directly:
{ "zoocode.provider": "openai-compatible", "zoocode.baseURL": "https://aiwave.live/v1", "zoocode.apiKey": "sk-your-aiwave-key-here", "zoocode.defaultModel": "deepseek-v4-flash", "zoocode.codeModel": "qwen3-coder-480b-a35b-instruct", "zoocode.maxTokens": 8192, "zoocode.temperature": 0.3, "zoocode.enableInlineCompletions": true, "zoocode.enableChat": true }Step 3: Model Selection Strategy
Not all models are equal for all tasks. Here's the setup that works best:
Default Model: DeepSeek V4 Flash
deepseek-v4-flashCode Model: Qwen3 Coder 480B
qwen3-coder-480b-a35b-instructLow-Cost Fallback: GLM-4.7 FlashX
glm-4.7-flashxStep 4: Testing Your Setup
Create a test file:
Open the ZooCode chat and ask:
Expected response should include memoization or iterative approach:
Cost Comparison: How Much Will You Actually Spend?
Let's estimate a typical workday:
Daily total (50 interactions): ~$0.015 — roughly $0.45/month for a full-time developer. Compare that to GitHub Copilot at $10/month or Claude Pro at $20/month.
Troubleshooting
"API key not recognized": Double-check you're using your AIWave key. The Base URL must be exactly
https://aiwave.live/v1."Model not found": The model ID must match AIWave's catalog exactly. Use
deepseek-v4-flash, notdeepseek-v4-flash-2025-06-01.Slow responses: Chinese models are served from Singapore. If you're in Europe or the Americas, expect 200-500ms added latency. For latency-sensitive work, consider using the low-cost GLM-4.7 FlashXX for quick tasks.
Useful links:
Resources
All reactions