Media
专业视频调色工具,支持亮度、对比度、饱和度和伽马调整
用三种语言从你的代码中调用此工具。
# 1) Request a presigned URL → returns { uploadUrl, storageKey }
curl -X POST 'https://api.elysiatools.com/api/upload/presign/video-color-grading' \
-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/zh/api/tools/video-color-grading' \
-F 'videoFile=uploads/2026/01/01/your-tool-1700000000000-abc123.ext' \
-F 'preset=none' \
-F 'outputFormat=mp4' \
-F 'keepAudio=true' \
-F 'customBrightness=0' \
-F 'customContrast=1' \
-F 'customSaturation=1' \
-F 'customGamma=1'以 JSON 形式 POST 提交输入参数。文件类型参数需先单独上传。
POST https://api.elysiatools.com/zh/api/tools/video-color-grading| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| videoFile | file需先上传 | 是 | — |
| preset | select | 否 | — |
| outputFormat | select | 否 | — |
| keepAudio | checkbox | 否 | 保留音轨 |
| customBrightness | range | 否 | 调整亮度(-1 到 1)。负数 = 更暗,正数 = 更亮。 |
| customContrast | range | 否 | 调整对比度(0 到 2)。低于 1 降低对比度,高于 1 增加对比度。 |
| customSaturation | range | 否 | 调整饱和度(0 到 3)。0 = 灰度,高于 1 更鲜艳。 |
| customGamma | range | 否 | 调整伽马(0.1 到 10)。影响中间调亮度。 |
文件结果
{
"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)"
}将此工具加入你的 Model Context Protocol 服务,让 AI 智能体可以列出并调用它。
将以下内容加入你的 MCP 客户端配置:
{
"mcpServers": {
"elysiatools-video-color-grading": {
"name": "video-color-grading",
"description": "专业视频调色工具,支持亮度、对比度、饱和度和伽马调整",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=video-color-grading",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}连接到 SSE 端点后,列出已开放的工具:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}通过工具 id 调用,参数由其参数表构建:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "video-color-grading",
"arguments": {
"videoFile": "https://example.com/file.ext",
"preset": "none",
"outputFormat": "mp4",
"keepAudio": true,
"customBrightness": 0,
"customContrast": 1,
"customSaturation": 1,
"customGamma": 1
}
}
}有问题或反馈?请联系 [email protected]