Image Rotate and Flip API - 90/180 degrees, mirror
image_rotateRotate or flip one or many images (JPG, PNG, WebP, HEIC...). Several files return one file each. Runs on our server, files are deleted right after the call, nothing stored. Free: 25 calls/day per IP. Paid: $0.002 per call via x402 at https://radarbg.com/x402/image-rotate.
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": {
"action": "r90",
"fileName": "sample.png",
"fileContent": "iVBORw0KGgoAAAANSUhEUgAAAHgAAABQCAIAAABd+SbeAAAA6klEQVR4nO3cQQ2DABAAwdKgg1cFVQIykIOEyqiIisFDKdsQZv6XXDb3vmFa3jeOd//3AlchdEToiNARoSNCR4SOCB0ROiJ0ROiI0BGhI0JHhI4IHRE6InRE6Mi4Z/jznH+0xmk8Xut3gy46InRE6IjQEaEjQkeEjggdEToidEToiNARoSNCR4SOCB0ROiJ0ROiI0BGhI0JHhI4IHRE6InRE6IjQEaEjQkeEjggdEToidEToiNARoSNCR4SOCB0ZPIFtuOiI0BGhI0JHhI4IHRE6InRE6IjQEaEjQkeEjggdEToidEToiNCRDexBBl0OjJSaAAAAAElFTkSuQmCC"
},
"name": "image_rotate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Or several files: [{fileName, fileContent (base64)}] | |
| action | No | r90 right, l90 left, r180, fh flip horizontal, fv flip vertical | r90 |
| fileName | No | File name with extension, e.g. report.pdf | |
| fileContent | No | The file as base64 (a data: URI is fine) |