Design
Composite multiple images together with precise control over position, opacity, and blend modes
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/image-composite' \
-H 'Content-Type: application/json' \
-d '{"filename":"baseImage.ext","contentType":"application/octet-stream","size":12345}'
curl -X POST 'https://api.elysiatools.com/api/upload/presign/image-composite' \
-H 'Content-Type: application/json' \
-d '{"filename":"compositeImages.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/image-composite' \
-F 'baseImage=uploads/2026/01/01/your-tool-1700000000000-abc123.ext' \
-F 'compositeImages=uploads/2026/01/01/your-tool-1700000000000-abc123.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]