---
title: "Pixmato for AI agents — Pixmato"
description: "How an AI agent connects to Pixmato, lists a workspace’s templates and makes images from them, over MCP or the REST API. Includes what a person has to do first."
url: https://pixmato.com/agents
---

For AI agents

# Pixmato for AI agents

This page is written for AI agents and the people setting them up. It explains how to connect to Pixmato, what you can do once connected, and the few steps that need a person.

## What Pixmato does

Pixmato makes images from templates. A template is a saved design with named fields, such as `product_name`, `price` and `photo`. You send values for the fields and get back the web address of a finished PNG, JPEG, WebP or PDF. The layout, fonts and colors come from the template, so every image looks the way its designer intended.

Use it when someone asks for an image that follows a set design: a product promotion, a property listing, a certificate, a link preview, an event badge.

## What needs a person

Three things have to be done by a person in a browser. Ask your user to do them, and give them these links.

1. **Create an account** at [app.pixmato.com/signup](https://app.pixmato.com/signup?source=agents). It is free for 100 images a month.
2. **Add a template to the workspace.** Copy one from the [ready-made template gallery](https://pixmato.com/templates), or call `copy_gallery_template` over MCP once connected.
3. **Give you access**, in one of two ways: approve the sign-in page when you connect over MCP, or create an API key under **API keys** in the dashboard and pass it to you.

## Connect with MCP

Pixmato runs a remote Model Context Protocol server:

```
https://mcp.pixmato.com/mcp
```

It uses the Streamable HTTP transport. There are two ways to authenticate:

- **Sign in with Pixmato (OAuth).** A request without credentials returns `401` with a `WWW-Authenticate` header that says where to start. The user signs in and chooses **Allow**. The scopes are `pixmato:read` and `pixmato:render`.
- **Workspace API key.** Send `Authorization: Bearer YOUR_API_KEY`. Keys begin with `pxm_`.

In Claude, add a custom connector with the address above. In Claude Code:

```
claude mcp add --transport http pixmato https://mcp.pixmato.com/mcp
```

Or with an API key:

```
claude mcp add --transport http pixmato https://mcp.pixmato.com/mcp \
  --header "Authorization: Bearer YOUR_API_KEY"
```

| Tool | What it does | Uses a credit |
| --- | --- | --- |
| `list_templates` | Lists the templates in the workspace with their id, name, size and field count. | No |
| `get_template` | Returns one template’s fields. Each field has a key, a type and an example value. | No |
| `render_image` | Makes a PNG, JPEG, WebP or PDF and returns its web address. | Yes |
| `render_images` | Renders up to 20 images from one template in a single call, one per row of values. | Yes, one per row |
| `get_render` | Returns a render’s status, the values that were sent and its output files. | No |
| `list_renders` | Lists the most recent renders with their status, template and file URL. | No |
| `list_assets` | Lists the images uploaded to the workspace, with a URL to use in an image field. | No |
| `get_usage` | Shows how many renders are used and left in the current period. | No |
| `list_gallery_templates` | Lists the ready-made gallery, with a link to add each template to the workspace. | No |
| `copy_gallery_template` | Copies a ready-made gallery template into the workspace and returns its id and fields. | No |

A call to `render_image` looks like this:

```
{
  "template_id": "YOUR_TEMPLATE_ID",
  "modifications": {
    "product_name": "Tripod Side Table",
    "price": "$148",
    "photo": "https://wrenandfield.com/photos/tripod-side-table.jpg"
  },
  "format": "png"
}
```

Full details are in the [MCP documentation](https://pixmato.com/docs/mcp.md).

## Use the REST API

If you cannot use MCP, call the API directly with an API key. The base address is `https://api.pixmato.com` and a machine-readable description is at [https://api.pixmato.com/openapi.json](https://api.pixmato.com/openapi.json).

| Method | Path | What it does |
| --- | --- | --- |
| GET | `/v1/templates` | List the workspace’s templates. |
| GET | `/v1/templates/{id}` | Get one template and its fields: every key a render accepts, with its type and default. |
| POST | `/v1/renders` | Make one image or PDF. The reply contains output\_url. |
| GET | `/v1/renders/{id}` | Check a render that was still being made. |
| GET | `/v1/usage/allowance` | Check used and remaining render credits for the current period. |

```
curl -X POST "https://api.pixmato.com/v1/renders" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "template": "YOUR_TEMPLATE_ID",
    "modifications": { "product_name": "Tripod Side Table", "price": "$148" },
    "output": { "format": "png" }
  }'
```

The reply normally arrives with status `200` and an `output_url`. If the image takes longer than 30 seconds, the reply is `202` with a `poll_url`: request that address until the status is `completed`. Start with the [quickstart](https://pixmato.com/docs/quickstart.md).

## A typical task

1. Call `list_templates` and choose the template that matches the request. If the list is empty, call `list_gallery_templates` and give the user the link to add one.
2. Call `get_template` to read its fields. Use the exact field keys it returns. They are case-sensitive.
3. Call `render_image` with values for the fields you want to change. Fields you leave out keep the template’s own values. Image fields take a public web address of an image.
4. Give the user the address you get back. Anyone with that address can open the image.

Text is shown exactly as you send it, so include currency signs and units. Templates handle long text themselves, by shrinking it or cutting it off at a word, so you do not need to shorten values to fit.

## Limits

- A free workspace has 100 render credits a month. Each image uses one. Listing and reading templates is free.
- A workspace can start 60 renders a minute and have 10 in progress at once. Over that, the reply is `429` with a `Retry-After` header. Wait that many seconds and try again.
- Output formats are PNG, JPEG, WebP and PDF. Scale can be from 0.5 to 4.

## What you cannot do

You cannot create an account, and through MCP you cannot create, edit or delete templates, manage API keys or change workspace settings. A person does those in the dashboard. If a request needs a design that no template covers, say so and point the user to the [gallery](https://pixmato.com/templates) or the editor.

## Reading this site

- Every page on pixmato.com has a Markdown version. Add `.md` to its address, for example [pixmato.com/templates.md](https://pixmato.com/templates.md). The home page is [pixmato.com/index.md](https://pixmato.com/index.md).
- [pixmato.com/llms.txt](https://pixmato.com/llms.txt) lists every page with a one-line summary. [pixmato.com/llms-full.txt](https://pixmato.com/llms-full.txt) has the main pages in one file.
- The documentation has the same: [pixmato.com/docs/llms.txt](https://pixmato.com/docs/llms.txt), and `.md` on any docs page.
- Each gallery template has its own page listing its fields, such as [the Product sale template](https://pixmato.com/templates/wren-field-product-sale.md).
