POST /v1/remove-bg — Remove Backgrounds via API
POST /v1/remove-bg — Remove Backgrounds via API
Remove image backgrounds automatically via the Artnex API. Submit any photo and receive a transparent PNG back in seconds for just 10 credits.
POST
POST /v1/remove-bg — Remove Backgrounds via API
TheDocumentation Index
Fetch the complete documentation index at: https://docs.artnex.app/llms.txt
Use this file to discover all available pages before exploring further.
/v1/remove-bg endpoint detects and removes the background from any image, returning a transparent PNG. Use it to isolate subjects for compositing, e-commerce product photos, profile images, or any workflow that requires a clean cutout.
Endpoint
Request parameters
The image from which to remove the background. Provide either:
- A publicly accessible HTTPS URL pointing to the image, or
- A base64-encoded image string with a data URI prefix (e.g.,
data:image/jpeg;base64,...).
Response fields
true when the request completed successfully.Direct HTTPS URL to the transparent PNG output. Available for 24 hours; download promptly if you need to keep the result.
Unique identifier for this request.
Credits deducted from your account balance. Background removal costs 10 credits per request.
Credit cost
| Operation | Credits |
|---|---|
| Background removal | 10 |
Example requests
Example response
Error codes
| HTTP status | Error code | Cause |
|---|---|---|
400 | missing_image | The image field is absent |
400 | invalid_image_format | The image format is not supported or the file is corrupt |
400 | image_too_large | The image exceeds the 10 MB size limit |
401 | invalid_api_key | The API key is missing, malformed, or revoked |
402 | insufficient_credits | Your account does not have enough credits |
429 | rate_limit_exceeded | You have exceeded your plan’s daily request quota |