Skip to content
Back to skills

Imgbb Api

ASecurity

"Upload images to ImgBB and get shareable URLs. Use when: (1) User

  • 7 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 7, 2026
developmentpythongobashapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned June 7, 2026

npx -y skills add modbender/skill-library-mcp --skill imgbb-api --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Imgbb Api?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Imgbb Api
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-imgbb-api/badge)](https://www.skillsdirectory.com/skills/modbender-imgbb-api)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: imgbb-api
description: "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."
---


# 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

| Step | Action | Why |
|------|--------|-----|
| 1 | **CHECK** | Verify API key is available |
| 2 | **PREPARE** | Get image path or URL |
| 3 | **UPLOAD** | Send to ImgBB API |
| 4 | **RETURN** | Return shareable URL |

---

## Setup

```bash
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

```bash
# 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

| Flag | Description |
|------|-------------|
| `image` | Path to image |
| `--key` | API key |
| `--url` | Upload from URL |
| `--name` | Custom name |
| `--expiration` | Expiry seconds |
| `--json` | JSON output |
| `--batch` | Batch folder |
| `--set-key` | Save 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

| Task | Command |
|------|---------|
| Upload | `python imgbb.py image.jpg` |
| URL | `python imgbb.py --url "URL"` |
| Batch | `python imgbb.py --batch ./folder/` |
| JSON | `python imgbb.py image.jpg --json` |

Files in this skill

  • SKILL.md2.5 KB
  • scripts/imgbb.py4.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…