Manage API keys (Business and Enterprise)

Generate, rotate, and revoke API keys securely from your account page. Available on Business and Enterprise plans.

Eric
Written by Eric
Updated in March 2026

API keys let your app authenticate requests to BackgroundErase. You can generate and manage keys from your account page if you’re on the Business or Enterprise plan.

Quick summary: Go to /account#api-access to generate a key, then use it in your API calls (or test it in the API Playground ).


Who can create API keys?

  • Starter: No API access (no API keys).
  • Business: API access included (API keys available).
  • Enterprise: API access included (API keys available, often with custom limits).

Generate an API key

  1. Click your profile circle in the top-right of the site.
  2. Choose My account.
  3. Scroll to API Access.
  4. Click Generate key.
  5. Copy the key and store it somewhere secure.

Important: Treat your API key like a password. Don’t share it publicly or commit it to GitHub.

Use your API key in a request

Include your key in the x-api-key header. Here’s a simple example:

curl -H 'x-api-key: YOUR_API_KEY' \
-f https://api.backgrounderase.com/v2 \
-F 'image_file=@/absolute/path/to/image.jpg' \
-o output.png

You can also test the same request in the API Playground and reproduce results using the exact flags you plan to use in production.


Rotate or revoke keys

If a key is ever exposed (or you simply want to follow best practices), rotate it: generate a new key, update your app to use it, then revoke the old one.

  1. Generate a new key from API Access.
  2. Update your server/app secrets to use the new key.
  3. Confirm requests succeed with the new key.
  4. Revoke the old key (if available in your dashboard) to prevent further use.

Tip: Keep keys scoped to a single environment (e.g., “production” vs “staging”) so rotation is easier.

Security best practices

  • Store keys in environment variables or a secrets manager (not in client-side code).
  • Never ship your API key inside a public web app bundle.
  • Rotate keys periodically, especially for production.
  • Limit who has access to keys inside your team.

Screenshot reference

Account page showing API Access section and Generate key button
(Screenshot: API Access section)