# Background Removal > Remove the background from an image and return a clean cutout with a transparent alpha channel. Built for e-commerce product shots, portraits, and batch cleanup pipelines. ## Overview - **Endpoint**: `https://api.runflow.io/v1/run/runflow/background-removal` - **Model ID**: `runflow/background-removal` - **Provider**: Runflow - **License**: commercial - **Last Updated**: 2026-04-21 ## Pricing - **Base price**: $0.045/request - **Note**: Per image — background removal ## Input Schema ### `image_url` (image, required) URL of the image to process. ### `config` (json, optional) Optional per-image config (aspect_ratio). ## Usage Examples ### cURL ```bash curl -X POST https://api.runflow.io/v1/run/runflow/background-removal \ -H "Authorization: Bearer $RUNFLOW_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "image_url": "https://example.com/input.jpg" }' ``` ### Python ```python import requests response = requests.post( "https://api.runflow.io/v1/run/runflow/background-removal", headers={"Authorization": "Bearer RUNFLOW_API_KEY"}, json={ "image_url": "https://example.com/input.jpg", }, ) data = response.json() print(data["images"][0]["url"]) ``` ### JavaScript ```javascript const response = await fetch( "https://api.runflow.io/v1/run/runflow/background-removal", { method: "POST", headers: { "Authorization": "Bearer RUNFLOW_API_KEY", "Content-Type": "application/json", }, body: JSON.stringify({ image_url: "https://example.com/input.jpg", }), } ); const data = await response.json(); console.log(data.images[0].url); ``` ## Additional Resources - [Playground](https://www.runflow.io/models/runflow/background-removal) - [API Reference](https://www.runflow.io/models/runflow/background-removal/api) - [Documentation](https://docs.runflow.io) - [OpenAPI](https://api.runflow.io/v1/openapi.json)