Templates
Templates allow you to encapsulate commonly used image/video/music generation parameters into reusable presets. The next time you generate content, load them with a single click, eliminating repetitive tasks like pasting prompts, adjusting aspect ratios, setting durations, etc. Templates support {{variable}} placeholders that open a form when used, allowing you to fill in just a few key fields to produce a consistent, unified set of works.
Access: Left navigation Templates (route /templates).
Use Cases
- Lock down a set of fine-tuned image styles (e.g., "cyberpunk + 16:9 + 4K + negative prompt") and only change the subject each time
- Condense video generation parameters into templates for team members to batch produce content directly from templates
- Save music styles (rhythm / duration / time signature) as templates for multiple characters to share the same tone
Three Template Types
Switch between tabs at the top of the page:
| Type | Description | Main Fields |
|---|---|---|
| Image Template | Presets for text-to-image / image-to-image | Prompt, negative prompt, model, aspect ratio, resolution, variables, input slots, example images |
| Video Template | Presets for text-to-video / image-to-video | Prompt, model, parameters |
| Audio Template | Presets for AI music generation | Prompt, style, duration, tempo (BPM), time signature |
Browsing and Filtering
Each tab shares the same filtering tools:
| Control | Function |
|---|---|
| Keyword search | Match in template name, description, etc. |
| Favorites filter | Show only starred templates |
| Tag filter | Multi-select tags, can clear with one click |
| Sort by | Date / usage count / title |
| Sort direction | Ascending / descending |
The template list supports infinite scroll loading without pagination.
Template Card Operations
Each template is displayed as a card with an operations menu shown on hover:
| Operation | Behavior |
|---|---|
| Use | Load template parameters and open generation interface |
| View Details | Open details popup to view complete parameters and example images |
| Edit | Open edit dialog (image templates only) |
| Favorite / Unfavorite | Mark frequently used templates for easy filtering |
| Delete | Delete template (confirmation required) |
Prompt Variables
Image template prompts support {{variable_name}} double-brace placeholders. Variable names can use letters, numbers, underscores, and Unicode characters like Chinese/Japanese (e.g., {{subject}}, {{character_name}}).
When using a template, a form appears for you to fill in each variable. Variable types:
| Type | Input Control |
|---|---|
| Text (text) | Single-line text input |
| Number (number) | Number input |
| Enum (enum) | Dropdown selection with preset options |
Each variable can be configured with: required/optional, default value, description text, and enum options.
:::tip Auto-detection
When saving a template (click "Save as template" in chat), the system automatically detects {{variables}} from your prompt and pre-fills the variable list. Editing the prompt and adding/removing {{variables}} in the editor also syncs to the variable table.
:::
Editing Image Templates
Clicking "Edit" on a card or in the details popup opens the image template edit dialog, divided into five sections:
| Section | Content |
|---|---|
| Basic Info | Title, description, tags (comma-separated) |
| Generation Defaults | Default model, aspect ratio, resolution |
| Prompt and Variables | Edit prompt text and negative prompt; automatically sync {{variables}} to the variable table |
| Input Slots | Manage slot roles (user input / template built-in), name, type (image / mask / pose control / depth control), min/max quantity, hint text |
| Example Outputs | Select which example images to keep, set cover (star) |
:::caution Edit Limitations The current editor does not support adding new images to input slots or example outputs — adding new bundled images requires a file upload flow, not yet provided. To add new images, please use the "Save as template" flow from chat to rebuild a template.
Video and music templates don't support editing after creation; for adjustments, create a new one. :::
Two Ways to Create Templates
1. Save from Chat Results
The most common entry point. After generating images/videos/music with AI in chat and are satisfied with the results:
- Click "Save as template" on the result card
- Fill in name, description, and tags
- System automatically detects
{{variables}}from your prompt and pre-fills the variable list - Confirm and save to the corresponding category
2. Create Directly from Templates Page
In some cases, you can also create directly on the templates page. The form is the same as the edit dialog above.
Relationship with Works
| Concept | What It Is |
|---|---|
| Template | Preset of generation parameters (prompt + model + style, etc.) |
| Work | Finished product generated from a template (actual image/video/audio file) |
Templates are for how to generate, works are for collecting finished products. Deleting a template doesn't affect already-generated works; conversely, deleting works doesn't affect templates.
FAQs
| Question | Answer |
|---|---|
| Where do I create templates? | Clicking "Save as template" after generating content in chat is simplest. The templates page is mainly for browsing and reuse. |
| How do I write prompt variables? | Use {{variable_name}}, for example draw a {{style}} {{subject}}. A form appears when used to fill in fields. |
| Why can't I add new images to input slots / example images in the editor? | Current version only supports editing/deleting existing images; adding new images requires a file upload flow. Please rebuild using "Save as template". |
| Can I edit video and music templates? | Current editor only covers image templates; for videos/music please create new ones. |
| Does deleting a template affect already-generated works? | No. Templates are just parameter presets. |
| Can image and video templates be converted to each other? | No, they have different parameter structures. |
Related Links
- Works — Collect and manage generated works
- Media Generation Overview — Overall guide for image/video/music generation
- Image Generation — Detailed documentation for image generation