Render Template
render_templateRender a saved template. Costs 4 credits per render for html templates (each variant × size is one render); a generative template costs its model's price per variant.
Pass template_id or template_name, and renders with up to 4 variants, each { modifications: { param: value } }. Text is HTML-escaped; image_url values are fetched and inlined. Missing parameters use their default; a required one without a default is an error. size_names picks named sizes; ["all"] renders every size; omitted renders the default size. html templates return the PNGs in this call. If any render fails, the whole job fails and is refunded.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"renders": "<renders>"
},
"name": "render_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional asset name for the saved file. | |
| tags | No | Optional tags for the saved file. | |
| renders | Yes | Variants to render, 1 to 4. | |
| force_new | No | An identical request submitted in the last 10 minutes returns that job without charging again; true generates it again. | |
| size_names | No | Named sizes to render, or ["all"]. | |
| skills_used | No | Optional workflow analytics: names of the skills (or skill/reference paths) followed for this call. Stored with generation jobs only. Never include private data, local paths or media URLs. | |
| template_id | No | Template ID. Pass this or template_name. | |
| template_name | No | Template name, ignoring case. Pass this or template_id. | |
| budget_project | No | Optional budget project this generation's cost counts toward, for tracking spend per client or job. Pass its slug; an id or the exact display name also works. Create one with create_budget_project and find slugs with list_budget_projects. An unknown project never stops the generation: it runs without one, and the result warns how to add it with assign_to_budget_project. | |
| width_override | No | Override the width of a single-size render. | |
| height_override | No | Override the height of a single-size render. |