百度智能云千帆Coding Plan购买教程及优惠方案

百度智能云旗下千帆大模型为开发者打造了AI编码订阅服务——千帆Coding Plan。它支持接入多种主流代码模型,兼容主流AI编程工具,覆盖代码编写、理解与优化等场景,全面提升开发效率与代码质量。

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

一、百度千帆Coding Plan优惠方案

高性价比的Al Coding场景订阅服务,为用户提供畅快稳定的编码体验。

套餐类型 价格 用量限制
Coding Plan Lite 40/ 5小时:最多约1,200次请求
每周:最多约9,000次请求
每订阅月:最多约18,000次请求
Coding Plan Pro 200/ 5小时:最多约6,000次请求
每周:最多约45,000次请求
每订阅月:最多约90,000次请求

套餐升降级:

  • 支持将Lite套餐升级至Pro套餐,升级费用按剩余天数折算差价。升级后,当月剩余时间的可用额度将在原有剩余额度的基础上按比例增加。
  • 不支持从Pro套餐降级至Lite套餐。如需使用Lite套餐,需等待当前Pro套餐到期后重新购买Lite套餐。

注: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年国产大模型Coding Plan深度对比介绍

UCloud优云智算Coding Plan购买教程及优惠方案

阿里云百炼Coding Plan购买教程及优惠方案

腾讯云Coding Plan购买教程及优惠方案

使用教程

UCloud星图AstraFlow亮点介绍及快速调用教程

2026-4-30 17:44:46

使用教程

ERPNext中文如何设置?

2023-12-4 15:27:01

相关推荐