remove.bg
App · Images & Design · 1 action
Automatically remove the background from images with remove.bg.
Remove image background
Remove the background from an image, leaving just the subject on a transparent (or coloured) background. The result is saved so later steps can email, upload, or store it.
Inputs
- Image
imagetextRequired - The image to process: upload a file, pick an image from an earlier step, or paste a public image URL.
- Output format
output_formattext - The image format to return.One of:
png(PNG (transparent background)),jpg(JPG (smaller file, needs a background colour)). Default:png. - Resolution
sizetext - How large the returned image should be. Higher resolutions cost more credits.One of:
auto(Auto (best available resolution)),preview(Preview (fast, up to 0.25 megapixels)),full(Full (highest resolution)). Default:auto. - Subject type
typetext - Optional. What the foreground is, which helps remove.bg pick the right model. Leave on Auto unless results need improving.One of:
auto(Auto (detect automatically)),person,product,car,animal,graphic(Graphic / illustration). Default:auto. - Background colour
bg_colortext - Optional. A colour to place behind the subject instead of transparency, as a hex code (for example '#ffffff') or a name (for example 'white'). Required when the output format is JPG.
Outputs
content_typetext- MIME type of the processed image
credits_chargedtext- remove.bg credits this call used
document_reftext- Reference to the processed image, for use by a later step
documentslist- The processed image, in the shape steps that send or upload files expect
filenametext- Name the processed image was saved under
size_bytesnumber- Size of the processed image in bytes
urltext- Download URL for the processed image
Example output
{
"content_type": "image/png",
"credits_charged": "1",
"document_ref": "doc_4b7c1e2a9d3f45c88a1e6f0b2d5c7e91",
"documents": [
{
"content_type": "image/png",
"document_ref": "doc_4b7c1e2a9d3f45c88a1e6f0b2d5c7e91",
"filename": "portrait-no-bg.png",
"size_bytes": 210345,
"url": "/actions/core/serve-document/doc_4b7c1e2a9d3f45c88a1e6f0b2d5c7e91?teamId=6512a1b2c3d4e5f600000001"
}
],
"filename": "portrait-no-bg.png",
"size_bytes": 210345,
"url": "/actions/core/serve-document/doc_4b7c1e2a9d3f45c88a1e6f0b2d5c7e91?teamId=6512a1b2c3d4e5f600000001"
}