Use this pre-built prompt to get started faster.
Prerequisites
- An API key
- A mockup uploaded from a PSD
Guide
1
Install
Get the SudoMock Python SDK.
2
Render from a route
Build the async client in the lifespan, reach it through a dependency, and
let pydantic check the body before a credit is spent.
app/main.py
Next steps
Render a PSD mockup
Every field a render body accepts
Create a mockup from a PSD
Upload a template and read its uuids
Retrieve a single job
Collect a render you sent to the queue
Webhooks
Get called back when a queued render finishes
Errors
What each code means and which ones to retry
Fit and blend modes
What fit does to artwork shaped unlike the slot
Retrieve the current account
Confirm a key and read remaining credits
Quickstart
The same two calls made by hand