von Baidu
Baidu ERNIE Light DT 1.0, a lightweight long-context reasoning model built on sparse attention; text in, text out, 512K-token context, up to 128K output tokens, function calling, structured output and prompt caching supported. Reasoning is on by default and turns off only through the model's own thinking switch, not the standard effort setting.
524K
524.288 Token
131K
131.072 Token
$0.7203
pro 1M Token
$2.5207
pro 1M Token
curl "https://router-api.0g.ai/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-d '{
"model": "ernie-light-dt-1.0",
"messages": [
{"role": "user", "content": "Hello!"}
],
"stream": true
}'Anbieter-Routing
Steuern Sie, welcher Anbieter Ihre Anfrage bearbeitet, mit den X-0G-Provider-*-Anfrage-Headern.
X-0G-Provider-Address legt einen Anbieter fest; X-0G-Provider-Identity legt fest, welcher seiner vorgelagerten Dienste für das Routing verwendet wird – beide Werte stammen aus den Feldern address und provider_identity von GET /v1/providers. Zusammen adressieren sie einen bestimmten vorgelagerten Dienst eines Anbieters. Werden beide nicht gesendet, wählt der Router genau wie zuvor anhand von Preis und Zustand aus.
curl "https://router-api.0g.ai/v1/chat/completions" \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-H "X-0G-Provider-Address: <PROVIDER_ADDRESS>" \
-H "X-0G-Provider-Identity: <UPSTREAM>" \
-H "X-0G-Provider-Sort: latency" \
-H "X-0G-Provider-Allow-Fallbacks: true" \
-d '{
"model": "ernie-light-dt-1.0",
"messages": [{"role": "user", "content": "Hello!"}]
}'