Baidu
ERNIE 5.1
ernie-5.1
ERNIE 5.1 is a high-efficiency flagship foundation model released by Baidu in May 2026. It is designed to deliver superior reasoning, creativity, and agentic capabilities while significantly reducing training costs by 94% compared to similar models
Total Context123K
Input / 1M Tokens¥0.59
Output / 1M Tokens¥2.65
Providers for ERNIE 5.1
AnyInt routes requests to the best providers that are able to handle your prompt size and parameters, with fallbacks to maximize uptime.
Baidu
Total Context123K
Input / 1M Tokens¥0.59
Output / 1M Tokens¥2.65
Sample code and API for ERNIE 5.1
AnyInt generates a quickstart from this model's declared API operations, including complete polling flows for asynchronous media.
Choose an operation and language that match this model.
ResponsesOpenAI compatible
Call the standard operation supported by this model.
/v1/responsescurl 'https://api.anyint.ai/v1/responses' \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-d '{
"model": "ernie-5.1",
"input": "Describe a calm futuristic city at sunrise."
}'Popular Models
Explore the most popular AI models, covering text generation, coding, image processing and more
DeepSeek V4 Flash 0731DeepSeek V4 Flash 0731 supports Text input and Text output through OpenAI, Anthropic, Gemini.DeepSeek: DeepSeek V4 Pro 0813DeepSeek: DeepSeek V4 Pro 0813 supports Text input and Text output through OpenAI, Anthropic, Gemini.GLM 5.3GLM 5.3 supports Text input and Text output through OpenAI, Anthropic, Gemini.Z.ai: GLM 5.3 FlashZ.ai: GLM 5.3 Flash supports Text, Image, Video, File input and Text output through OpenAI, Anthropic, Gemini.Kimi K3Kimi K3 supports Text, Image, Video input and Text output through OpenAI, Anthropic, Gemini.MoonshotAI: Kimi K3.1 ProMoonshotAI: Kimi K3.1 Pro supports Text, Image, Video input and Text output through OpenAI, Anthropic, Gemini.GLM 5.1GLM 5.1 supports Text input and Text output through OpenAI, Anthropic, Gemini.HappyHorse-1.0-t2vHappyHorse-1.0-t2v supports Text input and Video output through OpenAI, Anthropic, Gemini.Kimi K2.6Kimi K2.6 supports Text, Image, Video input and Text output through OpenAI, Anthropic, Gemini.MiniMax M2.5MiniMax M2.5 supports Text input and Text output through OpenAI, Anthropic, Gemini.