>_
SudoMock
Use Case

Hoodie Mockup Generator API

Generate professional hoodie and sweatshirt mockups in under 1 second. Front, back, and lifestyle shots — all via REST API.

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

Why Use an API for Hoodie Mockups?

Hoodies are a POD bestseller, but creating mockups for all variants is time-consuming. Multiple colors, front/back views, kangaroo pocket details — each combination needs a separate mockup. SudoMock's REST API generates production-ready hoodie mockups in under 1 second via a simple HTTP POST request.

Perfect For

  • Print-on-demand sellers with apparel catalogs
  • Streetwear and fashion brands needing product shots
  • Merch stores for creators, bands, and influencers
  • E-commerce platforms with custom apparel features

Setting Up Hoodie Templates

Start by uploading your hoodie PSD templates. Each template should have Smart Object layers for design placement. For hoodies, you typically need front chest, back print, and sometimes sleeve placements.

Upload Hoodie Template
1
# Upload hoodie template
2
curl -X POST "https://api.sudomock.com/api/v1/psd/upload" \
3
-H "Content-Type: application/json" \
4
-H "X-API-KEY: YOUR_API_KEY" \
5
-d '{
6
"psd_file_url": "https://your-storage.com/hoodie-front-black.psd",
7
"psd_name": "Black Hoodie Front"
8
}'
9
10
# Response includes mockup_uuid and smart_object UUIDs
11
{
12
"success": true,
13
"data": {
14
"uuid": "hoodie-black-front-uuid",
15
"name": "Black Hoodie Front",
16
"smart_objects": [
17
{
18
"uuid": "chest-design-uuid",
19
"name": "Chest Design",
20
"size": { "width": 2000, "height": 2400 }
21
}
22
]
23
}
24
}

Generating Hoodie Mockups

Once your template is uploaded, generate mockups by calling the render endpoint with your design URL. The API returns a CDN-hosted image URL in under 1 second.

Generate Hoodie Mockups (Python)
1
import requests
2
3
def generate_hoodie_mockup(design_url, color="black", view="front"):
4
"""Generate a hoodie mockup with the given design"""
5
6
# Template UUIDs for different hoodie variants
7
TEMPLATES = {
8
"black-front": {
9
"mockup_uuid": "hoodie-black-front-uuid",
10
"smart_object_uuid": "chest-design-uuid"
11
},
12
"black-back": {
13
"mockup_uuid": "hoodie-black-back-uuid",
14
"smart_object_uuid": "back-design-uuid"
15
},
16
"gray-front": {
17
"mockup_uuid": "hoodie-gray-front-uuid",
18
"smart_object_uuid": "chest-design-uuid"
19
},
20
"navy-front": {
21
"mockup_uuid": "hoodie-navy-front-uuid",
22
"smart_object_uuid": "chest-design-uuid"
23
}
24
}
25
26
template_key = f"{color}-{view}"
27
template = TEMPLATES.get(template_key, TEMPLATES["black-front"])
28
29
response = requests.post(
30
"https://api.sudomock.com/api/v1/renders",
31
headers={
32
"X-API-KEY": "YOUR_API_KEY",
33
"Content-Type": "application/json"
34
},
35
json={
36
"mockup_uuid": template["mockup_uuid"],
37
"smart_objects": [{
38
"uuid": template["smart_object_uuid"],
39
"asset": {
40
"url": design_url,
41
"fit": "contain"
42
}
43
}],
44
"export_options": {
45
"image_format": "webp",
46
"image_size": 2000,
47
"quality": 95
48
}
49
}
50
)
51
52
result = response.json()
53
return result["data"]["print_files"][0]["export_path"]
54
55
# Generate front and back mockups
56
design = "https://cdn.example.com/designs/logo.png"
57
front_mockup = generate_hoodie_mockup(design, "black", "front")
58
back_mockup = generate_hoodie_mockup(design, "black", "back")
59
print(f"Front: {front_mockup}")
60
print(f"Back: {back_mockup}")

Batch Processing for Variants

Hoodies often come in many colors. Batch processing lets you generate an entire product line in seconds. SudoMock supports up to 50 concurrent requests.

Parallel Variant Generation
1
// Generate all hoodie variants in parallel
2
const HOODIE_COLORS = ['black', 'gray', 'navy', 'burgundy', 'forest'];
3
const HOODIE_VIEWS = ['front', 'back'];
4
5
async function generateAllVariants(designUrl) {
6
const renderPromises = [];
7
8
for (const color of HOODIE_COLORS) {
9
for (const view of HOODIE_VIEWS) {
10
renderPromises.push(
11
renderMockup({
12
templateId: `hoodie-${color}-${view}`,
13
designUrl,
14
outputName: `hoodie_${color}_${view}.webp`
15
})
16
);
17
}
18
}
19
20
// 10 mockups generated in parallel
21
// Total time: ~1-2 seconds
22
const results = await Promise.all(renderPromises);
23
24
return results;
25
}

Hoodie-Specific Tips

Hoodies have more fabric texture than t-shirts. Use Multiply blend mode in your PSD templates for realistic design integration. Also consider adding a slight wrinkle effect around the print area for authenticity.

Automation Workflows

Connect SudoMock to your design pipeline with n8n, Zapier, or Make. When a new design is uploaded, automatically generate all hoodie mockups and push them to your e-commerce platform.

Start Generating Hoodie Mockups

500 free API credits to test. No credit card required.