> ## Documentation Index
> Fetch the complete documentation index at: https://sudomock.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> The base URL is https://api.sudomock.com.
> Authenticate every request with the x-api-key header. Keys begin with sm_.
> A render returns the finished image at data.print_files[0].export_path. A request sent with is_async true returns a job_id to poll at GET /api/v1/jobs/{job_id}.
> Prefer the official SDKs over hand-written HTTP calls: npm install sudomock for Node, pip install sudomock for Python.

# Turn every catalog variant into a listing image

> One listing image for every row of your catalog.

Your catalog is the list of products you sell and the designs you sell on them.
Every row of it needs its own listing image, and the row count is the work:
three products with four designs is twelve files, each one named so you can tell
which listing it belongs to when you upload it.

An agent connected to SudoMock does that run in one sitting. You paste the
catalog, it renders a row at a time and hands back an address and a name for
every file. Nothing here asks you to open a design tool, prepare a template of
your own or write a line of code.

## Set up the agent once

1. Make a SudoMock account if you have none, at
   [sudomock.com](https://sudomock.com/login). A new account starts with 500
   credits and no credit card is required, which is more than the catalog below
   spends. Those credits render the whole catalog, and while they are the only
   thing on the account every file comes back watermarked and no larger than
   1024 on its longer side, which the last step comes back to.
2. Add SudoMock to your agent. The address is `https://mcp.sudomock.com` and
   that address is the whole setup: you paste it into the client's own setting
   for connectors or tools, a browser window opens, you sign in to SudoMock and
   approve the access. Nothing is installed on your side. One exception matters
   here, because this page names two clients: Claude Code takes the server from
   its own command line, which [Connect an agent](https://sudomock.com/docs/connect-an-agent.md) carries in
   its first tab, while a client that has a connector screen needs the address
   and nothing else.
3. Before the first run, hand the agent the
   [skill file](https://sudomock.com/docs/skill.md) too: paste that address into
   the conversation and ask the agent to read it. It says what this product
   does and what a render needs, so the first run is not a guess.

A render spends the credits of the account you signed in with. The first time
you use a library scene it becomes a mockup on your account for 25 credits, and
each render onto that mockup costs 5, so the twelve row catalog below comes to
135 of your 500.
[In what order credits are spent](https://sudomock.com/docs/knowledge-base/in-what-order-credits-are-spent.md)
carries the weight of every job.

## What the files come out at

You name the longer side of the output. Ask for 2000 pixels and every file
comes back with its longer side at 2000. The shorter side follows the
proportions of the scene photograph you rendered on, so one scene gives one
shape and twelve files from three scenes can carry three shapes. A scene does
not publish its proportions before you render on it, so when a listing needs
one exact shape, render a single row first and look at what came back.

While an account is on trial credits the longer side is capped at 1024 and the
output carries a watermark. A larger size comes back as an error rather than a
quietly smaller image, so on trial credits ask for 1024 and not for 2000. A
payment method on the account lifts the cap and takes the watermark off.

## Write the catalog down

4. Write one line per product with its designs on it. This example catalog is
   three products and four designs, so it comes to twelve rows:

* Mug: Wave, Sunburst, Grid, Monogram
* Tote: Wave, Sunburst, Grid, Monogram
* Tee: Wave, Sunburst, Grid, Monogram

Keep the product and the design names to one word each, and name each file
`<product>-<variant>.png`, all lower case, so `mug-wave.png` sits next to
`tote-wave.png` and every file comes out 2000 pixels on its longer side. On
trial credits ask for 1024 in place of 2000, because that is the cap those
credits come with.

Each design is one image of yours at a public address, meaning one that opens
in a browser without a sign-in. There are two ways to have one. Ask the agent
to upload the design and use the address it hands back, which needs an agent
that can read the file where it sits. Or point at an address you already have:
the image on your own storefront listing, or a share link from your drive set
so that anyone holding the link can open it. Two things make an address
unusable. One that asks for a sign-in fails the render instead of guessing, and
one that opens a page with the image shown inside it hands over the page rather
than the image, which is what most drive share links do.

Getting the right address out of something you can already see takes one move.
Open the image on its own, from your storefront page or from the share link, so
that the browser shows nothing but the picture, and copy the address from the
bar; on a right click most browsers also offer to copy the image address
directly. Then paste it into a browser window where you are signed out: a
window with nothing but the image in it is the address to hand over, and
anything with a page around it is not.

If your artwork is not ready yet, run the catalog with
[the sample design](https://assets.sudomock.com/library/psd-samples/sample-design.png)
in all four places first, see the twelve files land, and put your own four in
afterwards. Those twelve differ by name alone until your own designs go in, so
they are a rehearsal and not a set to upload.

## Paste the run into the agent

5. Paste this into Claude Cowork or Claude Code, with your catalog and your
   design addresses in place of the example:

> Here is my catalog. Products: Mug, Tote, Tee. Designs: Wave at
> `<the Wave address>`, Sunburst at `<the Sunburst address>`, Grid at
> `<the Grid address>`, Monogram at `<the Monogram address>`. For each product,
> search the ready made
> mockup library and take one mockup of it. Then render every design on that
> mockup, with the longer side at 2000 pixels and PNG as the format. Name every
> file `<product>-<variant>.png`, all lower case, so the Mug with the Wave
> design is `mug-wave.png` and the Tote with the Grid design is
> `tote-grid.png`. When you are done, list the twelve file names with the
> address of each one.

On trial credits, write 1024 where that prompt says 2000.

When a step times out, ask the agent to read the mockup list before it tries
again: the scene may already have been created and charged, and a second try
pays for it twice.

The agent reads the library, places each design and comes back with a row of
links. A render takes a few seconds, so a twelve row catalog is a short wait
rather than an afternoon.

## Keep the twelve files

6. A render answers with an address, not with a file, so keeping the set is a
   step of its own. Claude Cowork and Claude Code can each open an address and
   write the file, so ask for that in the same conversation: put the twelve
   files in one folder, each under the name the catalog gives it, and say which
   folder. Where that folder sits depends on the agent: one that reaches your
   own machine puts it where you name, and one that works in a space of its own
   hands the folder back for you to download, so ask it to say where the files
   went. An agent that has the SudoMock tools and
   nothing else cannot write a file at all, and what you get then is twelve
   named addresses to save from your browser one at a time.

## Check the set before you upload

7. Open the first file of each product and look at where the design sits. When
   it sits too high, too low or too small on the product, say so in the same
   conversation and ask for that product again; the agent keeps the catalog and
   renders only the rows you name.

Then read the twelve names back against your catalog. A name that does not match
a row is a file you will not find again when the listing asks for it, which is
the one mistake this naming rule exists to stop.

The last thing to check is the account rather than the files. While trial
credits are the only thing on it, every render comes back watermarked and no
larger than 1024 on its longer side: enough to see the set and decide, not
something to put on a listing. Adding a payment method takes the watermark off
and lifts the size, and running the same prompt again then costs 5 credits a
file instead of 25 plus 5, because the three scenes are already mockups on your
account.

A catalog that grows gets the same treatment: add the new rows to the list, paste
it again and ask only for the rows you added.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.