← 返回
内容创作 Key 中文

ImgBB API

Upload images to ImgBB via local file, URL, or base64 and get shareable direct links, supporting batch uploads and optional expiration settings.
通过本地文件、URL或Base64上传图片至ImgBB,获取可分享的直接链接,支持批量上传及可选的过期设置。
kexu9
内容创作 clawhub v1.1.2 1 版本 100000 Key: 需要
★ 1
Stars
📥 549
下载
💾 22
安装
1
版本
#latest

概述

ImgBB API

Upload images to ImgBB and get shareable URLs.

When This Skill Activates

This skill triggers when user wants to upload images to the web for sharing.

Reasoning Framework

StepActionWhy
-------------------
1CHECKVerify API key is available
2PREPAREGet image path or URL
3UPLOADSend to ImgBB API
4RETURNReturn shareable URL

Setup

export IMGBB_API_KEY="your_api_key_here"
# or
echo "your_api_key" > ~/.imgbb_api_key

Get API Key

  1. Go to https://api.imgbb.com/
  2. Click "Get API Key"
  3. Copy your API key

Decision Tree

├── Upload single image → python imgbb.py image.jpg
├── Upload from URL → python imgbb.py --url "URL"
├── Custom name → python imgbb.py image.jpg --name myimg
├── Set expiration → python imgbb.py image.jpg --expiration 3600
├── Batch upload → python imgbb.py --batch ./folder/
└── JSON output → python imgbb.py image.jpg --json

Usage

# Upload file
python imgbb.py image.jpg

# With custom API key
python imgbb.py image.jpg --key YOUR_KEY

# From URL
python imgbb.py --url "https://..."

# Batch upload
python imgbb.py --batch ./folder/

# JSON output
python imgbb.py image.jpg --json

Options

FlagDescription
-------------------
imagePath to image
--keyAPI key
--urlUpload from URL
--nameCustom name
--expirationExpiry seconds
--jsonJSON output
--batchBatch folder
--set-keySave API key

Troubleshooting

No API key found

  • Fix: Set IMGBB_API_KEY env or use --key

File not found

  • Fix: Check file path is correct

Invalid image format

  • Fix: Use JPG, PNG, GIF, or WEBP

Image too large

  • Fix: Compress under 32MB

Quick Reference

TaskCommand
---------------
Uploadpython imgbb.py image.jpg
URLpython imgbb.py --url "URL"
Batchpython imgbb.py --batch ./folder/
JSONpython imgbb.py image.jpg --json

版本历史

共 1 个版本

  • v1.1.2 当前
    2026-03-30 07:05 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

AdMapix

fly0pants
广告情报与应用数据分析助手,支持搜索广告素材、分析应用排名、下载量、收入及市场洞察,用于广告素材和竞品分析。
★ 295 📥 136,480
content-creation

Baidu Wenku AIPPT

ide-rea
使用百度文库 AI 智能生成 PPT,自动根据内容选择模板。
★ 66 📥 46,191
content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 860 📥 199,769