API v2 · Image

Contact

Image Blur Anything

Blur objects matching a text prompt in an image.

POST/api/v2/images/blur-anything

Authentication

Send your API key as a bearer token on every request.

Header
Authorization: Bearer vba_your_api_key

Request Body

Send JSON with these fields. Required fields must be present unless marked optional.

FieldTypeRequiredDescription
image_urlstring URLYesPublic or BGBlur-uploaded image URL to process.
blur_strengthnumberNoBlur amount from 0 to 1. Default is 0.7.
promptstringYesText target to blur, for example person, logo, screen, address, or plate.
pixelatedbooleanNoUse pixelation instead of gaussian blur. Default false.
pixelation_strengthnumberNoPixelation block strength. Default 20.

Media must be publicly accessible. Pass a direct URL from a public storage bucket — e.g. AWS S3, Google Cloud Storage, Cloudinary, Cloudflare R2, Backblaze B2, Uploadcare, or any CDN URL. Private, signed, or localhost URLs will fail. Supported formats: PNG, JPG, JPEG, WEBP, HEIC.

JSON
{
  "image_url": "https://example.com/street.jpg",
  "prompt": "person",
  "blur_strength": 0.7,
  "pixelated": false,
  "pixelation_strength": 20
}

Response

Successful responses use JSON. Video feature endpoints return an async job_id rather than the final processed video immediately.

FieldTypeRequiredDescription
successbooleanYesTrue when processing succeeded.
result_urlstring URLYesProcessed image URL.
credits_usednumberYesCredits charged for this request.
remaining_creditsnumberYesCredit balance after processing.
JSON
{
  "success": true,
  "result_url": "https://cdn.bgblur.com/results/image.png",
  "credits_used": 1,
  "remaining_credits": 499
}

Example

curl
curl -X POST https://www.bgblur.com/api/v2/images/blur-anything \
  -H "Authorization: Bearer vba_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
  "image_url": "https://example.com/street.jpg",
  "prompt": "person",
  "blur_strength": 0.7,
  "pixelated": false,
  "pixelation_strength": 20
}'

Tips

  • prompt is required for useful object targeting.
  • Use the upload image endpoint for local files instead of sending binary data to processing endpoints.
  • Start with blur_strength 0.7, then lower it for subtle blur or raise it for stronger privacy.
  • Use short, concrete prompts like person, logo, license plate, phone screen, address, or document.
Back to API Reference