bgblur-api-sdk▌
whyashthakker/bgblur-video-skills · updated May 23, 2026
MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.
Integrate BGBlur blur APIs into apps and pipelines — face blur, license plate blur, NSFW detection for images and video. Covers REST API patterns, batch processing, webhook delivery, and SDK usage. Use when user mentions BGBlur API, blur API integration, face blur API, license plate API, video blur SDK, embed blur in app, or programmatic blur processing.
| name | bgblur-api-sdk |
| description | Integrate BGBlur blur APIs into apps and pipelines — face blur, license plate blur, NSFW detection for images and video. Covers REST API patterns, batch processing, webhook delivery, and SDK usage. Use when user mentions BGBlur API, blur API integration, face blur API, license plate API, video blur SDK, embed blur in app, or programmatic blur processing. |
| argument-hint | API endpoint, integration language, batch vs realtime, or use case |
| allowed-tools | Read, Write, WebSearch, Shell |
BGBlur API & SDK Skill
Integrate BGBlur API services into applications, CI pipelines, and batch processing workflows.
Quick Reference
Available APIs:
| API | Type | Use Case |
|---|---|---|
| Face Blur (Image) | Image | Profile photos, thumbnails, uploads |
| Face Blur (Video) | Video | Frame-aware face tracking + blur |
| License Plate Blur (Image) | Image | Parking, fleet photo redaction |
| License Plate Blur (Video) | Video | Dashcam, CCTV, street footage |
| NSFW Image Detector | Image | Content moderation gate |
| NSFW Video Detector | Video | Timestamped moderation scores |
Integration patterns:
- Sync — upload → process → download (short clips, images)
- Async + webhook — submit job → poll/webhook → fetch result (long video)
- Batch — queue multiple files → bulk download (enterprise)
Workflow
Step 1: Choose API Endpoint
Input is image?
├── Need face redaction? → Face Blur (Image)
├── Need plate redaction? → License Plate Blur (Image)
└── Need moderation? → NSFW Image Detector
Input is video?
├── Need face redaction? → Face Blur (Video)
├── Need plate redaction? → License Plate Blur (Video)
└── Need moderation? → NSFW Video Detector
Step 2: Authentication
Store API key in environment variable — never hardcode:
export BGBLUR_API_KEY="your_api_key_here"
Verify connectivity:
python3 scripts/api_health_check.py
Step 3: Image Processing (Sync)
Face blur — single image:
import os
import requests
API_KEY = os.environ["BGBLUR_API_KEY"]
BASE = "https://api.bgblur.com/v1" # confirm current base URL in docs
with open("photo.jpg", "rb") as f:
resp = requests.post(
f"{BASE}/face-blur/image",
headers={"Authorization": f"Bearer {API_KEY}"},
files={"file": f},
data={"blur_strength": "medium"},
)
resp.raise_for_status()
with open("photo_blurred.jpg", "wb") as out:
out.write(resp.content)
License plate blur — image:
resp = requests.post(
f"{BASE}/license-plate-blur/image",
headers={"Authorization": f"Bearer {API_KEY}"},
files={"file": open("dashcam_frame.jpg", "rb")},
)
Step 4: Video Processing (Async)
Video APIs are async — submit, poll, download:
import time
import requests
# 1. Submit job
with open("clip.mp4", "rb") as f:
job = requests.post(
f"{BASE}/face-blur/video",
headers={"Authorization": f"Bearer {API_KEY}"},
files={"file": f},
data={"webhook_url": "https://yourapp.com/hooks/bgblur"},
).json()
job_id = job["id"]
# 2. Poll until complete
while True:
status = requests.get(
f"{BASE}/jobs/{job_id}",
headers={"Authorization": f"Bearer {API_KEY}"},
).json()
if status["state"] == "completed":
break
if status["state"] == "failed":
raise RuntimeError(status.get("error", "Job failed"))
time.sleep(5)
# 3. Download result
result = requests.get(
status["output_url"],
headers={"Authorization": f"Bearer {API_KEY}"},
)
with open("clip_blurred.mp4", "wb") as f:
f.write(result.content)
Step 5: NSFW Moderation
Image — accept/reject gate before publishing:
resp = requests.post(
f"{BASE}/nsfw/image",
headers={"Authorization": f"Bearer {API_KEY}"},
files={"file": open("upload.jpg", "rb")},
).json()
if resp["score"] > 0.85:
reject_upload(resp["categories"])
Video — timestamped flags for review queue:
resp = requests.post(
f"{BASE}/nsfw/video",
headers={"Authorization": f"Bearer {API_KEY}"},
files={"file": open("clip.mp4", "rb")},
).json()
for flag in resp["timestamps"]:
print(f"NSFW at {flag['start']}s–{flag['end']}s: {flag['score']:.2f}")
Step 6: Batch Pipeline
For high-volume (CCTV, fleet, UGC platforms):
Upload batch → Queue → Process parallel → Webhook per job → Aggregate results
Batch pattern:
import concurrent.futures
def process_file(path: str) -> str:
# submit + poll each file
return output_path
files = ["cam1.mp4", "cam2.mp4", "cam3.mp4"]
with concurrent.futures.ThreadPoolExecutor(max_workers=5) as pool:
results = list(pool.map(process_file, files))
Enterprise tier: BGBlur Enterprise for dedicated throughput and SLA.
Step 7: Error Handling
| HTTP Code | Meaning | Action |
|---|---|---|
| 400 | Invalid file/format | Validate with ffmpeg-video-prep first |
| 401 | Bad API key | Check BGBLUR_API_KEY |
| 413 | File too large | Compress or split video |
| 429 | Rate limited | Exponential backoff |
| 500 | Server error | Retry with idempotency key |
Retry wrapper:
import time
def with_retry(fn, max_attempts=3):
for attempt in range(max_attempts):
try:
return fn()
except requests.HTTPError as e:
if e.response.status_code in (429, 500) and attempt < max_attempts - 1:
time.sleep(2 ** attempt)
else:
raise
Integration Checklist
API Integration:
- [ ] API key in env var (not source code)
- [ ] Input validation (format, size, duration)
- [ ] Async polling or webhook handler implemented
- [ ] Error handling with retry for 429/500
- [ ] Output stored securely; temp files cleaned up
- [ ] Rate limits respected for batch jobs
- [ ] QA step on sample outputs (see video-blur-qa skill)
Architecture Patterns
UGC upload gate:
User upload → NSFW detect → (pass) → Face blur → Store → Publish
→ (fail) → Reject
Fleet dashcam pipeline:
Camera upload → Plate blur (video) → QA sample → Archive
CMS thumbnail safety:
Featured image → Face blur (image) → CDN → Frontend
Report Template
## BGBlur API Integration Plan
### Use Case
[UGC moderation / fleet redaction / CMS thumbnails / etc.]
### APIs Selected
- [Endpoint] — [why]
### Flow
[Sync / Async / Batch]
### Volume Estimate
- [X videos/day] | avg [Y min] | [Z MB]
### Open Questions
- [Webhook endpoint ready?]
- [Enterprise tier needed?]
BGBlur Reference
- API Services — full endpoint catalog
- Pricing — credit tiers and enterprise
- Upload (manual fallback) — for testing API output quality
Note: Confirm current API base URL, request schemas, and auth headers against official BGBlur API documentation before production deployment.
How to use bgblur-api-sdk on Cursor
AI-first code editor with Composer
Prerequisites
Before installing skills in Cursor, ensure your development environment meets these requirements:
- ›Cursor installed and configured on your development machine
- ›Node.js version 16.0+ with npm package manager (verify with
node --version) - ›Active project directory or workspace where you want to add bgblur-api-sdk
Execute installation command
Execute the skills CLI command in your project's root directory to begin installation:
The skills CLI fetches bgblur-api-sdk from GitHub repository whyashthakker/bgblur-video-skills and configures it for Cursor.
Select Cursor when prompted
The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:
Verify installation
Confirm successful installation by checking the skill directory location:
Reload or restart Cursor to activate bgblur-api-sdk. Access the skill through slash commands (e.g., /bgblur-api-sdk) or your agent's skill management interface.
Security & Verification Notice
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.
List & Monetize Your Skill
Submit your Claude Code skill and start earning
Use Cases▌
Task Automation & Efficiency
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Knowledge Enhancement
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Quality Improvement
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
Implementation Guide▌
Prerequisites
- ›Claude Desktop or compatible AI client with skill support
- ›Clear understanding of task or problem to solve
- ›Willingness to iterate and refine outputs
Time Estimate
15-45 minutes depending on use case complexity
Installation Steps
- 1.Install skill using provided installation command
- 2.Test with simple use case relevant to your work
- 3.Evaluate output quality and relevance
- 4.Iterate on prompts to improve results
- 5.Integrate into regular workflow if valuable
Common Pitfalls
- ⚠Expecting perfect results without iteration
- ⚠Not providing enough context in prompts
- ⚠Using skill for tasks outside its intended scope
- ⚠Accepting outputs without review and validation
Best Practices▌
✓ Do
- +Start with clear, specific prompts
- +Provide relevant context and constraints
- +Review and refine all outputs before using
- +Iterate to improve output quality
- +Document successful prompt patterns
✗ Don't
- −Don't use without understanding skill limitations
- −Don't skip validation of outputs
- −Don't share sensitive information in prompts
- −Don't expect skill to replace human judgment
💡 Pro Tips
- ★Be specific about desired format and style
- ★Ask for multiple options to choose from
- ★Request explanations to understand reasoning
- ★Combine AI efficiency with human expertise
When to Use This▌
✓ Use When
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid When
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
Learning Path▌
- 1Familiarize yourself with skill capabilities and limitations
- 2Start with low-risk, non-critical tasks
- 3Progress to more complex and valuable use cases
- 4Build expertise through regular use and experimentation
Discussion
Product Hunt–style comments (not star reviews)- No comments yet — start the thread.
Ratings
4.7★★★★★30 reviews- ★★★★★Isabella Okafor· Nov 27, 2024
Useful defaults in bgblur-api-sdk — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
- ★★★★★Lucas Chen· Oct 18, 2024
bgblur-api-sdk has been reliable in day-to-day use. Documentation quality is above average for community skills.
- ★★★★★Tariq Dixit· Sep 25, 2024
bgblur-api-sdk reduced setup friction for our internal harness; good balance of opinion and flexibility.
- ★★★★★Rahul Santra· Sep 5, 2024
Solid pick for teams standardizing on skills: bgblur-api-sdk is focused, and the summary matches what you get after install.
- ★★★★★Michael Srinivasan· Sep 1, 2024
bgblur-api-sdk is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- ★★★★★Pratham Ware· Aug 24, 2024
We added bgblur-api-sdk from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Michael Farah· Aug 20, 2024
bgblur-api-sdk fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Zara Perez· Aug 16, 2024
I recommend bgblur-api-sdk for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
- ★★★★★Sakshi Patil· Jul 15, 2024
bgblur-api-sdk fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Michael Liu· Jul 11, 2024
We added bgblur-api-sdk from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
showing 1-10 of 30