Knowledge Base Skill
支持图片附件与OCR的文字提取,按业务类型管理问答知识库。
通过API调用实现网页、文件、音视频等内容的智能摘要与多模态生成。
openclaw skills install @quincygunter/smart-summarize命令、参数、文件名以原文为准
一个 API 密钥,支持 50 多个来自不同服务商的模型(包括 Bedrock、OpenAI、Vertex、ElevenLabs、Replicate、Minimax 等)。可通过模型 ID 直接调用任意模型,或使用智能路由功能,自动选择最便宜或质量最高的选项来完成任务。
基础地址: https://api.heybossai.com/v1
认证方式: -H "Authorization: Bearer $SKILLBOSS_API_KEY"
curl -s https://api.heybossai.com/v1/models \
-H "Authorization: Bearer $SKILLBOSS_API_KEY"按类型筛选:
curl -s "https://api.heybossai.com/v1/models?types=image" \
-H "Authorization: Bearer $SKILLBOSS_API_KEY"获取特定模型的完整文档:
curl -s "https://api.heybossai.com/v1/models?ids=mm/img,bedrock/claude-4-5-sonnet" \
-H "Authorization: Bearer $SKILLBOSS_API_KEY"模型类型:chat、image、video、tts、stt、music、search、scraper、email、storage、ppt、embedding
curl -s -X POST https://api.heybossai.com/v1/chat/completions \
-H "Authorization: Bearer $SKILLBOSS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "bedrock/claude-4-5-sonnet",
"messages": [{"role": "user", "content": "解释量子计算"}]
}'| 参数 | 说明 |
|---|---|
model | 模型标识符,如 bedrock/claude-4-5-sonnet、bedrock/claude-4-6-opus、openai/gpt-5、vertex/gemini-2.5-flash、deepseek/deepseek-chat |
messages | 包含 {role, content} 对象的数组 |
system | 可选的系统提示 |
temperature | 可选,取值范围 0.0–1.0 |
max_tokens | 可选,最大输出 token 数量 |
返回结果:choices[0].message.content
curl -s -X POST https://api.heybossai.com/v1/run \
-H "Authorization: Bearer $SKILLBOSS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "mm/img",
"inputs": {"prompt": "群山上的日落"}
}'保存为文件:
URL=$(curl -s -X POST https://api.heybossai.com/v1/run \
-H "Authorization: Bearer $SKILLBOSS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "mm/img", "inputs": {"prompt": "群山上的日落"}}' \
| jq -r '.image_url // .result.image_url // .data[0]')
curl -sL "$URL" -o sunset.png| 参数 | 说明 |
|---|---|
model | 模型标识符,如 mm/img、replicate/black-forest-labs/flux-2-pro、replicate/black-forest-labs/flux-1.1-pro-ultra、vertex/gemini-2.5-flash-image-preview、vertex/gemini-3-pro-image-preview |
inputs.prompt | 描述图像的文本内容 |
inputs.size | 可选,例如 "1024*768" |
inputs.aspect_ratio | 可选,例如 "16:9" |
返回结果:image_url、data[0] 或 generated_images[0]
curl -s -X POST https://api.heybossai.com/v1/run \
-H "Authorization: Bearer $SKILLBOSS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "mm/t2v",
"inputs": {"prompt": "一只猫在玩毛线"}
}'图像转视频:
curl -s -X POST https://api.heybossai.com/v1/run \
-H "Authorization: Bearer $SKILLBOSS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "mm/i2v",
"inputs": {"prompt": "缓慢拉近镜头", "image": "https://example.com/photo.jpg"}
}'| 参数 | 说明 |
|---|---|
model | mm/t2v(文本生成视频)、mm/i2v(图像生成视频)、vertex/veo-3-generate-preview |
inputs.prompt | 文本描述 |
inputs.image | 图像 URL(用于 i2v) |
inputs.duration | 可选,持续时间(秒) |
返回结果:video_url
curl -s -X POST https://api.heybossai.com/v1/run \
-H "Authorization: Bearer $SKILLBOSS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "minimax/speech-01-turbo",
"inputs": {"text": "你好世界", "voice_setting": {"voice_id": "male-qn-qingse", "speed": 1.0}}
}'| 参数 | 说明 |
|---|---|
model | 模型标识符,如 minimax/speech-01-turbo、elevenlabs/eleven_multilingual_v2、openai/tts-1 |
inputs.text | 要朗读的文本 |
inputs.voice | 语音名称(如 alloy、nova、shimmer),适用于 OpenAI |
inputs.voice_id | ElevenLabs 的语音 ID |
返回结果:audio_url 或二进制音频数据
curl -s -X POST https://api.heybossai.com/v1/run \
-H "Authorization: Bearer $SKILLBOSS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/whisper-1",
"inputs": {"audio_data": "BASE64_AUDIO", "filename": "recording.mp3"}
}'返回结果:text
curl -s -X POST https://api.heybossai.com/v1/run \
-H "Authorization: Bearer $SKILLBOSS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "replicate/elevenlabs/music",
"inputs": {"prompt": "欢快的电子音乐", "duration": 30}
}'| 参数 | 说明 |
|---|---|
model | 模型标识符,如 replicate/elevenlabs/music、replicate/meta/musicgen、replicate/google/lyria-2 |
inputs.prompt | 音乐风格描述 |
inputs.duration | 持续时间(秒) |
返回结果:audio_url
curl -s -X POST https://api.heybossai.com/v1/run \
-H "Authorization: Bearer $SKILLBOSS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "replicate/remove-bg",
"inputs": {"image": "https://example.com/photo.jpg"}
}'返回结果:image_url 或 data[0]
curl -s -X POST https://api.heybossai.com/v1/run \
-H "Authorization: Bearer $SKILLBOSS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "reducto/parse",
"inputs": {"document_url": "https://example.com/file.pdf"}
}'| 参数 | 说明 |
|---|---|
model | reducto/parse(将 PDF/DOCX 转为 Markdown)、reducto/extract(结构化信息提取) |
inputs.document_url | 文档的 URL 地址 |
inputs.instructions | 用于提取时指定结构化规则,如 {"schema": {...}} |
---
name: Summarize
version: 1.0.0
description: 从文本中提取关键信息,生成简洁摘要。
summary: 快速生成内容摘要,适用于新闻、文章、报告等文本处理。
tags:
- summarization
- text-processing
- AI
---
## 搜索curl -s -X POST https://api.heybossai.com/v1/run \
-H "Authorization: Bearer $SKILLBOSS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "linkup/search",
"inputs": {"query": "latest AI news", "depth": "standard", "outputType": "searchResults"}
}'
| 参数 | 描述 |
|------|------|
| `model` | `linkup/search`、`perplexity/sonar`、`firecrawl/scrape` |
| `inputs.query` | 搜索关键词 |
| `inputs.depth` | `standard`(标准)或 `deep`(深度) |
| `inputs.outputType` | `searchResults`(搜索结果)、`sourcedAnswer`(带来源的答案)、`structured`(结构化数据) |
## 邮件curl -s -X POST https://api.heybossai.com/v1/run \
-H "Authorization: Bearer $SKILLBOSS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "email/send",
"inputs": {"to": "user@example.com", "subject": "Hello", "html": "<p>Hi</p>"}
}'
## 短信验证码
发送 OTP:curl -s -X POST https://api.heybossai.com/v1/run \
-H "Authorization: Bearer $SKILLBOSS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "prelude/verify-send",
"inputs": {"target": {"type": "phone_number", "value": "+1234567890"}}
}'
验证 OTP:curl -s -X POST https://api.heybossai.com/v1/run \
-H "Authorization: Bearer $SKILLBOSS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "prelude/verify-check",
"inputs": {"target": {"type": "phone_number", "value": "+1234567890"}, "code": "123456"}
}'
## 智能模式(自动选择最佳模型)
列出任务类型:curl -s -X POST https://api.heybossai.com/v1/pilot \
-H "Authorization: Bearer $SKILLBOSS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"discover": true}'
执行任务:curl -s -X POST https://api.heybossai.com/v1/pilot \
-H "Authorization: Bearer $SKILLBOSS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "image",
"inputs": {"prompt": "A sunset over mountains"}
}'
## 可用模型(50+)
| 类别 | 模型 | 说明 |
|------|------|------|
| 对话 | 25+ 模型 — Claude、GPT、Gemini、DeepSeek、Qwen、HuggingFace | `chat-models.md` |
| 图像 | 9 模型 — Gemini、FLUX、图像放大、背景移除 | `image-models.md` |
| 视频 | 3 模型 — Veo、文本转视频、图像转视频 | `video-models.md` |
| 音频 | 11 模型 — 文本转语音(TTS)、语音转文字(STT)、音乐生成 | `audio-models.md` |
| 搜索与抓取 | 19 模型 — Perplexity、Firecrawl、ScrapingDog、CEO访谈等 | `search-models.md` |
| 工具类 | 11 模型 — 文档处理、邮件、短信、嵌入向量、演示文稿生成 | `tools-models.md` |
注意事项:
- 在 [https://www.skillboss.co](https://www.skillboss.co) 获取 `SKILLBOSS_API_KEY`
- 使用 models 接口可实时发现所有可用模型
- 使用智能模式(pilot)可自动为任意任务选择最优模型已收录 1 个 Skill