Actions26
- DATA Actions
- Image URL Actions
DATA → Remove Background
AI-generatedSummary
Removes the background from an input image, optionally replacing it with a color or another image, and returns the processed image in the specified format.
Inputs
- inputBinaryField (required) — The name of the input binary field containing the source image data (required when using Binary Data resource).
- backgroundType — Specifies the replacement background type: 'color' (default) or 'image'.
- backgroundImage — URL of the image to use as the new background (visible when backgroundType is 'image').
- backgroundColor — Hex color code to use as the new background (visible when backgroundType is 'color').
- format (required) — Output image format: JPG, PNG, or WEBP.
Output shape
A binary image output paired with metadata (JSON).
The binary data contains the processed image. The JSON includes the source identifier and the raw API result.
Examples
Example 1: Remove background and save as JPG
Input Binary Field: 'data', Background Type: 'color', Format: 'JPG'
Example 2: Replace background with an image
Input Binary Field: 'data', Background Type: 'image', Background Image: 'https://example.com/bg.jpg', Format: 'PNG'