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.
- Create an account at app.pixmato.com/signup. It is free for 100 images a month.
- Add a template to the workspace. Copy one from the ready-made template gallery, or call
copy_gallery_templateover MCP once connected. - 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/mcpIt uses the Streamable HTTP transport. There are two ways to authenticate:
- Sign in with Pixmato (OAuth). A request without credentials returns
401with aWWW-Authenticateheader that says where to start. The user signs in and chooses Allow. The scopes arepixmato:readandpixmato:render. - Workspace API key. Send
Authorization: Bearer YOUR_API_KEY. Keys begin withpxm_.
In Claude, add a custom connector with the address above. In Claude Code:
claude mcp add --transport http pixmato https://mcp.pixmato.com/mcpOr 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.
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.
| 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.
A typical task
- Call
list_templatesand choose the template that matches the request. If the list is empty, calllist_gallery_templatesand give the user the link to add one. - Call
get_templateto read its fields. Use the exact field keys it returns. They are case-sensitive. - Call
render_imagewith 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. - 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
429with aRetry-Afterheader. 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 or the editor.
Reading this site
- Every page on pixmato.com has a Markdown version. Add
.mdto its address, for example pixmato.com/templates.md. The home page is pixmato.com/index.md. - pixmato.com/llms.txt lists every page with a one-line summary. pixmato.com/llms-full.txt has the main pages in one file.
- The documentation has the same: pixmato.com/docs/llms.txt, and
.mdon any docs page. - Each gallery template has its own page listing its fields, such as the Product sale template.