VMRack

广告

安信SSL证书

广告

百度千帆Coding Plan购买及使用指南

美国云服务器推荐

千帆Coding Plan是百度智能云旗下千帆大模型为开发者打造的AI编码订阅服务,支持接入多种主流代码模型,兼容主流AI编程工具,覆盖代码编写、理解与优化等场景,全面提升开发效率与代码质量。本文主要为大家介绍百度千帆Coding Plan购买及使用指南,助力用户开启AI编程新体验。

点击进入:百度智能云官网

一、购买百度千帆Coding Plan套餐

点击上述链接进入百度智能云官网,点击“大模型”,选择“百度千帆”。

购买百度千帆Coding Plan

在以下界面,选择“百度千帆Coding Plan”。

购买百度千帆Coding Plan

进入百度千帆Coding Plan购买页,点击“立即购买”,可以看到具体的套餐方案。

购买百度千帆Coding Plan

购买百度千帆Coding Plan

用户可以根据实际需求选择并购买套餐。

购买完成后,可在百度千帆订阅管理页面查看套餐用量、升级与续费套餐。

二、获取百度千帆Coding Plan套餐专属API Key

在配置文件中指定模型为qianfan-code-latest

通过百度千帆控制台系统配置-订阅管理页面调整配置,调整后预计一分钟左右生效。

获取专属API Key

Coding Plan有专属服务接口,接口Base URL如下

  • 兼容 OpenAI 接口协议的Base URL:https://qianfan.baidubce.com/v2/coding,如果是接口调用,完整路径为:https://qianfan.baidubce.com/v2/coding/chat/completions
  • 兼容 Anthropic 接口协议的Base URL:https://qianfan.baidubce.com/anthropic/coding,如果是接口调用,完整路径为:https://qianfan.baidubce.com/anthropic/coding/v1/messages

Coding Plan会生成专属API Key,这个API Key只可以用于Coding Plan专属接口。

获取专属API Key

三、接入AI编程工具

OpenClaw是一款开源、自托管的个人AI助手,下文介绍如何在OpenClaw中使用百度智能云千帆的Coding Plan。

1、安装OpenClaw

安装或更新Node.js 22或更新版本。

macOS/Linux:

curl -fsSL https://openclaw.ai/install.sh | bash

Windows:

iwr -useb https://openclaw.ai/install.ps1 | iex

2、配置网络与模型参数

创建并打开配置文件:

macOS/Linux:

mkdir -p ~/.openclaw vim ~/.openclaw/openclaw.json

Windows:

mkdir %USERPROFILE%\.openclaw notepad %USERPROFILE%\.openclaw\openclaw.json

添加配置:将以下内容完整填入openclaw.json。

{ “models”: { “mode”: “merge”, “providers”: { “baiduqianfancodingplan”: { “baseUrl”: “https://qianfan.baidubce.com/v2/coding”, “apiKey”: “请填入您的千帆API Key”, “api”: “openai-completions”, “models”: [ { “id”: “qianfan-code-latest”, “name”: “qianfan-code-latest”, “reasoning”: false, “input”: [ “text” ], “cost”: { “input”: 0.0025, “output”: 0.01, “cacheRead”: 0, “cacheWrite”: 0 }, “contextWindow”: 98304, “maxTokens”: 65536 } ] } } }, “agents”: { “defaults”: { “model”: { “primary”: “baiduqianfancodingplan/qianfan-code-latest” }, “models”: { “baiduqianfancodingplan/qianfan-code-latest”: {} }, “compaction”: { “mode”: “safeguard” }, “maxConcurrent”: 4, “subagents”: { “maxConcurrent”: 8 } } } }

3、启动配置

配置完成后,在终端执行以下命令启动OpenClaw。

openclaw onboard –install-daemon

相关推荐:

2026年国内主流AI模型Coding Plan价格、功能盘点

腾讯云Coding Plan购买并接入OpenClaw教程

UCloud优云智算Coding Plan购买及使用指南

阿里云百炼Coding Plan购买及使用指南

(本文由美国主机侦探原创,转载请注明出处“美国主机侦探”和原文地址!)

主机侦探企业微信

微信扫码加好友进群

主机优惠码及时掌握

主机侦探QQ群

QQ群号:164393063

主机优惠发布与交流

温馨提示:

1、本站部分图片来源于互联网,如有侵权请联系删除。邮箱:2942802716#qq.com(#改为@)

2、本文评论没有专人回复,如果您有问题请到美国主机侦探论坛提问!

3、美国主机侦探免费为您提供美国主机购买咨询。

RAKsmart美国服务器
下一篇
购买百度千帆Coding Plan
已经没有了
返回顶部