Media
Supprime l'ecran vert ou tout arriere-plan colore de la video et le remplace par une autre video
Appelez cet outil depuis votre code en trois langages.
# 1) Request a presigned URL → returns { uploadUrl, storageKey }
curl -X POST 'https://api.elysiatools.com/api/upload/presign/video-chroma-key' \
-H 'Content-Type: application/json' \
-d '{"filename":"foregroundVideo.ext","contentType":"application/octet-stream","size":12345}'
curl -X POST 'https://api.elysiatools.com/api/upload/presign/video-chroma-key' \
-H 'Content-Type: application/json' \
-d '{"filename":"backgroundVideo.ext","contentType":"application/octet-stream","size":12345}'
# 2) PUT the file bytes directly to the presigned uploadUrl
curl -X PUT '<presigned uploadUrl>' \
--data-binary @/path/to/file.ext
# 3) Call the tool, passing the returned storageKey for each file field
curl -X POST 'https://api.elysiatools.com/fr/api/tools/video-chroma-key' \
-F 'foregroundVideo=uploads/2026/01/01/your-tool-1700000000000-abc123.ext' \
-F 'backgroundVideo=uploads/2026/01/01/your-tool-1700000000000-abc123.ext' \
-F 'color=green' \
-F 'customColor=0x00FF00' \
-F 'similarity=0.15' \
-F 'blend=0.1' \
-F 'outputFormat=mp4'Envoyez une requête POST avec vos entrées en JSON. Les paramètres de type fichier nécessitent un upload préalable.
POST https://api.elysiatools.com/fr/api/tools/video-chroma-key| Nom | Type | Requis | Description |
|---|---|---|---|
| foregroundVideo | fileupload requis | Oui | — |
| backgroundVideo | fileupload requis | Oui | — |
| color | select | Non | — |
| customColor | text | Non | Couleur personnalisee au format hexadecimal (ex. 0x00FF00 pour vert) |
| similarity | range | Non | Seuil de similarite de couleur (0.01-1). Plus bas = correspondance de couleur plus exacte, Plus haut = plus de couleurs supprimees |
| blend | range | Non | Facteur de melange pour les bords (0-1). Plus eleve = bords plus doux, Plus bas = bords plus durs |
| outputFormat | select | Non | — |
Résultat fichier
{
"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)"
}Ajoutez cet outil à votre serveur Model Context Protocol pour que les agents IA puissent le lister et l'appeler.
Ajoutez ce bloc à la configuration de votre client MCP :
{
"mcpServers": {
"elysiatools-video-chroma-key": {
"name": "video-chroma-key",
"description": "Supprime l'ecran vert ou tout arriere-plan colore de la video et le remplace par une autre video",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=video-chroma-key",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Après connexion au point d'accès SSE, listez les outils exposés :
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Appelez l'outil par son id ; les arguments sont construits à partir de ses paramètres :
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "video-chroma-key",
"arguments": {
"foregroundVideo": "https://example.com/file.ext",
"backgroundVideo": "https://example.com/file.ext",
"color": "green",
"customColor": "0x00FF00",
"similarity": 0.15,
"blend": 0.1,
"outputFormat": "mp4"
}
}
}Des questions ou un problème ? Contactez [email protected]