Ernie 5.1
ernie-5.1Pricing
List prices at AIHubMix, in US dollars per million tokens.
| Tier | Input / 1M | Output / 1M | |
|---|---|---|---|
| Standard | $0.563 | $2.54 | |
| Cached input | $0.563 |
What it costs a month
At AIHubMix list prices, 30 days.
- Chat assistant5,000 requests a day, 2K in / 0.5K out, cached$359
- RAG over documents2,000 requests a day, 8K in / 0.6K out, cached$362
- Coding agent1,000 requests a day, 40K in / 2K out, cached$828
- Overnight batch20,000 requests a day, 4K in / 0.4K out$1,961
Where to run it
1 host serve Ernie 5.1. The comparison is on blended price, 3 parts input to 1 part output.
| Host | In / out per 1M | Model id | |
|---|---|---|---|
AIHubMixGateway ernie-5.1 | $0.563 / $2.54 | ernie-5.1 |
Capabilities
Core
- Streaming
- Function calling
- JSON mode
- Structured outputs
Multimodal
- Vision
- Image input
- Audio
- Image generation
- Video
Advanced
- Reasoning
- Tool calling
- MCP
- Prompt caching
- Batch API
- Embeddings
- Takes in
- Text
- Produces
- Text
- Features
- Prompt caching
Cheaper alternatives
Current models that cost less and keep most of what this one can do: tools, vision, reasoning, structured output, caching and enough context.
Same model, cheaper host
No host sells it for less than AIHubMix.
Smaller Independent models
No cheaper Independent model keeps its key capabilities.
Other frontier labs
- 20% less
- 56% less
- 81% less
- 81% less
Open-weight picks
- 17% less
- 19% less
- 25% less
- 35% less
Call it
Using AIHubMix's API.
from litellm import completion
response = completion(
model="aihubmix/ernie-5.1",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)Quick answers
How much does Ernie 5.1 cost?
On AIHubMix, Ernie 5.1 costs $0.563 per million input tokens and $2.54 per million output tokens. Cached input costs $0.563 per million tokens.
Which APIs offer Ernie 5.1?
Ernie 5.1 runs on 1 API: AIHubMix.
What is Ernie 5.1's context window?
119K tokens, with up to 66K tokens in one reply.
Is Ernie 5.1 being retired?
No retirement date is scheduled for it on any API we track.
What are cheaper alternatives to Ernie 5.1?
Models that cost less and keep most of what it can do: Gemini 3.5 Flash Lite on Google AI Studio (20% less), GPT-5.4 Nano on OpenAI (56% less) and Motif 3 on ai& (17% less). Savings are on a mix of 3 input tokens to 1 output token.
What is Ernie 5.1's API model id?
Use ernie-5.1 with AIHubMix.
Sources
Raw catalog entry for ernie-5.1 on AIHubMix
{
"cache_read_input_token_cost": 5.634e-7,
"input_cost_per_token": 5.634e-7,
"litellm_provider": "aihubmix",
"max_input_tokens": 119000,
"max_output_tokens": 65536,
"mode": "chat",
"output_cost_per_token": 0.0000025353,
"source": "https://aihubmix.com/api/v1/models",
"supports_prompt_caching": true,
"supports_reasoning": true
}