Baidu ERNIE 5.1: search-grounded flagship, and why it is not on Edor.ai
ERNIE 5.1 is Baidu's current flagship with a 128K-token context window. Qianfan pricing (page updated 2 September 2026) is ¥0.004 per 1K input tokens and ¥0.018 per 1K output within 32K input, rising to ¥0.006 / ¥0.022 between 32K and 128K. The ERNIE 4.5 family is the only generation with published weights. This page covers procurement trade-offs, compliance limits, and why a school knowledge base beats external search for citations.
Not wired up today. ERNIE's main strength is search-grounded answers from Baidu, which is precisely where Hong Kong schools should be careful: its sources, content policy and data handling all sit in the mainland framework. Its 128K context window is also well below other current flagships.
Specifications
- Vendor
- Baidu ERNIE · China
- Representative model
ERNIE 5.1- Released
- 2026-08
- Context window
- 128K tokens
- Max output
- Not published
- Modalities
- Text / Image
- Open weights
- Yes (ERNIE 4.5 系列開源;5.x 未公開)
- API pricing
- $0.55 / $? — USD per 1M tokens (input / output)
- Free tier available
- Yes
Procurement conversations often name ERNIE because it was China's first public conversational LLM; the easy mistake is to treat search grounding as proof that every answer has a source the school can explain to parents.
ERNIE matters in the history of mainland commercial AI, but a Hong Kong school has to separate model capability from whether data handling can be explained under local privacy law. It is not a native Edor.ai provider; for an IT coordinator the deciding questions are search opacity, content policy, and whether 128K context matches how the school actually works.
What Baidu is doing on language models
Baidu runs ERNIE on two rails: a consumer assistant (ERNIE Bot) and a developer API through the Qianfan platform. Unlike several vendors on this site, the strategic bet is not open weights but binding generation to Baidu's own search index — the model can search before it answers, which keeps current affairs fresher than training data alone.
ERNIE Bot launched on 16 March 2023 as China's first publicly released conversational LLM product. Three years on, the 5.x line carries the flagship, while 4.5 keeps the low-cost tier, search augmentation, and the distinction of being Baidu's only generation with published weights. That split — latest in the cloud, previous generation open — means what a school can download is not what Qianfan sells as today's best.
Models a school will actually see
Qianfan bills in input-length tiers; search augmentation on the 4.5 line is charged per call. Figures below come from the billing page updated on 2 September 2026:
| Model | Role | Context | Per 1K tokens (input / output) |
|---|---|---|---|
| ERNIE 5.1 | Current flagship | 128K tokens | Within 32K: ¥0.004 / ¥0.018; 32K–128K: ¥0.006 / ¥0.022 |
| ERNIE 5.0 / 5.0-Thinking | Reasoning line | — | From ¥0.006 / ¥0.024 |
| ERNIE 4.5 Turbo / Turbo VL | Low-cost tier; only open-weight generation | — | Cheapest band; search augmentation per call |
| ERNIE Bot (2023-03-16) | First public conversational LLM in China | — | Consumer entry, not API pricing |
128K is enough for a long piece of marking or admin tidying; if the subject head's plan is to paste an entire school curriculum outline in one shot, 1M-token contemporaries fit better — ERNIE is not playing that game.
Where the money comes from
The pricing logic suits mainland developers: per-1K tokens, tiered by input length, with 4.5 Turbo among the cheaper options in its class. A Hong Kong school adds a conversion layer — RMB denomination, cross-border settlement, search calls on top — before grant reporting.
An IT coordinator once ran the numbers in the staff room: 500 short API calls a week for a Secondary 3 cohort at 5.1 rates inside 32K looks cheap on paper, but search-augmentation charges and peak usage can erase the gap against a fixed-fee school platform. The harder question is not the token bill but which jurisdiction processes pupil sentences.
Search grounding makes answers newer and makes citations harder to explain — when you are teaching verification, that opacity matters more than the per-token rate.
Its role inside Edor.ai
Not wired up today. Edor.ai natively supports OpenAI, Azure OpenAI, Anthropic, Poe and local Ollama. ERNIE is not among them, administrators will not see it in the panel, and we have no partnership with Baidu.
Where a school wants answers with checkable provenance, the platform uses school knowledge-base RAG: upload curriculum documents, rubrics and policies, retrieve only those passages, and log the trail in ai_audit_logs. That is more controllable than external search and avoids sending pupil data to Qianfan.
Open ERNIE 4.5 weights still have classroom value in ICT — pupils can compare self-hosted weights with a cloud API and see why one company runs both routes. That is not the same as wiring ERNIE in as the everyday provider.
Scenarios that fit, and ones that do not
May fit (still a policy decision): individual teacher planning with no pupil data; ICT enquiry comparing search grounding with RAG; joint projects with mainland partner schools already on Baidu Cloud with legal sign-off.
A General Studies teacher generating a public-topic background sheet on renewable energy — with no pupil names and no school circulars pasted in — sits in the grey zone some schools permit under personal-use rules. The same teacher pasting a scanned worksheet with student numbers in the margin crosses into data the school cannot explain under the Personal Data (Privacy) Ordinance if the call hits Qianfan.
Poor fit: student chat or marking work that contains names, classes or grades — API calls are cross-border transfers under mainland terms. History, current affairs and civic education where content policy may diverge from the Hong Kong curriculum. Expecting 5.1 to ingest a whole million-token school corpus at once. Assuming 4.5 open weights mean "the latest flagship on campus" — 5.x is not published.
For oral practice, history essays or civic education debates, run a five-question classroom test first: note where cited links point, whether Traditional Chinese usage holds, and whether any answer avoids a topic your scheme of work expects pupils to discuss. Document the results before any policy change — "it works on the mainland" is not a Hong Kong classroom test.
Need a mainland comparison with cleaner open licensing? Read the DeepSeek, Kimi, Qwen and GLM comparison or see Tencent Hunyuan under Apache 2.0 before ERNIE returns to the shortlist.
The trade-off for schools
- If pupils must learn to verify sources, prioritise a school knowledge base over search augmentation as your citation story.
- If data must stay on site with a current-generation model, look at vendors that publish today's weights; ERNIE 4.5 is a research starting point, not a flagship substitute.
- If ERNIE is still on the shortlist, complete a cross-border privacy assessment and budget the full RMB cost including search calls before you write it into policy.
Several lines from the same vendor
Most vendors keep a flagship, a workhorse, a lightweight and a reasoning line running at once, and the prices can differ tenfold. Picking the wrong line is a more common mistake than picking the wrong vendor.
| Model | Tier | Released | Context window | In / Out | Notes |
|---|---|---|---|---|---|
| ERNIE 5.1 | Flagship | 2026-08 | 128K | — | The current flagship, priced in tiers on the Qianfan platform: within 32K input it is ¥0.004 per 1K input and ¥0.018 per 1K output; from 32K to 128K it is ¥0.006 / ¥0.022. |
| ERNIE 5.0 / 5.0-Thinking | Reasoning | 2026-04 | — | — | The reasoning line, priced above 5.1 (from ¥0.006 / ¥0.024 per 1K tokens). |
| ERNIE 4.5 Turbo / VL | Workhorse | 2026-04-02 | 128K | — | The cheapest tier, with search augmentation billed per call; the 4.5 family is also the only Baidu generation with published weights. |
| ERNIE Bot(文心一言) | Flagship | 2023-03-16 | — | — | China's first publicly launched conversational LLM product and the symbolic start of commercial generative AI on the mainland. |
Questions that keep coming up
Search grounding does keep answers fresher, but the index, ranking and moderation sit inside the mainland framework, so it is hard to explain to pupils why a link is trustworthy. If the learning goal is verification, a school knowledge base that cites only approved documents is easier to audit than external search results.
The 4.5 generation is the only published line, while the current 5.1 flagship is not open. Self-hosting 4.5 can keep data on site at the cost of a generation behind, and memory still has to hold the full weights. Read the licence clauses; downloadable weights are not the same as a clean school deployment path.
Rates are in RMB, tiered by input length, and search augmentation is billed per call on top. Schools budgeting in Hong Kong dollars and reporting grant spend still owe exchange-rate and cross-border payment overhead. Low per-token rates on the mainland do not equal low compliance cost in Hong Kong.
That is a school policy call. If permitted, write it into the AI use policy: generic planning material only, no pupil names, student numbers, marks or un-redacted school documents, and a reminder to check that cited search sources fit the Hong Kong curriculum and Traditional Chinese usage.
A long report or a full unit of material usually fits — everyday teaching is comfortably covered. Against contemporaries offering 1M tokens it has no long-document edge; retrieving the relevant passages from a knowledge base is usually cheaper than chasing maximum context anyway.
Prices and specifications here were checked on 2026-09
- Baidu Qianfan — model service billing page
- Baidu Qianfan — model service and agent platform documentation home
- Hugging Face — Baidu organisation page (ERNIE 4.5 open weights)
- ERNIE Bot official site
- · Prices, features and specifications follow the official documentation linked above. Vendors change them without notice, so verify once more before you buy.
- · Product names and trademarks belong to their respective owners. Edor.ai has no partnership, agency or sponsorship arrangement with these companies.
- · This is an independent write-up for educational purposes. It is not procurement advice and not legal advice.
- · For anything involving student personal data, assess it against your school policy and the Personal Data (Privacy) Ordinance (PDPO) before you roll it out.
Related reading
- Choosing Among China's LLMs: DeepSeek, Qwen, Kimi, GLM and Four More, From a Hong Kong School's Side of the Table
The same "DeepSeek" means two entirely different privacy positions depending on whether you download the weights or call the API. This piece lays out the price, context window, licence and hardware floor for DeepSeek, Qwen, Kimi, GLM, MiniMax, Doubao, Hunyuan and ERNIE, then sorts school work into the routes a Hong Kong school can defend under the Personal Data (Privacy) Ordinance.
- Comparing 15 LLM Providers in 2026: Prices, Context Windows, and the One Decision a School Actually Makes
One set of school usage assumptions applied to September 2026 official pricing from OpenAI, Anthropic, Google, xAI, Meta, Mistral and Cursor Composer, plus DeepSeek, Qwen, Kimi, GLM, MiniMax, Doubao, Hunyuan and ERNIE. Capability gaps are narrowing while price gaps widen, which means the real decision is not which model to use but who absorbs the volatility and what a generational change costs.