移除背景
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.
授权
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
请求体
- Option 1
- Option 2
Remove the background from an image. Provide either a non-empty base64 image or an image URL.
The non-empty base64-encoded image to remove the background from.
1\SOptional 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"
响应
OK - PNG image with transparent background
The response is of type file.