Choose What Changes in a Template
Decide which text, photos and colors in a Pixmato template are filled in each time, and try them with sample data before making an image.
A template has parts that stay the same, such as your logo and layout, and parts that change with each image, such as a product name or price. Pixmato calls the parts that change parameters. This tutorial shows how to choose them.
It continues from Make your first image and uses the same Product sale template.
Step 1: Open the template in the editor
Go to Templates and click Edit on your template.
Each part of the design is a layer. The layers are listed on the left. A green dot beside a layer means it is a parameter.
Step 2: Open the API tab
Click API at the top of the right-hand panel.
The tab lists every layer with a switch beside it. A layer that is switched on is a parameter: it gets a box on the test page, and you can fill it in from a spreadsheet, an automation or your own code.

Step 3: Switch layers on or off
- Switch a layer on if its content changes from one image to the next. Product names, prices, dates and photos are typical.
- Switch a layer off if it should always stay the same. In this template the thin line above the price is off, because it never changes.
If the shop name and website are always yours, type your own text into those layers once, then switch them off. They will no longer appear on the test page.
Step 4: Give each parameter a clear name
The box under each layer holds the parameter’s name. This is the name you use when you send values from a spreadsheet or from code, so keep it short and say what it holds: product_name, price, photo.
Use lowercase letters, numbers and underscores. Avoid names that describe where the layer sits, such as left_text_2, because the name should still make sense if you move the layer.
To see more settings for one layer, click it on the canvas and choose Selected layer.

| Setting | What it does |
|---|---|
| Parameter key | The parameter’s name. |
| Type | What kind of value it takes, such as text, an image or a color. |
| Required | When on, an image cannot be made without a value for this parameter. |
| Default | The value used when none is sent. |
| Example | A sample value shown on the test page and in the example request. |
Step 5: Try it with sample data
Click Preview data at the top of the editor.
The window shows a box for every parameter and a live preview. Type in a box and the preview changes straight away. If the template has saved samples, choose one from the list or click Next to step through them.

This preview is instant and free. It does not use credits and does not change the template. Use it to try the awkward cases: a very long name, a large price, an empty box.
Step 6: Save
Close the preview and click Save. Then click Test template to make a real image with your parameters.
Next step
Long names are the most common reason a layout breaks. Keep long text inside its box shows how to make text adjust on its own.