Use this pre-built prompt to get started faster.
Prerequisites
Before you start, you’ll need:- A SudoMock API key
- A PSD reachable over HTTPS
Guide
1
Install
Get the SudoMock Python SDK.
2
Set your API key
Store your API key in an environment variable in your Read it with
.env file..env
os.environ["SUDOMOCK_API_KEY"]. See API keys
for the full setup.3
Render a PSD mockup
Upload the template once, then render it as often as you like.
render.py
Next steps
Upload a PSD
The call behind
psd.uploadRender a PSD mockup
Every field
renders.create acceptsJobs
Collect a background render
Webhooks
Get called back when a render finishes
Error codes
Every error code and what to do
Fit and blend modes
What fit, fill and crop do
Photo mockups
Render artwork onto a photograph
Python SDK source
github.com/sudomock/sudomock-python