Comfy-Org/ComfyUI · error · ValueError

text_style_prompt and image_style cannot be used at the same

Error message

text_style_prompt and image_style cannot be used at the same time

What it means

Error "text_style_prompt and image_style cannot be used at the same time" thrown in Comfy-Org/ComfyUI.

Source

Thrown at comfy_api_nodes/nodes_meshy.py:781

        meshy_task_id: str,
        enable_original_uv: bool,
        pbr: bool,
        text_style_prompt: str,
        image_style: Input.Image | None = None,
    ) -> IO.NodeOutput:
        if text_style_prompt and image_style is not None:
            raise ValueError("text_style_prompt and image_style cannot be used at the same time")
        if not text_style_prompt and image_style is None:
            raise ValueError("Either text_style_prompt or image_style is required")
        image_style_url = None

View on GitHub (pinned to 1c6d8d45b3)

Solutions

  1. Use either text_style_prompt or image_style, not both.

When it happens

Trigger: Thrown at comfy_api_nodes/nodes_meshy.py:781 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of Comfy-Org/ComfyUI@1c6d8d45b3 (2026-08-14). Data as JSON: /api/errors/2e48d84577d3a00b. Report an issue: GitHub.