Model API guides / Baidu ERNIE
Baidu ERNIE API integration
Baidu Qianfan model family
ERNIE (文心) models are served via Baidu’s Qianfan platform. Look up the public model or account-specific route exposed by TokenPilot before configuring a client.
Check model access
Model availability depends on the channels enabled for your account and the scope of your TokenPilot key. Request the model list and copy an exact ID before calling the model.
curl "https://api.tokentpilot.com/v1/models" \
-H "Authorization: Bearer $TOKENPILOT_API_KEY"
Choose a compatible endpoint
/v1/chat/completions
A direct Qianfan request may use different credentials, an upstream URL or option names. Send your TokenPilot key to the TokenPilot endpoint and test the simplest chat schema first.