Skip to main content
POST
  1. After submission, a task_id will be returned. If you provided a callback_url, when the task status becomes finished or failed, a POST request will be sent to the callback_url.
  2. Regardless of whether callback_url is provided, you can retrieve the response result through the unified Query Task Status endpoint.
Use bria-rmbg-3.0 to cut the subject out of a photo for product listings, profile pictures, design mockups, and compositing. Send one image and get back a transparent PNG at the same size. Add a short prompt when you want a different cutout than the obvious subject, such as keeping a second object or only one item in the scene.

Models

  • bria-rmbg-3.0 — One image in; one transparent PNG cutout out

Features

  • Automatic cutout of the most prominent subject from a single image.
  • Prompt-guided cutout: add an object to the subject, leave an object out, or keep only one item.
  • Kept areas are the original pixels with a new alpha channel.
  • Output is a PNG with transparency at the same width and height as the input.
  • Accepts JPEG, PNG, WebP, GIF, AVIF, HEIC, and HEIF images.

Required parameters

  • image_urls (array of strings): Exactly 1 publicly accessible HTTP(S) image URL (JPEG, PNG, WebP, GIF, AVIF, HEIC, or HEIF).

Optional parameters

  • prompt (string): What to keep, in plain words, up to 2,000 characters. Examples: “the person with the mat and the plant”, “the woman at her desk without the lamp”, “only the chair”. Leave prompt empty to keep the most prominent subject of the photo.

Output

When the task finishes, files in Query Task Status and in the callback holds one PNG image with an alpha channel. The background is transparent and the image has the same width and height as the input.

Examples

Fine Detail Cutout

Cut out a dandelion head together with the seeds drifting away from it:

Keep Only the Product

Take a street-style photo and keep only the crochet cardigan, ready for a product listing:

With Callback

Cut out a portrait with wind-blown hair and a sheer scarf, and receive the result by callback:

Notes

  • Each request processes one image. Send separate requests for multiple images.
  • A request usually finishes within a minute; prompt-guided cutouts take longer than automatic ones.

Authorizations

Authorization
string
header
required

All API endpoints require Bearer Token authentication.

Create an API key: sign in to PoYo, open Dashboard → API Key at poyo.ai/dashboard/api-key, and click to create a key.

Add it to the request header:

Body

application/json
model
enum<string>
required

Bria RMBG 3.0 model identifier.

Available options:
bria-rmbg-3.0
input
object
required

Remove the background from one image. The task returns one transparent PNG file at the same width and height as the input.

callback_url
string<uri>

Optional webhook URL for task completion or failure.

Response

Task submitted successfully

code
enum<integer>
required

Business status code. 200 means success; any other value means the request failed. Always check this field: some validation errors return HTTP 200 with code: 400 in the body.

  • 200: Success
  • 400: Invalid request parameters
  • 401: Missing or invalid API key
  • 402: Insufficient credits
  • 403: Permission denied
  • 404: Resource not found
  • 408: Request timeout
  • 429: Rate limit exceeded
  • 500: Internal server error
  • 502: Upstream service error
  • 503: Service unavailable

See Error Codes for details.

Available options:
200,
400,
401,
402,
403,
404,
408,
429,
500,
502,
503
Example:

200

data
object
required