Free plan
Device Mockup
Show a screenshot inside a phone, laptop or browser window


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
- Choose this tool.
- Add your screenshot with Upload or drag and drop.
- Choose the device and the background.
- Set the size and shadow if you wish, then press Generate.
- 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.
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;More in Images
