
ComfyUI 的 Anima 动漫风格文生图生成工作流,旨在将文本提示转化为引人注目的动漫风格图像。该工作流基于 Anima 模型——专为动漫及非写实艺术风格训练的文生图模型,确保生成的图像具有鲜明的动漫美学。流程包含多个关键节点,如 CLIPTextEncode 处理文本提示,VAEDecode 将潜空间解码为可视化输出。通过在 KSampler 节点调整步数和 CFG scale 等参数,可细致调控生成图像的艺术风格和细节。
技术上,工作流分为三步:加载所需模型、设置图像尺寸、输入提示词。VAELoader 和 UNETLoader 节点用于准备模型组件,EmptyLatentImage 节点初始化图像生成的潜空间,SaveImage 节点保存最终输出。该工作流特别适合希望快速将文本描述转为动漫风格视觉内容的艺术家和内容创作者,可用于概念设计、分镜、数字插画等创作场景。
API
Use this workflow from code
Every Comfy workflow is a JSON graph. The payload below is this workflow, exactly as ComfyUI runs it — fetch it from the URL, keep it in version control, or load it in ComfyUI and run it node by node.
Run it from TypeScript or Python with the Comfy SDK. The same code targets Comfy Cloud or a ComfyUI you host yourself — only the base URL changes.
// Install (beta)
npm i @comfyorg/sdk
// Run "Anima Anime 文生图生成" (TypeScript)
import { Comfy } from "@comfyorg/sdk";
const client = new Comfy({ apiKey: "comfyui-..." });
// This workflow, exported in API format (see note below)
const wf = await client.workflows.fromFile("image_anima_preview_api.json");
const job = await client.run(wf);
await job.getOutputs("46")[0].toFile("output.png"); // SaveImageThe SDK takes a workflow in API format: open this workflow in ComfyUI and use File → Export Workflow (API).
Comfy Cloud API access requires a plan with an API key.
常见问题














