Media
Convert videos to optimized GIF format with advanced compression settings
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-to-gif-optimized' \
-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-to-gif-optimized' \
-F 'videoFile=/path/to/file.ext' \
-F 'optimizationLevel=balanced' \
-F 'width=0' \
-F 'height=0' \
-F 'fps=10' \
-F 'startTime=0' \
-F 'duration=30' \
-F 'quality=90' \
-F 'colors=0' \
-F 'dithering=bayer'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-to-gif-optimized| Name | Type | Required | Description |
|---|---|---|---|
| videoFile | fileupload required | Yes | — |
| optimizationLevel | select | No | — |
| width | number | No | Target width in pixels (auto if empty) |
| height | number | No | Target height in pixels (auto if empty) |
| fps | number | No |
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-to-gif-optimized": {
"name": "video-to-gif-optimized",
"description": "Convert videos to optimized GIF format with advanced compression settings",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=video-to-gif-optimized",
"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-to-gif-optimized",
"arguments": {
"videoFile": "https://example.com/file.ext",
"optimizationLevel": "balanced",
"width": 0,
"height": 0,
"fps": 10,
"startTime": 0,
"duration": 30,
"quality": 90,
"colors": 0,
"dithering": "bayer"
}
}
}| Animation frame rate (1-30 fps) |
| startTime | number | No | Start conversion from this time |
| duration | number | No | Maximum 60 seconds for GIF |
| quality | number | No | Affects output dimensions (100 = original size) |
| colors | number | No | Override preset color count (empty = use preset) |
| dithering | 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]