Poof

v1.5.2
io.github.poof-bg/mcp Checked 4 days ago Published 1 month ago

Remove backgrounds from images, videos and animated GIFs: transparent cutouts, mattes, GIF stickers.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

remove_background Remove Image Background

Remove the background from an image, leaving the subject on a transparent (or solid color) background. Accepts an image URL or base64-encoded image (PNG, JPEG, WebP or still GIF, up to 20 MB) and returns the processed image. For animated GIFs and videos use remove_video_background. Can also crop to the subject and resize the result to an exact width x height without stretching (width, height, fit). Costs 1 credit.

ParameterTypeDescription
image *stringImage input: a publicly accessible URL to a PNG, JPEG, WebP or still GIF image (including https://), or base64-encoded image data (optionally as a data: URL). Animated GIFs are videos: use remove_vide…
bg_colorstringBackground color (hex, rgb, or color name). Only applies when channels is 'rgb'. Example: '#ffffff'
channelsstringOutput color channels. Use 'rgba' for transparency, 'rgb' for an opaque background (bg_color, white by default), 'alpha' for the grayscale alpha mask only
cropbooleanWhether to crop the image to the subject bounds
fitstringHow to fit the image into width x height. 'contain' pads the remaining area (transparent or bg_color), 'cover' fills the canvas and crops the overflow around the subject, 'scale-down' is like contain…
formatstringOutput image format. 'jpg' has no transparency
heightintegerOutput height in pixels. On its own, the width follows the aspect ratio. With width, the image is fitted into an exact width x height canvas without stretching
sizestringOutput image size preset (megapixel cap). Ignored when width or height is set
widthintegerOutput width in pixels. On its own, the height follows the aspect ratio. With height, the image is fitted into an exact width x height canvas without stretching

remove_video_background Remove Video Background

Remove the background from a video given by public URL. Returns a job; when wait is true (default) the tool polls for up to 50 seconds and returns the finished job with result_url (a direct download link valid for 24 hours). For longer videos call get_job with the returned job id until status is completed. Costs 5 credits per second of video, rounded up (10 per second above 30 fps; animated GIFs are always 5 per second), charged when the job is accepted and refunded if it fails.

ParameterTypeDescription
video_url *stringPublic https URL of the video (mp4, mov, webm, m4v, mkv or animated gif; up to 500 MB and 5 minutes)
bg_colorstringBackground color (hex, rgb, or color name) used when the output has no transparency (channels 'rgb' or format 'mp4'). Defaults to white. Example: '#00ff00' for green screen
channelsstring'rgba' for a transparent video, 'rgb' for an opaque video on bg_color, 'alpha' for a grayscale matte video (no audio)
formatstringOutput container. 'webm' (VP9) and 'mov' (ProRes 4444) keep transparency; 'mp4' (H.264) has no alpha and is composited onto bg_color; 'gif' is a looping GIF with 1-bit transparency and no audio, cappe…
sizestringOutput size preset. The longest side is capped at 640 (preview), 1280 (medium) or 1920 (hd) pixels; full keeps the source resolution up to 4096 pixels (4K)
waitbooleanPoll until the job finishes (up to 50 seconds) before returning. Set to false to get the job id back immediately

get_job Get Video Job

Get the status of a video background removal job started with remove_video_background (or by remove_background given an animated GIF). Polling is free. When status is completed the job carries result_url, a direct download link valid for 24 hours.

ParameterTypeDescription
job_id *stringJob id returned by remove_video_background (starts with job_)

get_account Get Poof Account

Get the Poof account's plan and credit usage: maxCredits, usedCredits and remainingCredits for the current billing cycle. Free; use it to check whether there are credits left before processing many images.