Files
openclaw/docs/providers/qianfan.md

39 lines
1.1 KiB
Markdown
Raw Normal View History

2026-02-04 16:36:37 +08:00
---
2026-02-04 22:57:34 +08:00
summary: "Use Qianfan's unified API to access many models in OpenClaw"
2026-02-04 16:36:37 +08:00
read_when:
- You want a single API key for many LLMs
- You need Baidu Qianfan setup guidance
title: "Qianfan"
---
2026-02-04 22:57:34 +08:00
# Qianfan Provider Guide
2026-02-04 16:36:37 +08:00
Qianfan is Baidu's MaaS platform, provides a **unified API** that routes requests to many models behind a single
endpoint and API key. It is OpenAI-compatible, so most OpenAI SDKs work by switching the base URL.
## Prerequisites
1. A Baidu Cloud account with Qianfan API access
2. An API key from the Qianfan console
3. OpenClaw installed on your system
## Getting Your API Key
1. Visit the [Qianfan Console](https://console.bce.baidu.com/qianfan/ais/console/apiKey)
2. Create a new application or select an existing one
3. Generate an API key (format: `bce-v3/ALTAK-...`)
4. Copy the API key for use with OpenClaw
2026-02-05 14:04:23 +08:00
## CLI setup
2026-02-04 16:36:37 +08:00
```bash
openclaw onboard --auth-choice qianfan-api-key
```
## Related Documentation
- [OpenClaw Configuration](/gateway/configuration)
- [Model Providers](/concepts/model-providers)
- [Agent Setup](/concepts/agent)
2026-02-04 16:36:37 +08:00
- [Qianfan API Documentation](https://cloud.baidu.com/doc/qianfan-api/s/3m7of64lb)