
#b-ai#9router#zcode#glm#deepseek#tutorial#ai
B.AI Free AI Models: GLM-5.3-Flash & DeepSeek V4 Vision in 9Router and ZCode
Six B.AI models are free via its OpenAI-compatible API — GLM-5.3-Flash and DeepSeek V4 Flash Vision Exp included. Signup, top-up bonus, 9Router and ZCode setup.
#Table of Contents
B.AI is running a conspicuously generous promo right now: six frontier-class models are billed at zero on its API, including
B.AI is an AI gateway: one account gives you a chat interface plus an OpenAI-compatible API at
On the API page, models with a gift icon are billed at $0 input and $0 output per 1M tokens. As of my last check, that covers these six:
One extra detail if you ever use the paid DeepSeek rows: their reference prices are time-based (Idle/Busy), and since August 23, 2026 weekends bill at the Idle rate all day.
Go to chat.b.ai and sign up. The form takes just an email address — that is the whole registration. You land straight in the chat interface, and the left sidebar gives you Usage, API, Top up, Subscription, Invitations, Memory, and Leaderboard. Google login and Web3 wallet login are also offered, but I have not needed either; the email flow is what the invite addresses above.
Open API in the sidebar — note that this single page holds both the pricing table and your key management, so scroll past the table. At the bottom-right of the pricing table you will find the black Create API key button. Click it, give the key a name (I name mine after the tool that consumes it, e.g.
The endpoint you will use everywhere:
B.AI bills in credits, and the docs state the conversion plainly: 1 USD = 1,000,000 Credits. That also tells you how to read the table above — a price of
Payment options include PayPal, Alipay, UnionPay, Visa, Google Pay, and Apple Pay, plus on-chain crypto payment rails per the docs. The page notes bank-grade encryption and that card details are not stored — and remember, with six models at zero credits, you can do all of this without ever topping up.
If your coding tools already route through 9Router, adding B.AI is a standard OpenAI-compatible provider. There is one quirk that beginners trip on: the API key goes in twice. First in the provider editor, where it is only used to validate the connection, and second as a real connection via the Add API Key button. The connections list is what the round-robin balancer actually rotates through — without the second paste, validation passes but traffic never flows.
Skipping the gateway? ZCode takes the same credentials natively. Open Settings → Models → Custom providers → + Add provider and enter:
Two models have earned permanent spots while this promo runs:
glm-5.3-flash and deepseek-v4-flash-vision-exp — the two I use daily. Signup is just an email address: no phone number, no card, no wallet (though wallet and Google login exist too).
I wrote this guide the way I would have wanted it when I first set this up: the registration flow, what the credits and top-up bonus actually mean, and the exact fields to fill in for both 9Router and ZCode IDE. The 9Router part in particular has one quirk that trips people up — I explain it in detail below.
Tip
Want to try it? Sign up at chat.b.ai/chat?invite_code=S5VBZY. New registrants through an invite link get a 300,000 Credits gift (valid 30 days), and on the other side the inviter earns Coin rebates (1% on eligible top-ups, relationship valid two years). Either way, the invite costs you nothing extra.
What Is B.AI?
https://api.b.ai/v1. Its own API page says "Direct official API — highest availability · All 44 models supported", and the roster currently spans DeepSeek, Z.ai (GLM), Alibaba (Qwen), Tencent (Hy3), Xiaomi (MiMo), Moonshot (Kimi), MiniMax, OpenAI, Anthropic, Google, and xAI (Grok).
Per its official docs, B.AI is a blockchain-infrastructure service: the docs describe an "LLM Service" module "built on blockchain infrastructure" with both Web3-native payment and mainstream fiat options. There is one sibling official entry point — chat.bankofai.io — and the whole family shares docs at docs.b.ai (the model reference links point to a shared AINFT/BankofAI platform catalog).
What I could not find is a published legal entity: no company name, address, or jurisdiction anywhere on the site or docs. So I am treating it the way I do any opaque operator — call it B.AI, use it for free-quota and non-sensitive workloads, and keep payment-heavy commitments out of it until the operator identity is clearer.
Warning
The docs themselves warn to only log in, connect a wallet, or top up through the official chat.b.ai/chat or chat.bankofai.io/chat — never through search ads or unfamiliar links. Promo-driven services attract clones. Bookmark the URL instead of clicking through search results.
The Free Models (the Whole Point)
| Model ID | Vendor | Input/Output | Context | Vision |
|---|---|---|---|---|
glm-5.3-flash | Z.ai | $0 / $0 | 1M | ✅ |
deepseek-v4-flash-vision-exp | DeepSeek | $0 / $0 | 1M | ✅ |
deepseek-v4-flash | DeepSeek | $0 / $0 | 1M | — |
qwen3.8-flash | Alibaba | $0 / $0 | 1M | ✅ |
mimo-v2.5 | Xiaomi | $0 / $0 | 1M | ✅ |
hy3 | Tencent | $0 / $0 | 256K | — |
Two nuances worth knowing:
- "Free" means free on the API for all six. The docs add per-model notes about the chat surface too:
deepseek-v4-flashis currently free on both Chat and API,deepseek-v4-flash-vision-expcurrently free for API use, andmimo-v2.5free for API with its Chat free-access date set to August 25, 2026. Since this guide wires the API, all six work at zero. - The roster can change without a blog post. The docs point to a "Promotions and Pricing Updates" page for current offers (that page is access-controlled), and the gift icons on the live API page are the source of truth. Check the icons before you build anything permanent on a specific model.
| Model | Input | Cache Write | Cache Read | Output |
|---|---|---|---|---|
deepseek-v4-pro (busy rate) | 1.32 | 1.32 | 0.044 | 3.96 |
glm-5.3 | 1.40 | 1.40 | 0.28 | 4.40 |
qwen3.8-max | 2.00 | 2.00 | 0.25 | 6.00 |
minimax-m3 | 0.30 | 0.30 | 0.06 | 1.20 |
kimi-k2.6 | 0.95 | 0.95 | 0.16 | 4.00 |
gpt-5.6-terra | 2.00 | 2.50 | 0.20 | 12.00 |
claude-sonnet-5 | 2.00 | 2.50 | 0.20 | 10.00 |
claude-opus-5 | 5.00 | 6.25 | 0.50 | 25.00 |
Step 1: Register (Email Only)
Step 2: Create Your API Key
9Router), and copy the sk-... value once — it will not be shown to you in full again.

