# Background Color > Replace the background of a portrait or product shot with a flat color. Pick any RGB value; shading_percent baked at 30% for soft falloff. ## Overview - **Endpoint**: `https://api.runflow.io/v1/run/runflow/background-color` - **Model ID**: `runflow/background-color` - **Provider**: Runflow - **License**: commercial - **Last Updated**: 2026-04-28 ## Pricing - **Base price**: $0.12/request - **Note**: Per image — background color replacement ## Input Schema ### `image_url` (image, required) URL of the image to process. HTTPS required. ### `color_red` (integer, required) Red channel 0–255. - **Min**: 0 - **Max**: 255 ### `file_input` (string, required) Filename inside `image_url` (e.g. `photo.png` if the zip contains `photo.png`). Frontend should set this to match the inner filename when composing the zip. ### `color_green` (integer, required) Green channel 0–255. - **Min**: 0 - **Max**: 255 ### `color_blue` (integer, required) Blue channel 0–255. - **Min**: 0 - **Max**: 255 ## Usage Examples ### cURL ```bash curl -X POST https://api.runflow.io/v1/run/runflow/background-color \ -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-color", 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-color", { 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-color) - [API Reference](https://www.runflow.io/models/runflow/background-color/api) - [Documentation](https://docs.runflow.io) - [OpenAPI](https://api.runflow.io/v1/openapi.json)