Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > comfyui-anima-toolkit > TK Anima 格式化

ComfyUI Node: TK Anima 格式化

Class Name

AnimaTKAnimaFormatter

Category
TK/prompt
Author
Ararararararaki (Account age: 442days)
Extension
comfyui-anima-toolkit
Latest Updated
2026-09-16
Github Stars
0.03K

How to Install comfyui-anima-toolkit

Install this extension via the ComfyUI Manager by searching for comfyui-anima-toolkit
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter comfyui-anima-toolkit in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

TK Anima 格式化 Description

Standardizes and formats tag strings for Anima model, ensuring adherence to guidelines and optimizing prompt quality for AI art generation.

TK Anima 格式化:

The AnimaTKAnimaFormatter node is designed to standardize and format tag strings into the specific prompt format required by the Anima model. This node is essential for ensuring that the tags used in AI art generation adhere to the Anima model's guidelines, which include a specific order of tag sections, the use of spaces instead of underscores, and the addition of an @ prefix for artist names. By organizing tags into predefined sections such as quality, character, series, and artist, and converting them into a space-separated format, this node helps maintain consistency and improve the quality of the generated art. Additionally, it includes features like deduplication and length control to optimize the prompt for better adherence and quality, making it a valuable tool for AI artists looking to leverage the Anima model effectively.

TK Anima 格式化 Input Parameters:

escape_bracket

This parameter determines whether brackets in the tags should be escaped. Escaping brackets is crucial because unescaped brackets can be misinterpreted by systems like ComfyUI as syntax for attention weights, which can lead to unintended results. The default value is True, meaning brackets will be escaped by default. This ensures that the tags are interpreted correctly and consistently.

at_artist

This parameter specifies whether an @ symbol should be prefixed to artist names in the tags. The Anima model requires this prefix to properly recognize artist tags, and failing to include it can significantly weaken the effect of the artist tag. The default value is True, ensuring that artist names are formatted correctly for optimal impact.

reorder_sections

This parameter controls whether the tags should be reordered according to the Anima model's specified section order. Reordering ensures that tags are organized into the correct sequence, which is [quality/meta/year/safety] [1girl/1boy/1other] [character] [series] [artist] [general tags]. The default value is True, which helps maintain consistency with the Anima model's expectations.

dedupe

This parameter determines whether duplicate tags should be removed from the input. Removing duplicates can help streamline the prompt and prevent redundancy, which can improve the clarity and effectiveness of the tags. The default value is True, promoting a cleaner and more efficient tag set.

max_tags

This parameter allows you to set a limit on the number of tags included in the prompt. Limiting the number of tags can prevent the prompt from becoming too long, which can negatively impact the quality and adherence of the generated art. The default setting is "不限制" (no limit), but setting a limit can be beneficial for optimizing performance.

max_lines

This parameter sets a limit on the number of lines in the prompt. Similar to max_tags, controlling the number of lines can help maintain the prompt within an optimal length range, which is approximately 2–3 sections or 15 lines. This helps ensure that the prompt remains effective and aligned with the Anima model's training conditions.

TK Anima 格式化 Output Parameters:

formatted_tags

The output parameter formatted_tags provides the standardized and formatted tag string that adheres to the Anima model's requirements. This output is crucial for ensuring that the tags are correctly interpreted by the model, leading to higher quality and more consistent AI-generated art. The formatted tags are organized into the specified section order, with spaces instead of underscores, and include any necessary prefixes or escapes.

TK Anima 格式化 Usage Tips:

  • Always ensure that the at_artist parameter is set to True to maximize the impact of artist tags in your prompts.
  • Use the reorder_sections parameter to maintain the correct tag order, which is essential for achieving the best results with the Anima model.
  • Consider setting limits on max_tags and max_lines to prevent overly long prompts, which can degrade the quality of the generated art.

TK Anima 格式化 Common Errors and Solutions:

Missing @ in artist tag

  • Explanation: The artist tag is missing the required @ prefix, which can weaken its effect.
  • Solution: Ensure that the at_artist parameter is set to True to automatically add the @ prefix to artist tags.

Unescaped brackets in tags

  • Explanation: Brackets in the tags are not escaped, leading to potential misinterpretation by systems like ComfyUI.
  • Solution: Set the escape_bracket parameter to True to ensure all brackets are properly escaped.

Incorrect tag order

  • Explanation: Tags are not in the correct order as specified by the Anima model, which can affect the quality of the output.
  • Solution: Use the reorder_sections parameter to automatically arrange tags into the correct sequence.

TK Anima 格式化 Related Nodes

Go back to the extension to check out more related nodes.
comfyui-anima-toolkit
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

TK Anima 格式化