>_
SudoMock
Use Case

Mug Mockup Generator API

Create professional coffee mug mockups with wrap-around designs. 11oz, 15oz, and travel mug templates.

<1s
Per mockup
$0.002
Per render
360°
Wrap support
99.9%
Uptime

Supported Mug Styles

Mugs are a POD bestseller with consistent demand year-round. SudoMock supports various mug styles and handles the tricky wrap-around perspective transformation that makes mug mockups look realistic.

Standard Ceramic (11oz/15oz)

Classic coffee mug with handle. Front view, angled view, and lifestyle shots.

Enamel Camping Mugs

Outdoor aesthetic with metal rim and rustic finish.

Travel Tumblers

Stainless steel and insulated drinkware with lid.

Color-Changing Mugs

Magic reveal mugs showing design when heated.

Mug Mockup Implementation

Mug Mockup Generation
1
import requests
2
3
def generate_mug_mockup(design_url, mug_type="11oz", view="front"):
4
"""Generate a mug mockup with wrap-around design"""
5
6
TEMPLATES = {
7
"11oz_front": "mug-11oz-front-uuid",
8
"11oz_angled": "mug-11oz-angled-uuid",
9
"15oz_front": "mug-15oz-front-uuid",
10
"travel_front": "mug-travel-front-uuid"
11
}
12
13
template_key = f"{mug_type}_{view}"
14
15
response = requests.post(
16
"https://api.sudomock.com/api/v1/renders",
17
headers={
18
"X-API-KEY": "YOUR_API_KEY",
19
"Content-Type": "application/json"
20
},
21
json={
22
"mockup_uuid": TEMPLATES[template_key],
23
"smart_objects": [{
24
"uuid": "wrap-design",
25
"asset": {
26
"url": design_url,
27
"fit": "fill" # Stretch to fill wrap area
28
}
29
}],
30
"export_options": {
31
"image_format": "webp",
32
"image_size": 2000,
33
"quality": 95
34
}
35
}
36
)
37
38
return response.json()["data"]["print_files"][0]["export_path"]
39
40
# Generate mockups for product listing
41
design = "https://cdn.example.com/mug-design.png"
42
mockups = {
43
"main": generate_mug_mockup(design, "11oz", "front"),
44
"angle": generate_mug_mockup(design, "11oz", "angled"),
45
"large": generate_mug_mockup(design, "15oz", "front")
46
}

Wrap-Around Designs

For wrap-around mug designs, prepare your artwork at the correct aspect ratio (typically 3:1 for full wrap). The Smart Object in your PSD template handles the perspective transformation automatically.

Automate Your Mug Mockups

Start with 500 free API credits. No credit card required.