Social Media Image Resizer API - exact sizes for Instagram, Facebook, X, LinkedIn, YouTube, TikTok
social_image_resizerSend one image and get it back in the exact pixel size each network wants: Instagram post, portrait and story, Facebook post and cover, X post and header, LinkedIn post and banner, YouTube thumbnail and banner, TikTok cover, Pinterest pin, link preview image, profile photo. Up to 8 sizes per call. Fill and crop from the centre, or keep the whole picture on a background colour. JPG, PNG or WebP out. Call it without a file to get the size table. Free: 5 calls/day per IP. Paid: Radar API key (from €9/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.003/call via x402 at https://radarbg.com/x402/social-image-resizer.
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": {
"presets": "instagram-post,youtube-thumbnail",
"fileContent": "iVBORw0KGgoAAAANSUhEUgAAAEAAAAAgCAIAAAAt/+nTAAAAOUlEQVR42u3PAQkAMAgAMH0XkxnfEm8hCFuDZfXEZS+OExAQEBAQEBAQEBAQEBAQEBAQEBAQENj3AREOAbOcmaPYAAAAAElFTkSuQmCC"
},
"name": "social_image_resizer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fit | No | cover = fill the size and crop the edges, contain = whole image on a background | cover |
| mode | No | sizes = only list every size, no image needed | resize |
| format | No | Output format | jpg |
| presets | No | One or more sizes, comma separated, e.g. instagram-post,youtube-thumbnail. instagram-post, instagram-portrait, instagram-story, facebook-post, facebook-cover, x-post, x-header, linkedin-post, linkedin-banner, youtube-thumbnail, youtube-banner, tiktok-cover, pinterest-pin, og-image, profile-photo | |
| background | No | Background colour for fit=contain, hex, default #ffffff | |
| fileContent | No | The image as base64 (JPG, PNG, WebP, HEIC...), max 20 MB |