Home › APIs › Media, text & files
Image Resize API
Turns audio, images, video and posts into text and data.
Used by: Content teams, researchers, developers of AI tools.
Resize 1-30 images by width, height (aspect kept) or percent, Lanczos quality; exact=true stretches to width x height. GPS/EXIF removed. Runs on our server, files are deleted right after the call, nothing stored.
Try it live, no sign-up
Run the example as is, or change the input. 5 own tries a day without a key.
Example request
curl -X POST https://radarbg.com/v1/image-resize \
-H "X-API-Key: YOUR_KEY" -H "Content-Type: application/json" \
-d '{"fileContent": "iVBORw0KGgoAAAANSUhEUgAAAHgAAABQCAIAAABd+SbeAAAA6klEQVR4nO3cQQ2DABAAwdKgg1cFVQIykIOEyqiIisFDKdsQZv6XXDb3vmFa3jeOd//3AlchdEToiNARoSNCR4SOCB0ROiJ0ROiI0BGhI0JHhI4IHRE6InRE6Mi4Z/jznH+0xmk8Xut3gy46InRE6IjQEaEjQkeEjggdEToidEToiNARoSNCR4SOCB0ROiJ0ROiI0BGhI0JHhI4IHRE6InRE6IjQEaEjQkeEjggdEToidEToiNARoSNCR4SOCB0ZPIFtuOiI0BGhI0JHhI4IHRE6InRE6IjQEaEjQkeEjggdEToidEToiNCRDexBBl0OjJSaAAAAAElFTkSuQmCC", "fileName": "sample.png", "width": 60, "exact": false}'
Answer: {"ok": true, "count": N, "items": [...], "usage": {...}}. Failed calls are not counted.
Inputs
| Field | Type | Description |
|---|---|---|
fileContent | string | The file as base64 (a data: URI is fine) |
fileName | string | File name with extension, e.g. report.pdf |
files | array | Or several files: [{fileName, fileContent (base64)}] |
width | integer | Width in px (max 10000) |
height | integer | Height in px (max 10000) |
percent | integer | Or scale in percent (1-400) |
exact | boolean | Use exactly width x height |
Price
Included in every plan: 500 calls a month free, then from €5 a month for 5,000 calls across all APIs.
Questions
What does the Image Resize API do?
Turns audio, images, video and posts into text and data.
Where does the data come from?
Resize 1-30 images by width, height (aspect kept) or percent, Lanczos quality; exact=true stretches to width x height. GPS/EXIF removed. Runs on our server, files are deleted right after the call, nothing stored.
How much does it cost?
500 calls a month are free with no card. Paid plans start at EUR 5 a month for 5,000 calls and include every API on Radar. Failed calls are not counted.
Can I use it without writing code?
Yes. Try it live on this page, use our free browser tools, or ask us to run it on your list as a service.