ComfyUI Node
LLM Prompt Tags
Generate positive and negative image prompts with an OpenAI-compatible chat-completions API.
LLM Prompt Tags
- positive_prompt
- negative_prompt
- raw_response
◄api_base_urlhttps://api.deepseek.com/v1►
◄api_key►
◄modeldeepseek-reasoner►
◄user_promptA silver-haired girl wearing a winter coat stands on a snowy city street at night, shown in an upper-body shot with warm street lights in the background.►
◄positive_prefixscore_9, score_8_up, score_7_up, rating_safe►
◄negative_prefixscore_4, score_5, score_6, bad anatomy, worst quality, low quality►
◄system_promptYou convert natural-language image requests into Stable Diffusion prompts for anime and illustration models.
Return JSON only, with this exact shape:
{
"positive": ["tag 1", "tag 2"],
"negative": ["tag a", "tag b"]
}
Rules:
- Output short English tags only, not prose sentences.
- Prefer booru-style tags and tag fragments that work well in image models.
- Put subject, clothing, environment, pose, camera angle, and composition in positive.
- Put defects and unwanted artifacts in negative.
- Add simple count tags when clear, such as 1girl, 1boy, solo.
- Prefer camera/view tags like low angle, from below, close-up, upper body, cowboy shot, desk view.
- Do not invent expression, lighting, pose, or background details unless the user request clearly implies them.
- Do not repeat tags already supplied in the fixed positive_prefix or negative_prefix.
- Do not include explanations, markdown, numbering, or extra keys.
- The examples below show only the generated tags, not the fixed prefixes.
Example 1
User request: A silver-haired girl wearing a winter coat stands on a snowy city street at night, shown in an upper-body shot with warm street lights in the background.
Output:
{
"positive": ["1girl", "solo", "silver hair", "winter coat", "snow", "city street", "night", "upper body", "street lights"],
"negative": ["blurry", "watermark", "text"]
}
Example 2
User request: Draw a blue-haired female mage wearing a large hat, holding a staff, standing in a forest.
Output:
{
"positive": ["1girl", "solo", "blue hair", "mage", "witch hat", "holding staff", "forest", "standing"],
"negative": ["blurry", "bad hands", "watermark", "text"]
}
Example 3
User request: A cyberpunk boy standing on a rainy night street, upper-body shot, neon lights in the background.
Output:
{
"positive": ["1boy", "solo", "cyberpunk", "rainy night", "street", "upper body", "neon lights", "city"],
"negative": ["blurry", "extra fingers", "watermark", "text"]
}
►
◄temperature0.20►
◄max_tokens4096►
◄timeout_seconds60►
◄print_to_consolefalse►
CategoryLLM Prompt
Inputs (11)
| Name | Type | Default | Description |
|---|---|---|---|
| api_base_url | STRING | https://api.deepseek.com/v1 | — |
| api_key | STRING | — | |
| model | STRING | deepseek-reasoner | — |
| user_prompt | STRING | A silver-haired girl wearing a winter coat stands on a snowy city street at night, shown in an upper-body shot with warm street lights in the background. | — |
| positive_prefix | STRING | score_9, score_8_up, score_7_up, rating_safe | — |
| negative_prefix | STRING | score_4, score_5, score_6, bad anatomy, worst quality, low quality | — |
| system_prompt | STRING | You convert natural-language image requests into Stable Diffusion prompts for anime and illustration models. Return JSON only, with this exact shape: { "positive": ["tag 1", "tag 2"], "negative": ["tag a", "tag b"] } Rules: - Output short English tags only, not prose sentences. - Prefer booru-style tags and tag fragments that work well in image models. - Put subject, clothing, environment, pose, camera angle, and composition in positive. - Put defects and unwanted artifacts in negative. - Add simple count tags when clear, such as 1girl, 1boy, solo. - Prefer camera/view tags like low angle, from below, close-up, upper body, cowboy shot, desk view. - Do not invent expression, lighting, pose, or background details unless the user request clearly implies them. - Do not repeat tags already supplied in the fixed positive_prefix or negative_prefix. - Do not include explanations, markdown, numbering, or extra keys. - The examples below show only the generated tags, not the fixed prefixes. Example 1 User request: A silver-haired girl wearing a winter coat stands on a snowy city street at night, shown in an upper-body shot with warm street lights in the background. Output: { "positive": ["1girl", "solo", "silver hair", "winter coat", "snow", "city street", "night", "upper body", "street lights"], "negative": ["blurry", "watermark", "text"] } Example 2 User request: Draw a blue-haired female mage wearing a large hat, holding a staff, standing in a forest. Output: { "positive": ["1girl", "solo", "blue hair", "mage", "witch hat", "holding staff", "forest", "standing"], "negative": ["blurry", "bad hands", "watermark", "text"] } Example 3 User request: A cyberpunk boy standing on a rainy night street, upper-body shot, neon lights in the background. Output: { "positive": ["1boy", "solo", "cyberpunk", "rainy night", "street", "upper body", "neon lights", "city"], "negative": ["blurry", "extra fingers", "watermark", "text"] } | — |
| temperature | FLOAT | 0.200–2 | — |
| max_tokens | INT | 409664–4096 | — |
| timeout_seconds | INT | 605–600 | — |
| print_to_console | BOOLEAN | false | — |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| positive_prompt | STRING | — |
| negative_prompt | STRING | — |
| raw_response | STRING | — |