Save a preset as a template
save_templateCopy a preset (optionally with the user's text as its new defaults) into the user's account as a saved template, so render_card and og_image_url can use it. Needs an API key. Do this once per design, not per image: afterwards every render only passes the text that changes. Returns the slug to use next and a link to fine-tune the design in the editor.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Template name (up to 80 characters); its slug is derived from it. Defaults to the preset's name. | |
| size | No | Output canvas: og (1200x630), youtube (1280x720), square (1080x1080), portrait (1080x1350), story (1080x1920), pinterest (1000x1500). Defaults to the template's own size, usually og (1200x630, the link preview size). Layouts restack automatically on square and vertical canvases. | |
| fields | No | Text to draw on the card. Omit a field to keep the template's own text. Design (colours, fonts, layout, photo) never changes. | |
| preset | Yes | Preset key from list_presets. |