Baidu

Baidu

CN
20 models available

Data handling can vary by model and deployment. The privacy badge above shows the more conservative of the provider-wide fallback and the policies for routes on this page; each model page shows the policy for that specific route.

Models served by Baidu

ModelContextInput /MOutput /MCache read /MCache hitLatencyThroughput
163k$0.29/M$0.44/M$0.03/M22.9%1.1s39 tps
163k$0.29/M$0.44/M$0.03/M25.7%1.1s39 tps
1.0M$0.05/M$0.10/M$0.01/M52.1%0.7s86 tps
1.0M$0.05/M$0.10/M$0.01/M24.9%0.7s86 tps
1.0M$0.05/M$0.16/M$0.0017/M61.2%0.8s103 tps
1.0M$0.05/M$0.16/M$0.0017/M61.2%0.8s103 tps
1.0M$1.60/M$3.19/M$0.13/MN/A1s56 tps
1.0M$1.60/M$3.19/M$0.13/MN/A1s56 tps
1.0M$0.61/M$1.82/M$0.02/MN/A1.6s45 tps
1.0M$0.61/M$1.82/M$0.02/M14.9%1.6s45 tps
200k$0.73/M$2.35/M$0.15/M0%1.1s55 tps
200k$0.73/M$2.35/M$0.15/M0%1.1s55 tps
200k$1.01/M$3.18/M$0.19/M42.7%0.9s64 tps
200k$1.01/M$3.18/M$0.19/M21.8%0.9s64 tps
1.0M$0.58/M$1.83/M$0.11/M87.2%1s59 tps
1.0M$0.58/M$1.83/M$0.11/M87.7%1s59 tps
1.0M$0.94/M$2.94/M$0.17/M0%1.5s69 tps
1.0M$0.94/M$2.94/M$0.17/M<0.1%1.5s69 tps
256k$0.39/M$1.65/M$0.07/MN/A1.6s38 tps
256k$0.39/M$1.65/M$0.07/MN/A1.6s38 tps

Prices are per million tokens. Selectable routes include the applicable provider-selection markup; fixed routes show the standard model price. Availability and pricing refresh continuously; each model page shows the live provider comparison.

Using Baidu via the API

For models with provider selection, append :baidu to the model ID, set "provider": "baidu" in the request body, or send an X-Provider: baidu header. Explicit provider selection adds a route-specific markup over that provider's base price; the prices in the table above already include it. Models without provider selection use the displayed model ID without a provider suffix or selection surcharge.

curl https://nano-gpt.com/api/v1/chat/completions \
  -H "Authorization: Bearer $NANOGPT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek/deepseek-v3.2:baidu",
    "messages": [{"role": "user", "content": "Hello"}]
  }'

See the API documentation for provider preferences, price-aware routing, and error behavior.