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) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/video-chroma-key' \
-F 'file=@/path/to/foregroundVideo.ext'
curl -X POST 'https://api.elysiatools.com/upload/video-chroma-key' \
-F 'file=@/path/to/backgroundVideo.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/fr/api/tools/video-chroma-key' \
-F 'foregroundVideo=/path/to/file.ext' \
-F 'backgroundVideo=/path/to/file.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]