Zoom
Base URL: https://api.b.ai/v1
Format: OpenAI-compatible Chat Completions (/chat/completions)Step 3: Credits and the Top-up Bonus (Probably Not Needed)
1.32 Credits/Token is the same as $1.32 per 1M tokens.
Top-up packages are 10M / 20M / 50M / 100M credits. The current promo adds a 1 : 0.5 bonus on every deposit — the $10 package gives you 10,000,000 credits plus 5,000,000 free, capped at $100 in bonus credits per user with a $10,000 daily deposit limit.

Zoom
Step 4: Connect B.AI to 9Router
1
In 9Router, open Providers → Add provider → OpenAI Compatible. Fill in the editor exactly like this:
- Name:
b.ai - Prefix:
bai(this becomes your model namespace, e.g.bai/glm-5.3-flash) - API Type:
Chat Completions - Base URL:
https://api.b.ai/v1 - API Key (for Check): paste your
sk-...key here, hit Check, then Save
/models endpoint.
Zoom
2
Back on the provider page, click the orange Add API Key button (marked ① below) and paste the same
sk-... key. This creates the live connection that the balancer uses. If you have multiple B.AI accounts (or mix accounts with other providers), add one connection per account and leave Round Robin enabled — in my setup it shows Sticky: 3, meaning each connection serves three requests before rotating.3
Scroll to Available Models (marked ②). Type a model ID and press Add, or click Import from /models to pull the whole list — the import works because your key unlocks B.AI's 
/models endpoint. The six free IDs:deepseek-v4-flash-vision-exp
glm-5.3-flash
qwen3.8-flash
hy3
mimo-v2.5
deepseek-v4-flash
Zoom
4
From your terminal, hit your local gateway and confirm the model answers:Note the
curl -sS http://127.0.0.1:20128/v1/chat/completions \
-H "Authorization: Bearer <your-9router-key>" \
-H "Content-Type: application/json" \
-d '{"model":"bai/glm-5.3-flash","messages":[{"role":"user","content":"ping"}]}'bai/ prefix — inside 9Router the model IDs live under your provider prefix.Step 5: Connect B.AI Directly to ZCode IDE
- Provider name:
b.ai - Base URL:
https://api.b.ai/v1 - API format:
Chat completions (/chat/completions)— this dropdown item is the OpenAI-compatible format B.AI speaks - API key: your
sk-...key - Models: click + Add model for each of the six free IDs

Zoom
Info
If you already connected OpenCode Zen to ZCode, this is the same dialog with a different base URL — see the OpenCode Zen connection guide.
Warning
Never paste a live API key into a screenshot or a shared config snippet. The 9Router dialogs show masked values — keep it that way when you capture anything for documentation.
What I Actually Use From This Roster
glm-5.3-flash— fast, reliable instruction following, and the 1M context lets me feed whole repositories without chunking. It is my default for code edits and file surgery.deepseek-v4-flash-vision-exp— screenshot-aware, which makes it my pick for UI bug triage: paste an error screenshot, get a diagnosis. I wrote about what the model actually does in the DeepSeek V4 Flash Vision Exp breakdown.
qwen3.8-flash, hy3, or mimo-v2.5 yet — they are queued for the same pass. When the promo ends, the paid fallbacks are still reasonably priced (glm-5.3 at 1.40/4.40, deepseek-v4-pro at 1.32/3.96 busy), so the migration path is not painful. Just do not architect anything that only works while tokens are zero.
Recap
| Item | Detail |
|---|---|
| Service | B.AI — chat + OpenAI-compatible API, "All 44 models supported" |
| Official URLs | chat.b.ai/chat · chat.bankofai.io/chat · docs at docs.b.ai |
| Base URL | https://api.b.ai/v1 (Chat Completions) |
| Free models | glm-5.3-flash, deepseek-v4-flash-vision-exp, deepseek-v4-flash, qwen3.8-flash, mimo-v2.5, hy3 |
| Context | 1M tokens (Hy3: 256K); Vision on four of the six |
| Signup | Email only — invite link (300K Credits gift, 30 days) |
| Credits | 1 USD = 1,000,000 Credits; 1 : 0.5 top-up bonus, max $100/user |
| 9Router | Prefix bai, API key pasted twice (check + connection), import models |
| ZCode | Custom provider → same base URL + key + model IDs |
| Caveat | No public operator entity; promo pricing changes without notice — verify gift icons live |
References
Share this research
<IE/>
Written by Ieproject
Tech hobbyist and explorer passionate about DeepSeek V4 Flash, Antigravity AI, OpenCode, Hermes Agent, and modern developer tools.
More Research & Guides

last monthIeproject

