Screenshot Beautifier

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 with gradient (ocean, sunset, grape, mint, peach, sky, night, ember, forest, cotton) and override any of gradientFrom, gradientTo, gradientAngle.
  • solid: one colour, from colour.
  • transparent: no background, for placing on your own design.

Limits and behavior

  • Send the screenshot as multipart/form-data in the file field: 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-beautifier
Frame a screenshot on a background and return a PNG

Request Body

Content-Type: multipart/form-data

ParameterTypeRequiredDescription
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
OptionalBackground type.Default: gradient
gradient
string
Enum: ocean, sunset, grape, mint, peach, sky, night, ember, forest, cotton
OptionalGradient preset for background=gradient.Default: ocean
gradientFrom
string
OptionalHex start colour, overriding the preset.
gradientTo
string
OptionalHex end colour, overriding the preset.
gradientAngle
number
OptionalGradient angle in degrees, 0-360, as in CSS (90 runs left to right), overriding the preset.
colour
string
OptionalHex colour for background=solid.Default: #e2e8f0
padding
number
OptionalSpace around the window as a fraction of the screenshot width, 0-0.3.Default: 0.08
radius
number
OptionalCorner radius in thousandths of the screenshot width, 0-50.Default: 14
shadow
number
OptionalShadow strength, 0 (none) to 1.Default: 0.6
frame
string
Enum: none, macos-light, macos-dark, browser-light, browser-dark
OptionalWindow frame drawn above the screenshot.Default: macos-light
frameText
string
OptionalWindow 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
OptionalOutput aspect ratio. auto keeps the padding even; others add background to fit.Default: auto
scale
number
Enum: 0.5, 1, 2
OptionalOutput 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 megapixels
401
Unauthorized - Invalid or missing API key
403
Forbidden - API key inactive, expired, or not allowed from this IP
413
Payload Too Large - The file is over 20 MB
415
Unsupported Media Type - The file is not a JPEG, PNG, WebP, GIF, AVIF or TIFF image
429
Too Many Requests - Rate limit exceeded
500
Internal Server Error

Code 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.png

Ready to get started?

Create an API key to start using the Screenshot Beautifier API.

Rather use it in your browser? Open the Screenshot Beautifier