
Screenshot Beautifier API
Design
Make screenshots look polished: add a gradient background, padding, rounded corners, a shadow and a macOS or browser window frame, then copy or download.
Authentication
All API requests require a valid API key passed in the Authorization header as a Bearer token.
Rate Limit
20 requests per minute
Endpoints
1 endpoint available
Overview
Puts a screenshot on a gradient, solid or transparent background with padding, rounded corners and a shadow, optionally inside a macOS or browser window frame, and fits it to a social aspect ratio. It uses the same drawing code as the web page and returns a PNG at the screenshot's full resolution.
Backgrounds
gradient(default): pick a preset withgradient(ocean, sunset, grape, mint, peach, sky, night, ember, forest, cotton) and override any ofgradientFrom,gradientTo,gradientAngle.solid: one colour, fromcolour.transparent: no background, for placing on your own design.
Limits and behavior
- Send the screenshot as multipart/form-data in the
filefield: JPEG, PNG, WebP, GIF (first frame), AVIF or TIFF, up to 20 MB and 16 megapixels. HEIC is not supported. - Padding, corner radius and the frame scale with the screenshot's width, so the look is the same at any size. Output larger than 16 megapixels is scaled down to fit.
- Window frame text is drawn in Liberation Sans. The web page uses your device's system font, so it can look slightly different.
- The response body is the PNG itself, named
<name>-beautified.png. Errors are JSON:{"success": false, "error": "..."}. Screenshots are not stored.
Endpoints
POST
https://opentools.ca/api/v1/tools/screenshot-beautifierFrame a screenshot on a background and return a PNG
Request Body
Content-Type: multipart/form-data
| Parameter | Type | Required | Description |
|---|---|---|---|
| file | file | Required | The screenshot. JPEG, PNG, WebP, GIF, AVIF or TIFF, up to 20 MB and 16 megapixels. |
| background | string Enum: gradient, solid, transparent | Optional | Background type.Default: gradient |
| gradient | string Enum: ocean, sunset, grape, mint, peach, sky, night, ember, forest, cotton | Optional | Gradient preset for background=gradient.Default: ocean |
| gradientFrom | string | Optional | Hex start colour, overriding the preset. |
| gradientTo | string | Optional | Hex end colour, overriding the preset. |
| gradientAngle | number | Optional | Gradient angle in degrees, 0-360, as in CSS (90 runs left to right), overriding the preset. |
| colour | string | Optional | Hex colour for background=solid.Default: #e2e8f0 |
| padding | number | Optional | Space around the window as a fraction of the screenshot width, 0-0.3.Default: 0.08 |
| radius | number | Optional | Corner radius in thousandths of the screenshot width, 0-50.Default: 14 |
| shadow | number | Optional | Shadow strength, 0 (none) to 1.Default: 0.6 |
| frame | string Enum: none, macos-light, macos-dark, browser-light, browser-dark | Optional | Window frame drawn above the screenshot.Default: macos-light |
| frameText | string | Optional | Window title (macOS frames) or address bar text (browser frames), up to 200 characters.Default: "" |
| aspect | string Enum: auto, 16:9, 4:3, 1:1, 4:5, 9:16 | Optional | Output aspect ratio. auto keeps the padding even; others add background to fit.Default: auto |
| scale | number Enum: 0.5, 1, 2 | Optional | Output size relative to the screenshot (1 = original resolution).Default: 1 |
Response Example
The body is the image (Content-Type: image/png), sent as an attachment named "<screenshot name>-beautified.png". Errors return JSON, for example:
{
"success": false,
"error": "The screenshot is 6000 x 4000 pixels. The limit is 16 megapixels."
}Error Codes
400
Bad Request - No file, an invalid option, or an image that could not be read or is over 16 megapixels401
Unauthorized - Invalid or missing API key403
Forbidden - API key inactive, expired, or not allowed from this IP413
Payload Too Large - The file is over 20 MB415
Unsupported Media Type - The file is not a JPEG, PNG, WebP, GIF, AVIF or TIFF image429
Too Many Requests - Rate limit exceeded500
Internal Server ErrorCode Examples
curl -X POST https://opentools.ca/api/v1/tools/screenshot-beautifier \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "file=@screenshot.png" \
-F "gradient=sunset" \
-F "frame=browser-light" \
-F "frameText=opentools.ca" \
-F "aspect=16:9" \
-o screenshot-beautified.pngRather use it in your browser? Open the Screenshot Beautifier