Quick Start
Get your first mockup rendered in under 5 minutes. This guide walks you through the entire process from signup to your first API call.
Before You Start
You'll need:
- A Photoshop mockup file (.psd) with smart object layers
- A design image (PNG/JPG) to place in the mockup
- A way to host your files (AWS S3, Cloudflare R2, or any public URL)
Don't have a PSD?
Step 1: Create Your Account
Sign up for a free SudoMock account. No credit card required—you get 500 one-time API credits to test and validate your workflow.
Step 2: Get Your API Key
After logging in, navigate to the API Keys page and generate a new key.
- Go to Dashboard → API Keys
- Click "Generate New Key"
- Give it a name (e.g., "Development")
- Copy and save the key immediately—it won't be shown again!
Keep Your Key Secure
1# Store your API key as an environment variable2export SUDOMOCK_API_KEY="sm_your_api_key_here"34# Verify it's set5echo $SUDOMOCK_API_KEYStep 3: Upload Your PSD Template
First, host your PSD file somewhere accessible (S3, R2, or any public URL). Then call the upload endpoint:
1curl -X POST "https://api.sudomock.com/api/v1/psd/upload" \2 -H "Content-Type: application/json" \3 -H "X-API-KEY: $SUDOMOCK_API_KEY" \4 -d '{5 "psd_file_url": "https://your-storage.com/mockup.psd",6 "psd_name": "My T-Shirt Mockup"7 }'You'll receive a response with the mockup UUID and smart object details:
1{2 "success": true,3 "data": {4 "uuid": "c315f78f-d2c7-4541-b240-a9372842de94",5 "name": "My T-Shirt Mockup",6 "smart_objects": [7 {8 "uuid": "128394ee-6758-4f2f-aa36-e2b19b152bd9",9 "name": "Design Area",10 "size": { "width": 3000, "height": 3413 }11 }12 ]13 }14}Save These UUIDs
- mockup_uuid:
c315f78f-d2c7-4541-b240-a9372842de94 - smart_object_uuid:
128394ee-6758-4f2f-aa36-e2b19b152bd9
Step 4: Render Your First Mockup
Now the magic happens! Call the render endpoint with your design image:
1curl -X POST "https://api.sudomock.com/api/v1/renders" \2 -H "Content-Type: application/json" \3 -H "X-API-KEY: $SUDOMOCK_API_KEY" \4 -d '{5 "mockup_uuid": "c315f78f-d2c7-4541-b240-a9372842de94",6 "smart_objects": [7 {8 "uuid": "128394ee-6758-4f2f-aa36-e2b19b152bd9",9 "asset": {10 "url": "https://your-storage.com/my-design.png",11 "fit": "cover"12 }13 }14 ],15 "export_options": {16 "image_format": "webp",17 "image_size": 1920,18 "quality": 9519 }20 }'In under 1 second, you'll get back your rendered mockup:
1{2 "success": true,3 "data": {4 "print_files": [5 {6 "export_path": "https://cdn.sudomock.com/renders/abc123.webp",7 "smart_object_uuid": "128394ee-6758-4f2f-aa36-e2b19b152bd9"8 }9 ]10 }11}🎉 Congratulations!
You've just rendered your first mockup with SudoMock! Open the export_path URL to see your result.
Next Steps
Explore Render Options
Learn about fit modes, color overlays, and image adjustments.
Automate with n8n
Connect SudoMock to your automation workflows.
Print on Demand Guide
Scale your POD business with automated mockups.
PSD Preparation
Optimize your Photoshop files for best results.
Try the Playground