qianfan-tools

百度千帆工具箱 - 集成百度千帆平台多种免费 API | Baidu Qianfan Tools - Integrate Baidu Qianfan Platform APIs

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "qianfan-tools" with this command: npx skills add 寇助理/qianfan-tools

百度千帆工具箱 | Baidu Qianfan Tools

集成百度千帆平台 API,一个技能搞定多个工具! Integrate Baidu Qianfan Platform APIs - one skill for multiple tools!

📋 功能列表 | Features

✅ 已测试可用 | Tested & Working

功能脚本描述
智能搜索ai-search.js搜索 + AI 总结,返回结构化结果
百度热搜hotword.js获取实时热搜榜单

🔧 支持的 API (需开通) | Supported APIs (Requires Activation)

功能脚本描述赠送额度
文本生成chat.js文心大模型对话-
续写continue.js文本续写-
图像生成image.jsAI 绘图-
通用 OCRocr.js图片文字识别-
作文识别ocr-essay.js手写作文 OCR10次/天
PPT生成ppt.js智能 PPT5次/天
百度学术academic.js学术搜索1000次/天

🚀 快速开始 | Quick Start

1. 配置 API Key | Configure API Key

在 Skills 配置页面填写 BAIDU_API_KEY,或编辑 ~/.openclaw/openclaw.json

{
  "skills": {
    "entries": {
      "qianfan-tools": {
        "env": {
          "BAIDU_API_KEY": "你的百度千帆 API Key"
        }
      }
    }
  }
}

本地使用 | Local usage:

cp config.example.json config.json
# 编辑 config.json 填入 apiKey

2. 使用方式 | Usage

cd skills/qianfan-tools
export BAIDU_API_KEY="你的APIKey"

# 智能搜索 | Smart Search
node scripts/ai-search.js "查询内容" [数量]

# 百度热搜 | Baidu Hot Search
node scripts/hotword.js

# 文本对话 (需开通) | Text Chat (requires activation)
node scripts/chat.js "你好"

# 图像生成 (需开通) | Image Generation (requires activation)
node scripts/image.js "一只可爱的猫"

# OCR 文字识别 (需开通) | OCR (requires activation)
node scripts/ocr.js <图片URL>

# PPT生成 (需开通) | PPT Generation (requires activation)
node scripts/ppt.js "主题内容"

# 百度学术 (需开通) | Academic Search (requires activation)
node scripts/academic.js "关键词" [数量]

📊 API 额度参考 | API Quota Reference

API每日赠送基础定价
智能搜索生成100次0.036元/次
百度搜索1000次0.036元/次
百度百科1000次0.036元/次
百度热搜10次0.06元/次
PPT生成5次2.5元/次
初中作文识别10次0.03元/次
高中作文识别10次0.05元/次
百度学术1000次0.07-0.66元/次

⚠️ 注意事项 | Notes

  1. API Key 获取: 访问 百度千帆控制台 创建 API Key
  2. 额度查询: 部分 API 需要在千帆平台开通才能使用
  3. 免费额度: 每日赠送额度用完后将按量计费

📁 项目结构 | Project Structure

qianfan-tools/
├── SKILL.md              # 本文档
├── _meta.json            # 元数据
├── package.json          # 依赖
├── config.example.json   # 配置模板
└── scripts/
    ├── shared.js         # 共享工具
    ├── ai-search.js      # 智能搜索 ✅
    ├── hotword.js        # 百度热搜 ✅
    ├── chat.js           # 文本对话
    ├── continue.js       # 文本续写
    ├── image.js          # 图像生成
    ├── ocr.js            # 通用 OCR
    ├── ocr-essay.js     # 作文 OCR
    ├── ppt.js            # PPT生成
    └── academic.js       # 百度学术

🔗 相关链接 | Links


提示: 本技能复用一个 API Key,统一管理更方便! Tip: This skill uses one API Key for all tools - unified management!

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Cclaw

Open-source comedy AI + video editing + poster generation. Create standup/sketch/manzai/scripts, edit videos via FFmpeg, and generate comedy posters via canv...

Registry SourceRecently Updated
General

Dlazy Seedance 1.5 Pro

Convert images into dynamic dance videos using Doubao Seedance 1.5 Pro.

Registry SourceRecently Updated
General

Pod Template Pack

Use when user needs ready-to-use POD (Print on Demand) design keywords, title templates, and listing copy. Use when creating POD product listings for TikTok,...

Registry SourceRecently Updated
General

Dlazy Mj.Imagine

Generate artistic images using Midjourney (MJ) model. Supports text-to-image.

Registry SourceRecently Updated