impulse

Ernie 5.1

API id ernie-5.1
Input / 1M
$0.563
at AIHubMix
Output / 1M
$2.54
at AIHubMix
Context window
119K
tokens
Max output
66K
tokens per reply
Hosts
1
1 listings
Released
-
date not published

Pricing

List prices at AIHubMix, in US dollars per million tokens.

TierInput / 1MOutput / 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
Use your own numbers

Where to run it

1 host serve Ernie 5.1. The comparison is on blended price, 3 parts input to 1 part output.

HostIn / out per 1M
AIHubMixGateway
ernie-5.1
$0.563 / $2.54

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

  • Gemini 3.5 Flash Lite
    Google · on Google AI Studio
    $0.30 / $2.50
    Has every key capability
    20% less
  • GPT-5.4 Nano
    OpenAI · on OpenAI
    $0.20 / $1.25
    Has every key capability
    56% less
  • Claude Haiku 5.5
    Anthropic · on Anthropic
    $0.10 / $0.50
    Has every key capability
    81% less
  • GPT-6 Luna
    OpenAI · on OpenAI
    $0.10 / $0.50
    Has every key capability
    81% less

Open-weight picks

  • Motif 3
    Independent · on ai&
    $0.50 / $2.00
    Has every key capability
    17% less
  • GLM 5.3
    Zhipu AI · on CLF AI Gateway
    $0.56 / $1.76
    Has every key capability
    19% less
  • DeepSeek V4 Pro
    DeepSeek · on CLF AI Gateway
    $0.528 / $1.58
    Has every key capability
    25% less
  • Kimi K2.7 Code
    Moonshot AI · on CLF AI Gateway
    $0.38 / $1.60
    Has every key capability
    35% less

Call it

Using AIHubMix's API.

Python
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
}