Templates
Create a template
POST
/api/v1/templates
Create a new template with model settings and optional folder mappings.
Authentication
Send your API key in the Authorization header:
Authorization: Bearer <key>.
Create a key.
Body parameters
| Name | Type | Description |
|---|---|---|
name required |
string | |
prompt required |
string | |
output_type |
string | Output type: video (default) or image. |
model required |
string | Video models: gen4.5, gen4_turbo, veo3, veo3.1, veo3.1_fast, seedance2, seedance2_fast, seedance2_mini, happyhorse_1_0, gemini_omni_flash. Image models: gen4_image, gen4_image_turbo, gemini_2.5_flash. gen4_turbo requires an input image for video. |
ratio required |
string | Aspect ratio, e.g. 1280:720 or 1920:1080. |
duration required |
integer | Duration in seconds for video (model-dependent). |
include_audio |
boolean | Include audio (Veo 3.1 and Seedance video models only). |
output_count |
integer | Number of images to generate (1 or 4; image templates only). |
reference_tag |
string | Reference tag for image templates using folder watch (use @tag in prompt). |
folder_mappings |
array |