create_render
Generate images, videos, or PDFs from a template by specifying format, size, layers, and animation. Outputs jpg, png, webp, pdf, or mp4.
Instructions
Create a render (image, video, or PDF) from a template. This is the main tool for generating content. Supports formats: jpg, png, webp, pdf, mp4.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | Frames per second (MP4 only, 1-60) | |
| cmyk | No | Use CMYK color mode (PDF only) | |
| name | No | Custom name for the render | |
| scale | No | Scale factor (0.1-2.0) | |
| width | No | Custom width in pixels (100-5000) | |
| format | No | Output format. Default: jpg | |
| height | No | Custom height in pixels (100-5000) | |
| layers | No | Layer modifications. Keys are layer names, values are objects with properties like: text, image_url, color, background, hide, animation, etc. The 'animation' property (MP4 only) is an object with: 'in' (entrance: type=slide|fade|zoom|rotate, direction, duration, writingStyle), 'loop' (type=spin|pulse, duration), 'out' (exit: type=slide|fade|zoom, direction, duration), 'start' (ms when layer appears), 'end' (ms when layer disappears). All animation durations are in milliseconds. | |
| flatten | No | Flatten PDF for print-ready documents | |
| duration | No | Video duration in milliseconds (MP4 only, max 90000) | |
| template | Yes | The template ID to render | |
| background | No | Background color in hex format (e.g., #FF0000) | |
| transparent | No | Make background transparent (PNG only) |