Design
Composite multiple images together with precise control over position, opacity, and blend modes
Call this tool from your code in three languages.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/image-composite' \
-F 'file=@/path/to/baseImage.ext'
curl -X POST 'https://api.elysiatools.com/upload/image-composite' \
-F 'file=@/path/to/compositeImages.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/en/api/tools/image-composite' \
-F 'baseImage=/path/to/file.ext' \
-F 'compositeImages=/path/to/file.ext' \
-F 'layoutMode=grid' \
-F 'blendMode=over' \
-F 'canvasWidth=0' \
-F 'canvasHeight=0' \
-F 'backgroundColor=transparent' \
-F 'outputFormat=png' \
-F 'quality=95'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/image-composite| Name | Type | Required | Description |
|---|---|---|---|
| baseImage | fileupload required | Yes | Base image that other images will be composited onto |
| compositeImages | fileupload required | Yes | Select 1-8 images to composite onto the base image |
| layoutMode | select | Yes | How to arrange the composited images |
| blendMode | select | No | Blend mode for composited images |
| canvasWidth | number | No | Width of the final canvas (leave empty to use base image width) |
| canvasHeight | number | No | Height of the final canvas (leave empty to use base image height) |
| backgroundColor | color | No | Background color for transparent areas (default: transparent) |
| outputFormat | select | No | Output format for the composited image |
| quality | number | No | Output quality for lossy formats (JPEG, WebP, AVIF) |
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-image-composite": {
"name": "image-composite",
"description": "Composite multiple images together with precise control over position, opacity, and blend modes",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=image-composite",
"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": "image-composite",
"arguments": {
"baseImage": "https://example.com/file.ext",
"compositeImages": "https://example.com/file.ext",
"layoutMode": "grid",
"blendMode": "over",
"canvasWidth": 0,
"canvasHeight": 0,
"backgroundColor": "transparent",
"outputFormat": "png",
"quality": 95
}
}
}Questions or issues? Contact [email protected]