Baidu ERNIE 5.5 Flash Preview & Light DT 1.0 OpenRouter API: Pricing & Specs
Compare Baidu's baidu/ernie-5.5-flash-preview ($0.28/$1.13) and baidu/ernie-light-dt-1.0-intl ($1.13/$3.94) OpenRouter APIs as of 2026-11-11: specs, speed, and OpenAI SDK setup.
Summary
- Baidu launched two text-only 1M-context endpoints on OpenRouter on November 10, 2026.
- ERNIE 5.5 Flash Preview is the post-trained chat preview of Baidu's 280B Sparse MoE model (14B active parameters).
- ERNIE Light DT 1.0 Intl is built on open-source GLM weights and Baidu Search Lightning's Baidu Sparse Attention (BSA) for compressed long-history indexing.
- Neither endpoint supports multimodal inputs or EU in-region routing, though both work out of the box with the standard OpenAI Python and TypeScript SDKs.
Five days after Baidu uploaded the raw pretrained weights for ERNIE-5.5-Flash-Base on Hugging Face, the instruction-tuned chat model finally showed up as a live API—without a launch announcement or an updated model card. On November 10, 2026, two new Baidu endpoints went live side by side on OpenRouter: baidu/ernie-5.5-flash-preview and baidu/ernie-light-dt-1.0-intl.
If you only glance at the model names, the pricing looks backwards. The flagship 280-billion-parameter baidu/ernie-5.5-flash-preview costs $0.28 per million input tokens and $1.13 per million output tokens, while the model with "Light" in its name—baidu/ernie-light-dt-1.0-intl—costs $1.13 per million input tokens and $3.94 per million output tokens. Before wiring either endpoint into an agent loop or a retrieval pipeline, you need to understand how their architectures, reasoning rules, and routing paths differ.
On this page
OpenRouter Pricing and Technical Specifications
Prices in this section are as of 2026-11-11.
Both endpoints are hosted directly by Baidu Qianfan behind OpenRouter's unified gateway, meaning they follow OpenRouter's zero-markup pass-through pricing. Both give you a 1,024,000-token context window and charge 10% of the base input rate for cached prompt reads, which heavily discounts workloads with a static system prompt or pinned repository context.
| Specification | baidu/ernie-5.5-flash-preview |
baidu/ernie-light-dt-1.0-intl |
|---|---|---|
| Input Price (per 1M tokens) | $0.28 | $1.13 |
| Output Price (per 1M tokens) | $1.13 | $3.94 |
| Cache Read (per 1M tokens) | $0.028 | $0.113 |
| Weighted Average Input Paid | ~$0.0504 / 1M (with cache hits) | ~$0.3691 / 1M (with cache hits) |
| Context Window | 1,024,000 tokens | 1,024,000 tokens |
| Max Output Ceiling | 921,600 tokens | 131,072 tokens |
| Measured Throughput | 234 tok/s | 74 tok/s |
| Time to First Token (Latency) | 1.12s | 1.83s |
| Underlying Architecture | 280B Sparse MoE (14B active/token) | GLM-based + Baidu Sparse Attention (BSA) |
| Modalities | Text-in, Text-out only | Text-in, Text-out only |
| Reasoning Mode | Mandatory (effort: "high" only) |
Configurable reasoning map |
| Tooling & Formatting | Function calling, tool_choice, response_format |
Function calling, response_format |
Why ERNIE Light DT 1.0 Costs 4x More Than the 280B Flash Preview
Prices in this section are as of 2026-11-11.
When I first pulled the rate cards for both endpoints, the 4.04x input price gap ($1.13 vs $0.28) and 3.49x output price gap ($3.94 vs $1.13) immediately stood out. Usually, a vendor's "Light" SKU sits below its "Flash" tier. Here, the two models come from separate engineering teams inside Baidu and solve different problems.
baidu/ernie-5.5-flash-preview is built for raw generation speed and high-concurrency agent workflows. Under the hood, it runs a 43-layer Transformer backbone consisting of one dense layer and 42 Multi-Router Latent Mixture-of-Experts (MoE) layers. Each MoE layer holds 512 routed experts and one shared expert, but the router activates only the top 10 experts per token—meaning only 14B out of 280B total parameters fire on any forward pass. Baidu also stripped out KV cache bloat by using Heavily Compressed Attention across 37 of those 43 layers (retaining one cache entry per 128 tokens and keeping full context in only one of every seven layers) and added an in-model speculative decoding mechanism called ECHO, which reuses the final layer to predict multiple future tokens without a separate draft model. Because each token requires only 14B active parameters and self-speculates at 234 tokens per second, Baidu can price it aggressively at $0.28/$1.13.
baidu/ernie-light-dt-1.0-intl is not a smaller cut of the ERNIE 5.5 MoE tree. Instead, Baidu built it on top of open-source GLM foundations combined with research from Baidu Search's internal Lightning model. Its core feature is Baidu Sparse Attention (BSA) paired with feedback-driven history compression. Rather than just dropping KV cache tokens across layers, BSA actively indexes and compresses historical conversation turns so long-running retrieval and dialogue sessions can query deep history without degrading recall. In addition, the -intl suffix indicates that this endpoint routes through Baidu International's dedicated overseas enterprise infrastructure rather than the standard domestic Qianfan pool. You are paying $1.13/$3.94 for that international routing guarantee and BSA's historical state indexing, while ernie-5.5-flash-preview is the much faster, cheaper general-purpose coding and reasoning model.
The Mandatory Reasoning Trap and the 921,600-Token Output Ceiling
Prices in this section are as of 2026-11-11.
Before you treat baidu/ernie-5.5-flash-preview as a drop-in $0.28 budget model, look closely at its reasoning configuration and its 921,600-token maximum output limit. Most 1M-context models cap single-turn output at 16,384 or 65,536 tokens. Allowing nearly a million tokens of generation in a single response is directly tied to how this preview handles chain-of-thought.
On baidu/ernie-5.5-flash-preview, reasoning is mandatory and locked to a single effort level: high. There is no toggle to turn thinking off, and you cannot drop the model into a low-effort or non-thinking fast mode. Every API call forces the model to generate internal reasoning tokens before it writes your visible answer or emits a tool call. Because the model cannot be told to stop thinking, complex multi-file coding prompts or deep research tasks can easily burn tens of thousands of reasoning tokens before the actual output even starts. Raising the output ceiling to 921,600 tokens ensures that long agent runs do not get truncated mid-thought when the context window is still mostly empty.
That same design choice dictates your real-world bill. Reasoning tokens are billed as standard output tokens at $1.13 per million. If you send a 1,000-token prompt ($0.00028) and the model spends 8,000 tokens reasoning before returning a 500-token JSON payload, your invoice records 8,500 output tokens ($0.0096)—making the output charge more than 34 times the input cost. Over a 40-step coding agent session, mandatory high reasoning adds up quickly. When I test a new mandatory-thinking endpoint like this, I always run a fixed batch of 20 production prompts and log usage.completion_tokens alongside usage.prompt_tokens to see the true cost per completed task before migrating traffic.
ERNIE 5.5 Flash Preview vs Qwen 3.8 Flash and Gemini 3.8 Flash
Prices in this section are as of 2026-11-11.
If you are shopping for a 1M-context Flash model on OpenRouter, your main alternatives are Alibaba's qwen/qwen3.8-flash and Google's google/gemini-3.8-flash. Putting all four endpoints side by side makes it clear where Baidu's new preview wins and where it falls short.
| Metric | baidu/ernie-5.5-flash-preview |
qwen/qwen3.8-flash |
google/gemini-3.8-flash |
baidu/ernie-light-dt-1.0-intl |
|---|---|---|---|---|
| Input Price / 1M | $0.28 | $0.15 | $0.75 (50% off $1.50 list) | $1.13 |
| Output Price / 1M | $1.13 | $0.47 | $3.75 (50% off $7.50 list) | $3.94 |
| Cache Read / 1M | $0.028 | $0.016 | $0.075 | $0.113 |
| Context Window | 1,024,000 | 1,024,000 | 1,024,000 | 1,024,000 |
| Max Output Tokens | 921,600 | 8,192 / 32,768 | 8,192 / 65,536 | 131,072 |
| Throughput | 234 tok/s | 59 tok/s | 79 tok/s | 74 tok/s |
| First-Token Latency | 1.12s | 1.15s | 2.28s | 1.83s |
| Modalities | Text only | Text, Image, Audio, Video | Text, Image, Audio, Video | Text only |
| Reasoning Control | Mandatory high |
Optional extended thinking | Configurable (low to high) |
Supports reasoning map |
On pure token rates, baidu/ernie-5.5-flash-preview sits right in the middle: it costs roughly double Alibaba's Qwen 3.8 Flash pricing ($0.15/$0.47), but undercuts Google's Gemini 3.8 Flash rates ($0.75/$3.75) by more than 60%.
Where ERNIE 5.5 Flash Preview pulls ahead is generation speed and output capacity. Clocking in at 234 tokens per second with a 1.12-second time to first token, it generates text roughly four times faster than Qwen 3.8 Flash (59 tok/s) and three times faster than Gemini 3.8 Flash (79 tok/s). Because mandatory reasoning generates thousands of hidden thinking tokens per turn, that 234 tok/s speed is what keeps end-to-end response times feeling snappy. Its 921,600-token output cap also lets it emit entire refactored files or massive structured datasets in a single turn without hitting the 32K or 65K ceiling that stops Qwen and Gemini.
The trade-off is modality support and benchmark transparency. Both Qwen 3.8 Flash and Gemini 3.8 Flash natively accept images, audio, and video, whereas both Baidu endpoints are strictly text-in, text-out—if you pass an image_url content block or a raw PDF, the request fails. Furthermore, Baidu still has not published an evaluation table for the instruction-tuned ernie-5.5-flash-preview. The 30 benchmarks Baidu released on November 5 (where the model posted 93.3 on MMLU, 78.4 on MMLU-Pro, 60.2 on GPQA, 82.3 on HumanEval+, 40.1 on LiveCodeBench, and 91.7 on RepoQA) were run on the unaligned ERNIE-5.5-Flash-Base checkpoint against older base models (DeepSeek-V4-Flash-Base, Hy3-preview-Base, and MiMo-V2.5-Base). Those base numbers show strong raw code and repository-scale comprehension, especially after 33.5 trillion tokens of FP8 pretraining with the Muon optimizer, but you should still test instruction adherence and tool-calling stability on your own harness.
Calling Both Endpoints with the OpenAI Python and TypeScript SDKs
Because OpenRouter exposes an OpenAI-compatible Chat Completions interface, you can call both Baidu models by pointing your OpenAI SDK base_url to https://openrouter.ai/api/v1. Both endpoints support standard tools, tool_choice, and response_format parameters for structured JSON output.
Here is the Python setup for calling baidu/ernie-5.5-flash-preview with explicit reasoning configuration and an output token cap to prevent runaway thinking bills:
import os
from openai import OpenAI
client = OpenAI(
base_url="https://openrouter.ai/api/v1",
api_key=os.environ.get("OPENROUTER_API_KEY"),
)
response = client.chat.completions.create(
model="baidu/ernie-5.5-flash-preview",
messages=[
{
"role": "system",
"content": "You are a senior backend engineer. Return concise, production-ready code.",
},
{
"role": "user",
"content": "Write a Python asyncio worker pool that batches items up to 50 or 200ms.",
},
],
# Cap max_tokens so mandatory high reasoning cannot run up an unbounded bill
max_tokens=16384,
extra_headers={
"HTTP-Referer": "https://llmapiguide.com",
"X-Title": "LLM API Guide",
},
extra_body={
"reasoning": {
"effort": "high"
}
},
)
print(response.choices[0].message.content)
print(f"Prompt tokens: {response.usage.prompt_tokens}, Output + Reasoning tokens: {response.usage.completion_tokens}")
If you are building a long-context retrieval or multi-turn chat service in Node.js and want to route through Baidu's international BSA endpoint (baidu/ernie-light-dt-1.0-intl), use the TypeScript OpenAI SDK:
import OpenAI from "openai";
const openai = new OpenAI({
baseURL: "https://openrouter.ai/api/v1",
apiKey: process.env.OPENROUTER_API_KEY,
defaultHeaders: {
"HTTP-Referer": "https://llmapiguide.com",
"X-Title": "LLM API Guide",
},
});
async function runLightDT() {
const completion = await openai.chat.completions.create({
model: "baidu/ernie-light-dt-1.0-intl",
messages: [
{
role: "system",
content: "Extract key architectural constraints from the conversation history.",
},
{
role: "user",
content: "Summarize how Baidu Sparse Attention (BSA) compresses historical KV cache entries.",
},
],
temperature: 0.7,
max_tokens: 4096,
});
console.log(completion.choices[0].message.content);
}
runLightDT();
EU Routing Restrictions and Why the API Beats Self-Hosting the 280B Weights
Prices in this section are as of 2026-11-11.
There are two regional and licensing constraints you need to factor into your deployment plan. First, baidu/ernie-5.5-flash-preview on OpenRouter does not support EU in-region routing (Not currently available through EU in-region routing). Because Baidu Qianfan serves the model out of a single non-EU provider region, any request sent with OpenRouter's EU data-residency enforcement enabled will be rejected. If you serve European customers with strict regional routing policies, keep qwen/qwen3.8-flash or google/gemini-3.8-flash configured as an automatic fallback.
Second, you might wonder why you should pay $0.28/$1.13 per million tokens when Baidu released the weights for baidu/ERNIE-5.5-Flash-Base for free on Hugging Face. In practice, self-hosting those weights is a non-starter for almost every application team. The open-weight release is a raw pretrained base checkpoint—it has no chat template, no instruction tuning, and no tool-calling parser, meaning it only serves raw text continuations on /v1/completions rather than /v1/chat/completions. Even in FP8 precision, the weights take up roughly 283 GiB (304 GB on disk), which barely fits on four 80GB H100 GPUs at a 0.93 memory utilization cap with zero concurrency above 32K context, and requires vllm==0.32.0 with Baidu's custom baidu/vLLM-ERNIE plugin or four 141GB H200 / 192GB B200 GPUs to serve at scale.
More importantly, the downloadable weights are governed by the ERNIE 5.5 Flash Base Model License Agreement v1.0, which explicitly excludes the European Union, the United Kingdom, and South Korea from using the weights, derivatives, or outputs, caps free commercial use at $50 million in annual revenue, requires emailing Baidu before commercial launch, and forces you to display a "Powered by ERNIE" badge. Calling baidu/ernie-5.5-flash-preview through the API lets you skip the 300GB GPU cluster and get the actual post-trained, tool-capable chat model at 234 tokens per second for a fraction of a cent per call.