template.run
[paid: up to $0.66 a run; template.list gives each template's price] Run one media template for this workspace. The product templates (product-shot, product-lifestyle, showcase-video) first read the words printed on the product and answer status needs_label with label_words and nothing charged: show the words to the owner, then call again with the same slots plus label_words set to the confirmed list (the answer's next says exactly how). Images land in the image library (asset_key and url; a download_url when signed links are on). showcase-video makes its still in the call and answers status rendering: the video takes 1 to 2 minutes, so call template.status with the run_id. explainer-voice answers with an MP3 and a WebVTT caption file. price.quoted_micro_usd is the most the run can cost; price.charged_micro_usd is what it did. Refuses: VALIDATION_ERROR (each slot issue named), SIMPLER_MEDIA_INPUT_MISSING / SIMPLER_MEDIA_URL_REFUSED (pass an asset_key, https or data:image), INSUFFICIENT_CREDITS (add credits), the prompt guard's refusals (slot words that name a real person, or sexual or other harmful content), SIMPLER_MEDIA_TEMPLATE_RUNS_UNMIGRATED (templates not switched on yet; nothing charged).
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": {
"template": "<template>",
"slots": "<slots>"
},
"name": "template.run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slots | Yes | The template's slot values by name; template.list names each template's slots (the templates that take a slot are in brackets). Image slots are an asset_key, https URL or data:image URL. | |
| template | Yes | The template id (template.list). |