Skip to main content

Use this pre-built prompt to get started faster.

Open in Cursor

Prerequisites

Before you start, you’ll need:

Guide

1

Install

Get the SudoMock Python SDK.
2

Set your API key

Store your API key in an environment variable in your .env file.
.env
Read it with 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.upload

Render a PSD mockup

Every field renders.create accepts

Jobs

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