ERNIE 5.5 Flash Preview: API Pricing and Agent Setup
ERNIE 5.5 Flash Preview is Baidu’s API-served, post-trained text model for coding, long-context knowledge work and agent workflows. Use Qianfan for published token rates and function calling, or try OpenRouter’s separate rate-limited free route. Preview is not the same release as the Base weights.
Content reviewed:
Open ERNIE 5.5 Flash Preview on Baidu Qianfan ↗
Use this model
Online access and trials
- OpenRouter model details and current free-tier limits
Availability and signup terms are set by the provider.
API docs and console
- Qianfan text-generation API reference
Provider account and usage billing apply.
Workflows to test first
- Make a bounded change across several files, then run your own tests and inspect the diff.
- Summarize a large project dossier and return claims with their source locations.
- Draft a report or spreadsheet from supplied material while a person checks figures and conclusions.
What is ERNIE 5.5 Flash Preview?
ERNIE 5.5 Flash Preview is Baidu’s first post-trained release built on ERNIE 5.5 Flash Base. It is a text-in, text-out model with 280B total parameters, 14B active per token and a 1M-token context. Baidu positions it for coding, multi-step agent work, knowledge tasks and content creation. The launch shows publisher-selected game, 3D and document projects built inside an agent framework.
Preview and Base serve different jobs. Preview is the hosted, post-trained model available through Qianfan’s API; Base is the earlier pre-training checkpoint for people who want to adapt or serve weights. Baidu says Preview weights will be released under Apache 2.0, but its announcement still says “soon.” Use the hosted Preview for ready-to-prompt tasks and the separately licensed Base checkpoint for weight adaptation.
Baidu describes Preview as an intermediate post-training checkpoint and says training is still in progress. Treat it as a candidate to evaluate on representative tasks, especially if your workflow depends on consistent agent behavior.
Use function calls in your own agent loop
Qianfan lists ernie-5.5-flash-preview as supporting function calling. You provide a function schema; the model can return a proposed call and arguments, but your application must validate them, run the function and send its result back. Baidu estimates that the built-in function-call prompt adds about 300 input tokens, so include that overhead when you estimate a session.
Qianfan’s native web_search option is not supported for this model. If your agent needs current web results, connect a search tool through your own function loop or choose an endpoint with built-in search. A one-million-token context can hold long project material, but the tokens you actually send, including history and tool results, are what affect the bill.
The Qianfan API does not support temperature, top_p or seed for this model. Thinking cannot be disabled or tuned; the documented reasoning setting is fixed at high. The max_tokens limit counts reasoning and the final answer together. Set the output budget for both reasoning and the final answer.
Check the output caps before long generations: Qianfan’s product page lists 64,000 tokens as the default output for Preview, while the model table lists 1M-token maximums for input and output. A single request cannot spend both maximums at once.
curl https://qianfan.baidubce.com/v2/chat/completions \
-H "Authorization: Bearer $QIANFAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "ernie-5.5-flash-preview",
"messages": [
{"role": "user", "content": "Write a Python function that parses a UTC ISO 8601 timestamp. Include tests for valid, invalid and timezone-free input."}
]
}'Read the GameFeel result as a game-development test
GameFeel Benchmark v1.5 records Ernie-5.5 Flash Preview at 43.6 Overall, with its effort column labeled Max. Overall averages seven completed categories covering creation, bug fixing, game feel, ideas, visuals, audio and reverse engineering. This is the evaluator’s game-development score, rather than a general agent ranking or a Qianfan task-cost measurement.
Use those task categories to build a small test around your own game: ask for one mechanic, a reproducible bug fix and a visual or audio revision. Inspect the playable result and count every repair. The public dataset’s output-speed field does not include enough configuration detail to estimate your complete session time or bill.
Estimate the Qianfan API bill
Baidu’s Qianfan price page lists a 50% promotion through its listed November 30, 2026 deadline. The table below shows the promotional rate and the regular rate it returns to afterward. Rates are yuan per million tokens; cached input is billed at the cache-hit rate only when the request actually receives a cache hit.
For one call using 100,000 uncached input tokens and 20,000 output tokens, the promotional bill is ¥0.18 in the listed peak window: 0.1 × ¥1 input + 0.02 × ¥4 output. At regular rates, the same usage is ¥0.36. In the listed idle window the corresponding totals are ¥0.09 and ¥0.18. This is billing arithmetic for fixed token counts, not a quality or speed comparison. Each agent turn, tool result, repeated conversation history and retry can add more usage; inspect the returned usage fields for a real run.
Qianfan switches between peak and idle rates on its billing schedule. The linked public table leaves the timezone unspecified; use the schedule shown in your account when timing a batch.
| Token type | Peak | Idle |
|---|---|---|
| Input, per 1M | ¥1 promo; ¥2 regular | ¥0.50 promo; ¥1 regular |
| Cached input, per 1M | ¥0.10 promo; ¥0.20 regular | ¥0.05 promo; ¥0.10 regular |
| Output, per 1M | ¥4 promo; ¥8 regular | ¥2 promo; ¥4 regular |
Try the separate free OpenRouter route
OpenRouter lists baidu/ernie-5.5-flash-preview:free as a free route with rate limits. It is a convenient way to test a prompt without setting up Qianfan billing, but its availability, limits and provider routing are separate from Baidu’s Qianfan price schedule. Recheck the live listing before building a service around a free tier.
Before you use it
- Baidu says Preview is an intermediate checkpoint and post-training is still in progress.
- Qianfan does not provide native web search for this model; function calls need application-side execution and validation.
- Preview weights are announced for a future Apache 2.0 release but are not linked from the announcement yet; Base uses a separate license.
How to get started
Evaluate the Preview API on a representative multi-step task, count all turns and tool results, and budget from returned token usage. Check the current Qianfan rates before relying on the temporary promotion.
Sources
Sources (9)
- GameFeel: evaluator dataset, categories and score definition ↗
Source checked:
- GameFeel: exact Preview / Max row ↗
Source checked:
- Baidu: ERNIE 5.5 Flash Preview release, positioning and weight status ↗
Source checked:
- Baidu Qianfan: current Preview rates and promotion end date ↗
Source checked:
- Baidu Qianfan: model ID, context and output limits ↗
Source checked:
- Baidu Qianfan: chat API parameters and token usage ↗
Source checked:
- Baidu Qianfan: supported function calling and tool execution ↗
Source checked:
- OpenRouter: separate free route and rate limits ↗
Source checked:
- Baidu: ERNIE 5.5 Flash Base release for the checkpoint distinction ↗
Source checked: