Skip to main content

Qianfan

Qianfan is Baidu’s MaaS platform that provides a unified OpenAI-compatible API for ERNIE and DeepSeek models. A single API key gives you access to all available models.

Requirements

  • A Baidu Cloud account with Qianfan API access enabled
  • A Qianfan API key (format: bce-v3/ALTAK-...) from the Qianfan Console

Quickstart

Or non-interactive:

Configuration

Environment variable

Config snippet

Provider settings

Available models

Use model IDs as qianfan/<model-id> (example: qianfan/deepseek-v3.2).

Troubleshooting

401 Unauthorized
  • Verify your API key starts with bce-v3/ALTAK- and is copied in full.
  • Re-run openclaw onboard --auth-choice qianfan-api-key to refresh the stored credential.
Model not found
  • Confirm the model ID matches exactly (case-sensitive).
  • Check that your Qianfan account has access to the requested model.