Loading...
Loading...
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.
npx skill4agent add verging-ai/agent-skills background-removal/background-remover --image <image file or URL> [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 |
| Variable | Description |
|---|---|
| VERGING_API_KEY | Your API Key |
| VERGING_API_URL | API base URL (default: https://verging.ai/api/v1) |
| 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 |
AuthorizationAuthorization: ApiKey <your_api_key># ✅ Correct
Authorization: ApiKey vrg_sk_123456...
# ❌ Wrong (missing space)
Authorization: ApiKeyvrg_sk_123456...# 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$VERGING_API_KEYAuthorizationApiKey <key>Bearer <key>/api/v1/upload-videovideo_file_namejob_typepublic_url/api/v1/background-removal/create-jobimagefile_namejob_type/api/v1/background-removal/jobs?job_ids=xxx| Operation | Credits |
|---|---|
| Background Removal (per image) | 1 credit |
export VERGING_API_KEY="your_key"/tmp/verging-bg-removal/