openBGremover / Docs

Authentication

Authenticate requests with an owner API key or a Supabase session.

API keys

Create keys in the dashboard. Send a key in the Authorization header on every processing or usage request.

Authorization: Bearer YOUR_API_KEY

Keep keys in server environment variables or a secret store. Revoke a key in the dashboard when you no longer need it. A revoked key cannot authorize subsequent requests.

Sessions and account management

The website signs in through Supabase. A valid Supabase session access token can call image-processing and usage endpoints for its owner.

Key creation, key listing, key revocation, and account deletion require a session. An API key cannot manage your account or mint more keys.

EndpointAuthentication
POST /api/v1/remove-backgroundOwner API key or session
POST /api/v1/compress-imageOwner API key or session
POST /api/v1/convert-imageOwner API key or session
GET /api/v1/statsOwner API key or session
GET /api/v1/activityOwner API key or session
GET /api/v1/keys, POST /api/v1/keysSession
DELETE /api/v1/keys/:id, DELETE /api/v1/accountSession

Public demo

The playground works without an account. Signed out, background removal, compression, and conversion go through the website's server, which adds a trial key that never reaches the browser. Trial requests are free and rate limited: background removal allows 5 requests a minute and compression and conversion 30, shared by every signed-out visitor. The trial key cannot manage keys or accounts. Signed in, the playground uses your session and your credits.

Missing or invalid credentials return 401. Insufficient scope returns 403. See errors and retries.

On this page