ComfyUI Node

LLM Prompt Tags

Generate positive and negative image prompts with an OpenAI-compatible chat-completions API.

By longyijdos·Created 4 months ago·Updated 4 months ago· 1
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)

    NameTypeDefaultDescription
    api_base_urlSTRINGhttps://api.deepseek.com/v1
    api_keySTRING
    modelSTRINGdeepseek-reasoner
    user_promptSTRINGA 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_prefixSTRINGscore_9, score_8_up, score_7_up, rating_safe
    negative_prefixSTRINGscore_4, score_5, score_6, bad anatomy, worst quality, low quality
    system_promptSTRINGYou 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"] }
    temperatureFLOAT0.200–2
    max_tokensINT409664–4096
    timeout_secondsINT605–600
    print_to_consoleBOOLEANfalse

    Outputs (3)

    NameTypeDescription
    positive_promptSTRING
    negative_promptSTRING
    raw_responseSTRING