Agent skill
background-remover
AI Background Removal - Remove background from images, create transparent PNG, one-click background remover for e-commerce product photos, portrait headshots, design materials. Supports JPG, PNG, WebP local files and remote URLs.
Install this agent skill to your Project
npx add-skill https://github.com/aiskillstore/marketplace/tree/main/skills/verging-ai/background-remover
Metadata
Additional technical details for this skill
- openclaw
-
{ "requires": { "env": [ "VERGING_API_KEY" ], "bins": [ "curl" ] }, "primaryEnv": "VERGING_API_KEY" }
SKILL.md
background-remover - AI Background Removal
Remove background from images, create transparent PNG with one-click AI.
Use Cases
- E-commerce: Product photos, remove background for clean product images
- Portraits: Headshot background removal for professional profiles
- Design: Create transparent images for graphics and marketing materials
You are a CLI assistant for AI background removal. Users can use you to call verging.ai's AI background removal functionality.
User Input Format
Users will provide commands like:
/background-remover --image <image file or URL> [options]
Options
| Option | Short | Description | Default |
|---|---|---|---|
| --image | -i | Target image file path or URL | Required |
| --api-key | -k | Your API Key | VERGING_API_KEY env |
| --output | -o | Result save path | Current directory |
| --download | -d | Auto download result to local | false |
Environment Variables
| Variable | Description |
|---|---|
| VERGING_API_KEY | Your API Key |
| VERGING_API_URL | API base URL (default: https://verging.ai/api/v1) |
API Endpoints
| Endpoint | Method | Format | Purpose |
|---|---|---|---|
| /api/v1/auth/me | GET | - | Get user info (including credits) |
| /api/v1/upload-video | POST | Form Data | Get R2 presigned upload URL |
| /api/v1/background-removal/create-job | POST | Form Data | Create background removal job |
| /api/v1/background-removal/jobs | GET | - | Query job status |
Authentication
All API requests require authentication via the Authorization header:
Authorization: ApiKey <your_api_key>
⚠️ Important: There is a space between "ApiKey" and your key!
Example:
# ✅ Correct
Authorization: ApiKey vrg_sk_123456...
# ❌ Wrong (missing space)
Authorization: ApiKeyvrg_sk_123456...
You can get your API key from https://verging.ai (Login → Click avatar → API Keys).
Authentication Examples
# Check user info
curl -H "Authorization: ApiKey $VERGING_API_KEY" \
https://verging.ai/api/v1/auth/me
# Step 1: Get presigned upload URL for image
curl -X POST -H "Authorization: ApiKey $VERGING_API_KEY" \
-F "video_file_name=image.jpg" \
-F "job_type=background-removal" \
https://verging.ai/api/v1/upload-video
# The response contains:
# {
# "result": {
# "url": "https://...r2.cloudflarestorage.com/...jpg?X-Amz-...",
# "public_url": "https://img.panpan8.com/background-removal/2026-03-11/xxx.jpg"
# }
# }
# Step 2: Upload image to the presigned URL
curl -X PUT -T /path/to/image.jpg \
"https://...presigned-url-from-step-1..."
# Step 3: Create background removal job
# Use the public_url from Step 2
curl -X POST -H "Authorization: ApiKey $VERGING_API_KEY" \
-F "image=@/path/to/image.jpg" \
-F "file_name=image.jpg" \
-F "job_type=background-removal" \
https://verging.ai/api/v1/background-removal/create-job
# Query job status
curl -H "Authorization: ApiKey $VERGING_API_KEY" \
"https://verging.ai/api/v1/background-removal/jobs?job_ids=123"
# List all jobs
curl -H "Authorization: ApiKey $VERGING_API_KEY" \
https://verging.ai/api/v1/background-removal/jobs
Important:
- Replace
$VERGING_API_KEYwith your actual API key or set it as an environment variable - The
Authorizationheader uses format:ApiKey <key>(notBearer <key>)
Dependencies
This skill requires:
- curl: Usually built-in
Processing Flow
When the user executes the /background-removal command, please follow these steps:
0. Check Dependencies
- No additional tools needed for local images
- For remote image URLs (https://example.com/image.jpg), use curl to download
1. Parse Arguments
- Parse --image parameter
- If remote URL, download to local first
2. Check User Credits
- Call /api/v1/auth/me to get user info
- Background removal costs a fixed amount of credits (typically 1 credit per image)
- If insufficient credits, prompt user to recharge
3. Upload Image to R2
- Call
/api/v1/upload-videowith Form Data (video_file_name,job_type) - Get presigned upload URL from response
- Upload image file to presigned URL using PUT method
- Save the
public_urlfrom response for next step
4. Create Job
- Call
/api/v1/background-removal/create-jobwith Form Data:image: Image file (will be uploaded to R2)file_name: Original file namejob_type: "background-removal"
5. Poll Job Status
- Every 5 seconds call
/api/v1/background-removal/jobs?job_ids=xxxto query status - Status: PENDING → PROCESSING → COMPLETED/FAILED
- Show progress percentage
6. Return Result
- After completion, return result_url
- If user specified --download or --output, use curl to download result
Credit Consumption
| Operation | Credits |
|---|---|
| Background Removal (per image) | 1 credit |
Supported Image Formats
- JPG/JPEG
- PNG
- WebP
Maximum file size: 10MB
Example Conversation
User: /background-removal -i ./photo.jpg
You:
- Parse arguments - local image
- Call API to get user info
- Check credits sufficient (1 credit)
- Upload image to R2
- Create background removal job
- Poll for completion
- Return result URL
User: /background-removal -i https://example.com/photo.jpg
You:
- Parse arguments - remote image URL
- Download image to local temp directory
- Call API to get user info
- Check credits sufficient
- Upload image to R2
- Create background removal job
- Poll for completion
- Return result URL
Notes
- API Key can be passed via --api-key parameter or read from environment variable VERGING_API_KEY
- If user doesn't provide API Key: Prompt user to get one at https://verging.ai (Login → Click user avatar → API Keys), and guide them to set the environment variable
- Support common image formats: JPG, PNG, WebP
- Show progress during processing
Privacy and Security
API Key
This skill requires a verging.ai API Key. Get it from:
- Visit https://verging.ai
- Login → Click user avatar (top right) → Select "API Keys"
- Create a new API key
Security recommendations:
- Use a dedicated API key with minimal permissions
- Never expose your API key in public repositories
- Set it via environment variable:
export VERGING_API_KEY="your_key"
Data Handling
- Image uploads: Images are uploaded to verging.ai's R2 storage for processing
- Temporary files: Local temporary files are stored in
/tmp/verging-bg-removal/and cleaned up after processing - Result images: Processed images are returned via a public URL
- No data retention: This skill does not store any user data beyond the session
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
perigon-backend
Perigon ASP.NET Core + EF Core + Aspire conventions
perigon-agent
Pointers for Copilot/agents to apply Perigon conventions
perigon-angular
Angular 21+ standalone/Material/signal conventions for Perigon WebApp
fastapi-mastery
Comprehensive FastAPI development skill covering REST API creation, routing, request/response handling, validation, authentication, database integration, middleware, and deployment. Use when working with FastAPI projects, building APIs, implementing CRUD operations, setting up authentication/authorization, integrating databases (SQL/NoSQL), adding middleware, handling WebSockets, or deploying FastAPI applications. Triggered by requests involving .py files with FastAPI code, API endpoint creation, Pydantic models, or FastAPI-specific features.
context7-efficient
Token-efficient library documentation fetcher using Context7 MCP with 86.8% token savings through intelligent shell pipeline filtering. Fetches code examples, API references, and best practices for JavaScript, Python, Go, Rust, and other libraries. Use when users ask about library documentation, need code examples, want API usage patterns, are learning a new framework, need syntax reference, or troubleshooting with library-specific information. Triggers include questions like "Show me React hooks", "How do I use Prisma", "What's the Next.js routing syntax", or any request for library/framework documentation.
browser-use
Browser automation using Playwright MCP. Navigate websites, fill forms, click elements, take screenshots, and extract data. Use when tasks require web browsing, form submission, web scraping, UI testing, or any browser interaction.
Didn't find tool you were looking for?