Free plan

Device Mockup

Show a screenshot inside a phone, laptop or browser window
POST
/v1/images/mockup
Laptop mockup
Original
OriginalLaptop mockup

About this tool

Places your screenshot on the screen of a device, such as a phone, tablet, laptop, browser window or monitor, on a colour, a gradient or a see-through background, with a soft shadow. You can choose the device, its colour, the size, and turn a phone on its side.
For example, you show a website screenshot inside a laptop for your portfolio.

How to use it

  1. Choose this tool.
  2. Add your screenshot with Upload or drag and drop.
  3. Choose the device and the background.
  4. Set the size and shadow if you wish, then press Generate.
  5. Download the picture.

What you get back

You get a new picture of your screenshot inside the device, ready to download.
GOOD TO KNOW
The frames are drawn by the server (no brand artwork). One screenshot counts as one image.
TEST IT LIVE

Try Device Mockup in the Studio

One click opens the Studio with this tool already selected. Add your file and see the result in seconds.
Open in the Studio
Family
Images
Plan
Free
Method
POST
Endpoint
/v1/images/mockup
Tool ID
images.mockup
Authentication
API key
Accepts
JPEG, PNG, WEBP, GIF, AVIF, TIFF +15 more
Background jobs
Yes
Usage group
Image
For developers

Use it from your code

cURL

curl -X POST "https://app.h2i.davixlabs.io/v1/images/mockup" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'images=@photo.jpg' \
  -F 'device=phone' \
  -F 'frame=silver' \
  -F 'background=#dbeafe,#fce7f3'

Node.js

const { DavixH2I } = require('@davixlabs/h2i-sdk');

const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.images.mockup({
    "images": 'photo.jpg',
    "device": "phone",
    "frame": "silver",
    "background": "#dbeafe,#fce7f3"
  });
console.log(result.data, result.requestId);

PHP

<?php
require 'vendor/autoload.php';

$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->images()->mockup([
    'images' => 'photo.jpg',
    'device' => 'phone',
    'frame' => 'silver',
    'background' => '#dbeafe,#fce7f3',
]);
echo $result->requestId;
FAQ

Frequently asked questions

Put a screenshot into a phone, tablet, laptop, browser window or desktop monitor, on a colour, a gradient or a transparent background, with a soft shadow.

Device Mockup accepts JPEG, PNG, WEBP, GIF, AVIF, TIFF, SVG, SVGZ, BMP, ICO, APNG, PNM and 9 more. You can send several files in one request.

Device Mockup is included in every plan, including Free. Each run uses credits from your monthly allowance.

Send a POST request to /v1/images/mockup with your API key in the X-Api-Key header. Official SDKs for Node.js, Python, PHP, Go, Java, .NET and Ruby do the same for you, and the code box on this page shows ready-to-copy examples. For large work it can also run as a background job, so your request returns straight away.