Media
Convert videos to optimized GIF format with advanced compression settings
Call this tool from your code in three languages.
# 1) Request a presigned URL → returns { uploadUrl, storageKey }
curl -X POST 'https://api.elysiatools.com/api/upload/presign/video-to-gif-optimized' \
-H 'Content-Type: application/json' \
-d '{"filename":"videoFile.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/en/api/tools/video-to-gif-optimized' \
-F 'videoFile=uploads/2026/01/01/your-tool-1700000000000-abc123.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 | 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)"
}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"
}
}
}Questions or issues? Contact [email protected]