Back to models
baidu-qianfan

ERNIE 5.1

ernie-5.1
baidu-qianfan0 contextFree

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 Context0
PricingFree

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-qianfan
Total Context0
PricingFree

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.

Create API key

Choose an operation and language that match this model.

ResponsesOpenAI compatible

Call the standard operation supported by this model.

/v1/responses
curl '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."
}'