Circle Crop Image API - round avatar & rounded-corners transparent PNG/WebP
circle_crop_imageCrop an image into a circle, oval or rounded-corners shape with transparent corners for avatars, logos and profile pictures. Supports zoom, horizontal/vertical offset, corner radius and target pixel size. Runs on our server, files are deleted right after the call, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €15/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.002/call via x402 at https://radarbg.com/x402/circle-crop-image.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"size": "256",
"shape": "circle",
"format": "png",
"fileName": "sample.png",
"fileContent": "iVBORw0KGgoAAAANSUhEUgAAAHgAAABQCAIAAABd+SbeAAAA6klEQVR4nO3cQQ2DABAAwdKgg1cFVQIykIOEyqiIisFDKdsQZv6XXDb3vmFa3jeOd//3AlchdEToiNARoSNCR4SOCB0ROiJ0ROiI0BGhI0JHhI4IHRE6InRE6Mi4Z/jznH+0xmk8Xut3gy46InRE6IjQEaEjQkeEjggdEToidEToiNARoSNCR4SOCB0ROiJ0ROiI0BGhI0JHhI4IHRE6InRE6IjQEaEjQkeEjggdEToidEToiNARoSNCR4SOCB0ZPIFtuOiI0BGhI0JHhI4IHRE6InRE6IjQEaEjQkeEjggdEToidEToiNCRDexBBl0OjJSaAAAAAElFTkSuQmCC"
},
"name": "circle_crop_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Output size: orig, 1024, 512, 256, 128 or 64 | orig |
| zoom | No | Zoom % (for shape=circle, default 100) | |
| files | No | Or several files: [{fileName, fileContent (base64)}] (up to 60 files, 20 MB total) | |
| shape | No | circle, ellipse or rounded | circle |
| format | No | Output format: png or webp | png |
| radius | No | Corner roundness % (0-50, for shape=rounded) | |
| offsetX | No | Horizontal pan % (-100 to 100, for shape=circle) | |
| offsetY | No | Vertical pan % (-100 to 100, for shape=circle) | |
| fileName | No | File name with extension, e.g. report.pdf | |
| fileContent | No | The file as base64 (a data: URI is fine; 20 MB total decoded limit per call) |