AIAgent guide

Generate product mockups with AI agents

Give any AI agent the tools to make product mockups. SudoMock runs a remote MCP server, publishes setup instructions an agent can follow on its own, and ships a skill file with the product knowledge, so the agent renders PSD and photo mockups without a human writing the calls. Start with 500 credits, then choose a published monthly volume plan.

Agents built on your own stack can use the REST API with an API key instead; the render, the templates, and the credits are the same either way.

Let the agent set itself up

An agent that reads the setup instructions finds the client it runs in, adds the server, and stops at the sign-in step for you. It checks the connection with a read-only call, so setup spends nothing.

Let the agent set itself up
1# Hand the agent the setup instructions
2https://sudomock.com/agent-setup/prompt.md
3# Or install the SudoMock skill
4npx skills add https://sudomock.com/docs

The render the agent sends

Ask for a render in plain words and the agent sends one tool call like this. It composites your design into the PSD template and returns a finished image URL, with Smart Objects, blend modes, smart filters, and perspective warp rendered from your real file.

Render, AI agent
1{
2 "tool": "render_psd_mockup",
3 "arguments": {
4 "mockup_uuid": "c315f78f-d2c7-4541-b240-a9372842de94",
5 "smart_object_uuid": "128394ee-6758-4f2f-aa36-e2b19b152bd9",
6 "artwork_url": "https://your-domain.com/design.png",
7 "fit": "crop",
8 "image_format": "webp"
9 }
10}

How it works

  1. 1Point the agent at the setup instructions, or add https://mcp.sudomock.com yourself.
  2. 2Sign in to SudoMock when the client asks, then describe the mockup you want.
  3. 3The agent returns the finished image URL, or waits on the job when the render runs asynchronously.

Personalize text in the same call

SudoMock renders the text layers in your PSD, so you can swap the wording, font, size, and color at render time and get back an image that keeps the look the designer built.

  • 2,000+ open-licensed font families, free for commercial use
  • Custom TTF and OTF font upload, up to 5 MB each, on Pro and Scale
  • Styled segments: mixed-style layers stay editable run by run
  • Box text: area text wraps inside its box and clips exactly as designed
Text layers, AI agent
1{
2 "tool": "render_psd_mockup",
3 "arguments": {
4 "mockup_uuid": "c315f78f-d2c7-4541-b240-a9372842de94",
5 "text_layers": [{
6 "uuid": "b7f2c1a0-9e34-4d21-8f0a-1c2b3d4e5f60",
7 "text": "SUMMER SALE",
8 "font": "Poppins-Bold",
9 "font_size": 96,
10 "color": "#C0392B"
11 }]
12 }
13}

Edit one mixed-style layer, run by run

When a single layer mixes styles, like a thin first name next to a bold surname, send a segments array with only the runs you want to change. Every run keeps its own font, size, and color, and any run you leave out stays as designed. This bundle of catalog, custom upload, per-segment styling, and box wrap over the API is what sets the text layers apart.

Styled segments request
1{
2 "mockup_uuid": "c315f78f-d2c7-4541-b240-a9372842de94",
3 "text_layers": [
4 {
5 "uuid": "b7f2c1a0-9e34-4d21-8f0a-1c2b3d4e5f60",
6 "segments": [
7 { "index": 0, "text": "Jane " },
8 { "index": 1, "text": "SMITH" }
9 ]
10 }
11 ]
12}

Full field reference and the fallback behavior when a font is not in your catalog live in the text layers documentation.

Frequently asked questions

Which AI agents can use SudoMock?

Any agent that speaks MCP over HTTP can use the remote server at https://mcp.sudomock.com, including Claude, Claude Code, Cursor, and Codex. Agents without MCP call the REST API with an API key.

Does an agent need an API key?

Not for the remote server: the client signs you in through the browser. The @sudomock/mcp package for local clients and the REST API use an API key from your dashboard.

Can an agent personalize text on a template?

The render_psd_mockup tool takes a text_layers list that changes wording, font, size, and color on named layers. The catalog carries 2,000+ open-licensed font families.

Render your first AI agent mockup in minutes

Get 500 one-time API credits to test. No credit card required. See pricing for published monthly volumes and annual billing.