Background Remove
Remove the background from an image using AI. The image can be provided either as a multipart form-data file upload, as a base64-encoded string in a JSON request, or as an image URL. Returns a PNG image with transparent background.
Authentication: This endpoint accepts either a Bearer API key or a SIGN-IN-WITH-X header for x402 wallet-based authentication. The legacy X-Sign-In-With-X header is also accepted during migration. When using x402, a 402 Payment Required response indicates insufficient balance and includes top-up instructions.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Remove the background from an image. Provide either an image file/base64 or an image URL.
Optional identifier for the API customer's end user. Combined with the Venice user id when attributing the request to upstream providers. Distinct from the discarded OpenAI user field. Must be printable ASCII and must not contain ||.
1 - 128^[\x20-\x7E]+$"end-user-123"
The image to remove the background from. Can be either a file upload or a base64-encoded string. File size must be less than 25MB.
URL of the image to remove the background from.
"https://example.com/image.jpg"
Response
OK - PNG image with transparent background
The response is of type file.