>_
SudoMock
Use Case

Phone Case Mockup API

Generate realistic phone case mockups for all major devices. iPhone, Samsung, and Google Pixel templates.

<1s
Per mockup
$0.002
Per render
50+
Device models
99.9%
Uptime

Device Coverage

Phone case mockups require templates for each device model. SudoMock's template system lets you maintain a library of PSD templates for current and legacy devices. When Apple releases a new iPhone, simply upload a new template — no code changes needed.

Popular Device Templates

iPhone 15/15 ProiPhone 14/14 ProiPhone 13/13 ProSamsung Galaxy S24Samsung Galaxy S23Google Pixel 8

Implementation

Multi-Device Phone Case Generation
1
// Generate phone case mockups for multiple devices
2
const PHONE_TEMPLATES = {
3
"iphone_15_pro": "case-iphone15pro-uuid",
4
"iphone_15": "case-iphone15-uuid",
5
"iphone_14_pro": "case-iphone14pro-uuid",
6
"samsung_s24": "case-samsungs24-uuid",
7
"pixel_8": "case-pixel8-uuid"
8
};
9
10
async function generatePhoneCaseMockups(designUrl, devices = Object.keys(PHONE_TEMPLATES)) {
11
const mockups = await Promise.all(
12
devices.map(async (device) => {
13
const response = await fetch("https://api.sudomock.com/api/v1/renders", {
14
method: "POST",
15
headers: {
16
"X-API-KEY": process.env.SUDOMOCK_API_KEY,
17
"Content-Type": "application/json"
18
},
19
body: JSON.stringify({
20
mockup_uuid: PHONE_TEMPLATES[device],
21
smart_objects: [{
22
uuid: "case-back",
23
asset: { url: designUrl, fit: "cover" }
24
}],
25
export_options: { image_format: "webp", quality: 95 }
26
})
27
});
28
29
const data = await response.json();
30
return { device, mockupUrl: data.data.print_files[0].export_path };
31
})
32
);
33
34
return mockups;
35
}
36
37
// Generate for all devices in parallel
38
const mockups = await generatePhoneCaseMockups("https://cdn.example.com/design.png");
39
// Returns array of { device: "iphone_15_pro", mockupUrl: "https://..." }

Design Dimensions

Phone case designs should account for camera cutouts. Create your design templates with safe zones to ensure critical design elements aren't hidden by the camera bump.

Start Creating Phone Case Mockups

500 free API credits. Support for all major devices.