# ERNIE 5.5 Flash Preview (free) Model id on AIHubMix: `ernie-5.5-flash-preview-free` Create an API key: https://console.aihubmix.com/?utm_source=llms-agent&utm_medium=model-llms > ERNIE 5.5 Flash Preview is the latest foundational model in Baidu's Wenxin (ERNIE) series, comprehensively optimized for programming, agents, knowledge work, and deep research. It has 280 billion total parameters, activates 14 billion parameters per token, and supports a 1M-token context window. **Free tier of `ernie-5.5-flash-preview`.** The capability list and parameter schema below are those of `ernie-5.5-flash-preview` — the two ids are served by the same upstream model through the same gateway, so what the model can do is identical. What differs is quota: the free tier is rate- and volume-limited, and can return HTTP 429 where the paid id would not. Send requests with `"model":"ernie-5.5-flash-preview-free"`, not `"ernie-5.5-flash-preview"`. For the paid id's own document see https://aihubmix.com/model/ernie-5.5-flash-preview/llms.txt. - Developer: Baidu - Input modalities: text - Capabilities: Thinking, Streaming, Tool calling, Structured outputs, Prompt caching - Release date: 2026-11-10 - Pricing: free tier / see model page ## Endpoints (base URL: https://aihubmix.com) - `POST /v1/chat/completions` — OpenAI Chat Completions (`Authorization: Bearer $AIHUBMIX_API_KEY`) ## Example ```bash curl -s https://aihubmix.com/v1/chat/completions \ -H "Authorization: Bearer $AIHUBMIX_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model":"ernie-5.5-flash-preview-free","messages":[{"role":"user","content":"Hello"}]}' ``` ## Response Without `stream`, `/v1/chat/completions` returns a standard Chat Completions object: ```json {"id":"...","object":"chat.completion","model":"ernie-5.5-flash-preview-free","choices":[{"message":{"role":"assistant","content":"..."}}],"usage":{"prompt_tokens":12,"completion_tokens":24,"total_tokens":36}} ``` With `"stream": true` the response is `text/event-stream`: read each `data:` JSON chunk until `data: [DONE]`. The Messages and Gemini endpoints return their protocols' native response shapes (Anthropic / Google). ## Errors Error responses carry a `tid` (trace id) — include it when contacting support. Reference: https://docs.aihubmix.com/en/FAQs/HTTP-Codes.md - 400 — parameter error; most are passed through from the upstream provider (media: `prompt_missing`, `size_not_supported`, `n_not_within_range`, …) - 401 — missing `Authorization` header, or the key is invalid/expired - 403 — `insufficient_user_quota` (top up at https://console.aihubmix.com/?utm_source=llms-agent&utm_medium=model-llms), account suspended, or this key is not allowed to use this model - 429 — rate limited; back off and retry - 503 — no channel can serve the request (check the model id and your access), or the upstream provider is throttling; retry later ## More - Model page: https://aihubmix.com/model/ernie-5.5-flash-preview-free - Try in browser: https://aihubmix.com/playground?model=ernie-5.5-flash-preview-free - Compare with another model (human-facing, side-by-side specs and pricing): https://aihubmix.com/compare — pick this model and a peer there; published pairs are listed in https://aihubmix.com/sitemap-compare.xml, unpublished pairs 404 so do not compose the path by hand - Full parameter schema (machine-readable, authoritative): https://aihubmix.com/model-data/models/ernie-5.5-flash-preview.ff66a595.json — per-protocol parameters with types, ranges, enums and defaults, published under `ernie-5.5-flash-preview` (same upstream model). Refreshed together with this page; if it ever 404s, re-resolve via `https://aihubmix.com/model-data/index.json` (find `ernie-5.5-flash-preview`, fetch its `path`) - Generate runnable code programmatically: npm `@aihubmix/codegen` — the generator behind the Playground's "Get Code" (4 protocols × 7 languages, media endpoints included); the body it builds is the exact wire body the Playground sends, so generated snippets and real requests cannot diverge. `@aihubmix/model-schema` (npm) translates the parameter schema above into codegen input - Site index for agents: https://aihubmix.com/llms.txt · Onboarding: https://aihubmix.com/agents.md --- Canonical version of this document: https://aihubmix.com/model/ernie-5.5-flash-preview-free/llms.txt