Templated
v1.9.0Generate images, videos and PDFs from templates.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
create_render
Render a Templated template into an image (JPG, PNG or WebP), a PDF or an MP4 video, with new text, images and colors in its layers. Use this when the user wants a finished design from one of their templates, such as a social media post, banner, OG image, certificate or invoice. Templated fills the saved template with the exact values given: this is template rendering, not AI image generation. Pass the template ID and 'layers' keyed by the layer names from get_template_layers; names the template doesn't have are rejected before anything is rendered. Multi-page templates render every page, or o…
| Parameter | Type | Description |
|---|---|---|
template * | string | The template ID to render (from list_templates) |
background | string | Background color in hex format (e.g., #FF0000) |
cmyk | boolean | Use CMYK color mode (PDF only) |
duration | number | Video duration in milliseconds (MP4 only, max 90000) |
flatten | boolean | Flatten PDF for print-ready documents |
format | string | Output format. Default: jpg |
fps | number | Frames per second (MP4 only, 1-60) |
height | number | Custom height in pixels (100-5000) |
layers | object | Layer values keyed by layer name, e.g. { "title": { "text": "Hello" }, "photo": { "image_url": "https://..." } }. Each value can set text, image_url, color, background, hide and other layer properties… |
name | string | Custom name for the render |
pages | array | For multi-page templates: the pages to render, each with its own layer values. Each item has 'page' (a page name from get_template_pages) and 'layers' keyed by layer name, like the top-level 'layers'.… |
scale | number | Scale factor (0.1-2.0) |
transparent | boolean | Make background transparent (PNG only) |
width | number | Custom width in pixels (100-5000) |
get_render
Get one render by ID with its status, format, size and file URL. Use this to check whether a render has finished or to find its URL again.
| Parameter | Type | Description |
|---|---|---|
render_id * | string | The render ID |
list_renders
List the renders in the connected Templated account, newest first, 25 per page by default (max 100). Use this to find a render's ID or file URL, for example to merge PDFs with merge_renders. Returns each render's id, url, status, format, size and template.
| Parameter | Type | Description |
|---|---|---|
limit | number | Results per page (default: 25, max: 100) |
page | number | Page number, starting at 0 (default: 0) |
delete_render
Permanently delete a render from the connected Templated account; it can't be restored. Use this when the user asks to remove a render. Takes the render ID from list_renders and returns a confirmation.
| Parameter | Type | Description |
|---|---|---|
render_id * | string | The render ID to delete |
merge_renders
Merge several renders into one PDF, in the order given, for example one certificate or invoice per recipient. Image renders become PDF pages. Use this after creating the individual renders. Each merge counts toward the account's render usage. Returns the URL of the merged PDF. With host set to false the PDF itself is returned inline instead, which only works for PDFs up to 100 KB.
| Parameter | Type | Description |
|---|---|---|
render_ids * | array | Render IDs to merge, in page order |
host | boolean | true (default): return a URL to the merged PDF. false: return the PDF inline as an embedded file, for PDFs up to 100 KB. |
list_templates
List the templates in the connected Templated account, 25 per page by default (max 100), optionally filtered by name (query), size (width, height) or tags. Use this first to find the template ID for create_render, get_template_layers or update_template. Returns each template's id, name, size, thumbnail, folder, and layer and page counts.
| Parameter | Type | Description |
|---|---|---|
height | number | Filter by template height |
includeLayers | boolean | Include each template's layers (a much larger response; get_template_layers reads one template's layers) |
limit | number | Results per page (default: 25, max: 100) |
page | number | Page number, starting at 0 (default: 0) |
query | string | Search query to filter templates by name |
tags | string | Filter by tags (comma-separated) |
width | number | Filter by template width |
get_template
Get one template's details by ID: name, size, background, thumbnail, tags, folder, and layer and page counts. Use this to check a template's size or settings; get_template_layers returns its editable layers.
| Parameter | Type | Description |
|---|---|---|
template_id * | string | The template ID |
get_template_layers
List a template's layers with their names, types and current values (text, image_url, colors, fonts, position and size). Use this before create_render: the layer names are the keys create_render accepts in 'layers'. Covers every page of a multi-page template; get_template_pages groups the layers by page.
| Parameter | Type | Description |
|---|---|---|
template_id * | string | The template ID |
get_template_pages
List the pages of a multi-page or multi-size template, each with its name, width, height and layers keyed by layer name. Use this to render specific pages with create_render ('pages') or to edit pages with update_template, which accepts the same shape.
| Parameter | Type | Description |
|---|---|---|
template_id * | string | The template ID |
create_template
Create a new template in the connected Templated account from layers, for example a social media post, banner, OG image, certificate or invoice. Use this when none of the existing templates fits or the account has no templates yet. Each layer has a unique name in 'layer' and a 'type': text, image, shape or rating. Shape layers draw rectangles, circles and other shapes from SVG content in 'html'. For a multi-page or multi-size template (several sizes in one template), pass 'pages' in place of 'layers'. Returns the new template; its ID can be rendered right away with create_render.
| Parameter | Type | Description |
|---|---|---|
height * | number | Template height in pixels |
name * | string | Template name |
width * | number | Template width in pixels |
background | string | Template background color (e.g., '#ffffff', 'rgb(255,255,255)', 'transparent') |
duration | number | Default video duration in milliseconds for MP4 renders (e.g., 5000 for 5 seconds). Used as fallback when no duration is specified at render time. |
layers | array | Layers of a single-page template. Each layer object has 'layer' (its unique name, later used as the key in create_render) and 'type'. |
pages | array | Pages for a multi-page or multi-size template (for example an Instagram square, a story and an X landscape version in one template, each with its own width and height). Used in place of top-level 'lay… |
update_template
Change an existing template: name, description, size, background, default video duration, layers or pages. Use this to edit a design, resize it, or add sizes to a multi-size template. Layers are matched by their 'layer' name: an existing layer is updated in place and a new name is added. Top-level 'layers' apply to the first page; 'pages' reaches the others. With replaceLayers true, layers missing from the request are deleted. To move a layer, send both x and y (a missing coordinate is set to 0). In 'pages', a page name that doesn't exist yet is added and an existing page has its layers update…
| Parameter | Type | Description |
|---|---|---|
template_id * | string | The template ID to update |
background | string | Template background color |
description | string | New template description |
duration | number | Default video duration in milliseconds for MP4 renders (e.g., 5000 for 5 seconds) |
height | number | New height in pixels. Applies to every page; rejected on multi-size templates (use per-page height inside 'pages') |
layers | array | Layer definitions. Each has 'layer' (its unique name) and 'type' (text, image, shape or rating). |
name | string | New template name |
pages | array | Pages for a multi-page or multi-size template (for example an Instagram square, a story and an X landscape version in one template, each with its own width and height). Used in place of top-level 'lay… |
replaceLayers | boolean | true: delete the layers (on the pages being updated) that are missing from the request. false (default): keep them. |
width | number | New width in pixels. Applies to every page; rejected on multi-size templates (use per-page width inside 'pages') |
clone_template
Copy a template, with all its layers and pages, into a new template in the same account. Use this to make a variation without changing the original. Returns the copy, which keeps the original's name unless 'name' is given.
| Parameter | Type | Description |
|---|---|---|
template_id * | string | The template ID to clone |
name | string | Name for the cloned template |
delete_template
Permanently delete a template from the connected Templated account; it can't be restored or rendered afterwards. Renders already created from it are kept. Use this when the user asks to delete a template.
| Parameter | Type | Description |
|---|---|---|
template_id * | string | The template ID to delete |
list_template_renders
List the renders created from one template, 25 per page by default (max 100). Use this to find earlier outputs of a template. Returns each render's id, url, status and format.
| Parameter | Type | Description |
|---|---|---|
template_id * | string | The template ID |
limit | number | Results per page (default: 25, max: 100) |
page | number | Page number, starting at 0 (default: 0) |
list_folders
List the folders in the connected Templated account with the number of templates in each, 25 per page by default (max 100). Use this to find a folder ID for update_folder or delete_folder. Returns the folders plus total and hasMore.
| Parameter | Type | Description |
|---|---|---|
limit | number | Results per page (default: 25, max: 100) |
page | number | Page number, starting at 0 (default: 0) |
create_folder
Create a folder to organize templates in the connected Templated account. Use this when the user wants to group templates. Returns the new folder with its ID.
| Parameter | Type | Description |
|---|---|---|
name * | string | Folder name |
update_folder
Rename a folder. Use this when the user wants to change a folder's name. Returns the updated folder.
| Parameter | Type | Description |
|---|---|---|
folder_id * | string | The folder ID |
name * | string | New folder name |
delete_folder
Delete a folder from the connected Templated account. The templates inside it are not deleted: they move out of the folder to the top level of the account. Use this when the user asks to remove a folder.
| Parameter | Type | Description |
|---|---|---|
folder_id * | string | The folder ID to delete |
list_uploads
List the images uploaded to the connected Templated account, 25 per page by default (max 100). Use this to reuse an uploaded image: its 'path' is a URL that can be set as image_url on an image layer. Returns each upload's id, name, type, size and path.
| Parameter | Type | Description |
|---|---|---|
limit | number | Results per page (default: 25, max: 100) |
page | number | Page number, starting at 0 (default: 0) |
create_upload
Upload an image (JPG, PNG, WebP or SVG, up to 10 MB) from a public URL to the connected Templated account. Use this to keep an image in the account's assets for templates and renders. Returns the upload; its 'path' is the URL to use as image_url. API reference: https://templated.io/docs
| Parameter | Type | Description |
|---|---|---|
url * | string | Public URL of the image to upload |
name | string | Optional name for the upload |
delete_upload
Permanently delete an uploaded image from the connected Templated account; it can't be restored. Use this when the user asks to remove an upload. Takes the upload ID from list_uploads.
| Parameter | Type | Description |
|---|---|---|
upload_id * | string | The upload ID to delete |
list_fonts
List the custom fonts uploaded to the connected Templated account, 25 per page by default (max 100). Templates can also use any Google Font by family name: set include_google_fonts to true to list those too, and query to search by name. Use this to choose a font_family for create_template or update_template, or to find the name for delete_font. Returns the font names plus total and hasMore.
| Parameter | Type | Description |
|---|---|---|
include_google_fonts | boolean | Also list the Google Fonts available to every template (default: false) |
limit | number | Results per page (default: 25, max: 100) |
page | number | Page number, starting at 0 (default: 0) |
query | string | Only fonts whose name contains this text (case-insensitive) |
upload_font
Upload a custom font file (TTF, OTF, WOFF or WOFF2) from a public URL to the connected Templated account under the given family name. Use this when a design needs a font that isn't a Google Font; templates then use it as font_family. Returns the font. API reference: https://templated.io/docs
| Parameter | Type | Description |
|---|---|---|
name * | string | Font family name |
url * | string | URL of the font file (TTF, OTF, WOFF, WOFF2) |
delete_font
Permanently delete a custom font from the connected Templated account by family name, including every file uploaded under that name. Templates that use it fall back to another font in later renders. Use this when the user asks to remove a font.
| Parameter | Type | Description |
|---|---|---|
font_name * | string | The font family name to delete, as returned by list_fonts |
get_account
Get the connected Templated account's render usage for the current period: renders used (apiUsage), renders included (apiQuota) and the percentage used. Use this to check how many renders are left before a large batch.