返回顶部
i

imgbb-apiImgBB图像上传

Upload images to ImgBB and get shareable URLs. Use when: (1) User wants to upload images to imgbb, (2) Need to get direct image URLs for sharing, (3) Converting local images to shareable links, (4) Bulk uploading images, (5) Uploading from URL, (6) Base64 encoding.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.1.2
安全检测
已通过
313
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

imgbb-api

ImgBB API

将图片上传至ImgBB并获取可分享的链接。

技能触发条件

当用户希望将图片上传至网络进行分享时,此技能将被触发。

推理框架

步骤操作原因
1检查确认API密钥可用
2
准备 | 获取图片路径或URL | | 3 | 上传 | 发送至ImgBB API | | 4 | 返回 | 返回可分享的链接 |

设置

bash
export IMGBBAPIKEY=yourapikey_here


echo yourapikey > ~/.imgbbapikey

获取API密钥

  1. 1. 访问 https://api.imgbb.com/
  2. 点击获取API密钥
  3. 复制您的API密钥

决策树

├── 上传单张图片 → python imgbb.py image.jpg
├── 从URL上传 → python imgbb.py --url URL
├── 自定义名称 → python imgbb.py image.jpg --name myimg
├── 设置过期时间 → python imgbb.py image.jpg --expiration 3600
├── 批量上传 → python imgbb.py --batch ./folder/
└── JSON输出 → python imgbb.py image.jpg --json



使用方法

bash

上传文件


python imgbb.py image.jpg

使用自定义API密钥

python imgbb.py image.jpg --key YOUR_KEY

从URL上传

python imgbb.py --url https://...

批量上传

python imgbb.py --batch ./folder/

JSON输出

python imgbb.py image.jpg --json

选项

标志描述
image图片路径
--key
API密钥 | | --url | 从URL上传 | | --name | 自定义名称 | | --expiration | 过期秒数 | | --json | JSON输出 | | --batch | 批量文件夹 | | --set-key | 保存API密钥 |

故障排除

未找到API密钥

  • - 解决方法:设置IMGBBAPIKEY环境变量或使用--key

文件未找到

  • - 解决方法:检查文件路径是否正确

图片格式无效

  • - 解决方法:使用JPG、PNG、GIF或WEBP格式

图片过大

  • - 解决方法:压缩至32MB以下

快速参考

任务命令
上传python imgbb.py image.jpg
URL
python imgbb.py --url URL | | 批量 | python imgbb.py --batch ./folder/ | | JSON | python imgbb.py image.jpg --json |

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 imgbb-api-1776276828 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 imgbb-api-1776276828 技能

通过命令行安装

skillhub install imgbb-api-1776276828

下载

⬇ 下载 imgbb-api v1.1.2(免费)

文件大小: 3.36 KB | 发布时间: 2026-4-16 17:04

v1.1.2 最新 2026-4-16 17:04
- Added "requests" to the required Python packages in the setup metadata.
- No changes to user-facing functionality or interface.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部