Home › APIs › Social media & marketing
Social Media Image Resizer API
Turns one picture into the exact sizes Instagram, Facebook, X, LinkedIn, YouTube and TikTok ask for.
Used by: Marketers, social media managers, agencies and scheduling tools.
Send 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.
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/social-image-resizer \
-H "X-API-Key: YOUR_KEY" -H "Content-Type: application/json" \
-d '{"fileContent": "iVBORw0KGgoAAAANSUhEUgAAAEAAAAAgCAIAAAAt/+nTAAAAOUlEQVR42u3PAQkAMAgAMH0XkxnfEm8hCFuDZfXEZS+OExAQEBAQEBAQEBAQEBAQEBAQEBAQENj3AREOAbOcmaPYAAAAAElFTkSuQmCC", "presets": "instagram-post,youtube-thumbnail"}'
Answer: {"ok": true, "count": N, "items": [...], "usage": {...}}. Failed calls are not counted.
Inputs
| Field | Type | Description |
|---|---|---|
fileContent | string | The image as base64 (JPG, PNG, WebP, HEIC...), max 20 MB |
presets | string | 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-bann |
fit | string | cover = fill the size and crop the edges, contain = whole image on a background |
background | string | Background colour for fit=contain, hex, default #ffffff |
format | string | Output format |
mode | string | sizes = only list every size, no image needed |
Price
Included in every plan: 500 calls a month free, then from €9 a month for 5,000 calls across all APIs. Pro, €29 for 25,000 calls, is the one we recommend.
Questions
What does the Social Media Image Resizer API do?
Turns one picture into the exact sizes Instagram, Facebook, X, LinkedIn, YouTube and TikTok ask for.
Where does the data come from?
Send 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
How much does it cost?
500 calls a month are free with no card. Paid plans start at EUR 9 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.