Go to example tasks

Change Background Color of a Photo: White, Black or Any Hex

Remove the background and put the subject on a color of your choice — a hex code such as #FFFFFF or #1E40AF, or a name like white — optionally centered on a square canvas. Good for catalogs, profile photos and brand assets. The example is a public CC0 product photo; replace it with your own image links.

Try for free
AI Background Remover API: Remove BG to Transparent PNG
AI Background Remover API: Remove BG to Transparent PNGdeapi/background-remover
Image URL
Status
Download link
File name
+19 fields
Text
Number
Boolean
List
Object

Input

Image URLs(required):https://upload.wikimedia.org/wikipedia/commons/thumb/e/ee/Grado_Headphones_SR80e_%28Unsplash%29.jpg/1280px-Grado_Headphones_SR80e_%28Unsplash%29.jpg
Background color:#1E40AF
Output format:png
Square canvas (1:1):true
Margin around the subject (%):10

Output fields

Image URL
Status
Download link
File name
Format
Width
Height
Size (MB)
Transparent
Background color
Subject found
Subject share of picture
Cropped
Square
Original format
Original width
Original height
Processed width
Processed height
Scaled down to 16 MP
First GIF frame only
Billed megapixels
Error

How it works

Sign up on Apify or log in

The AI Background Remover API: Remove BG to Transparent PNG Actor is ready to run with the inputs already set for "Change Background Color of a Photo: White, Black or Any Hex". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Change Background Color of a Photo: White, Black or Any Hex" task

The AI Background Remover API: Remove BG to Transparent PNG Actor will start running based on the input automatically. You can also change all the input fields, like image urls, background color, and more, to match your specific use case.

Receive the "Change Background Color of a Photo: White, Black or Any Hex" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as image url, status, download link, and more.

Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also run the "Change Background Color of a Photo: White, Black or Any Hex" task via API.

Image

Integrate "Change Background Color of a Photo: White, Black or Any Hex" into your workflow

Connect "Change Background Color of a Photo: White, Black or Any Hex" with 100+ integrations, or run it via API or MCP.

Webhook

Webhook

n8n

n8n

Make

Make

Zapier

Zapier

Airbyte

Airbyte

Keboola

Keboola

IFTTT

IFTTT

Hubspot

Hubspot

GDrive

GDrive

Gmail

Gmail

Apify MCP

Apify MCP

GitHub

GitHub

Slack

Slack

LangChain

LangChain

LlamaIndex

LlamaIndex

Flowise

Flowise

Pinecone

Pinecone

OpenAI

OpenAI

Mastra

Mastra

Clay

Clay