Media
Remove solid color backgrounds from video using chroma key (green screen, blue screen, etc.)
Call this tool from your code in three languages.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/video-background-remove' \
-F 'file=@/path/to/videoFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/en/api/tools/video-background-remove' \
-F 'videoFile=/path/to/file.ext' \
-F 'keyColor=0x00FF00' \
-F 'customColor=#00FF00' \
-F 'similarity=0.3' \
-F 'blend=0.1' \
-F 'outputFormat=webm'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/video-background-remove| Name | Type | Required | Description |
|---|---|---|---|
| videoFile | fileupload required | Yes | — |
| keyColor | select | No | — |
| customColor | color | No | Select custom background color to remove (when Key Color is set to Custom) |
| similarity | range | No | Color matching tolerance (0-1). Higher values remove more similar colors. |
| blend | range |
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-video-background-remove": {
"name": "video-background-remove",
"description": "Remove solid color backgrounds from video using chroma key (green screen, blue screen, etc.)",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=video-background-remove",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "video-background-remove",
"arguments": {
"videoFile": "https://example.com/file.ext",
"keyColor": "0x00FF00",
"customColor": "#00FF00",
"similarity": 0.3,
"blend": 0.1,
"outputFormat": "webm"
}
}
}| Edge feathering (0-1). Higher values create softer edges. |
| outputFormat | select | No | — |
File result
{
"filePath": "/public/processing/randomid.ext",
"fileName": "output.ext",
"contentType": "application/octet-stream",
"size": 1024,
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Questions or issues? Contact [email protected]