Nodes/Parametric Studio/LLM Prompt Refiner
ComfyUI Node

LLM Prompt Refiner

Formats an LLM request payload for prompt refinement and parses the response. Does not perform network I/O. Returns the request payload as JSON and the parsed refined prompt if a response is provided.

By parametricparadigm·Created 4 days ago·Updated about 3 hours ago· 1
LLM Prompt Refiner
    • refined_prompt
    • request_payload
    • redacted_api_key
    • error_message
    ◄raw_prompt►
    ◄llm_endpointhttp://127.0.0.1:8002/v1/chat/completions►
    ◄api_key►
    ◄system_promptYou are a prompt engineer. Refine and expand the user's prompt to be more detailed and descriptive for an image generation model.►
    ◄api_formatopenai►
    ◄llm_response►
    CategoryParametric/Agents

    Inputs (6)

    NameTypeDefaultDescription
    raw_promptSTRINGRaw prompt.
    llm_endpointSTRINGhttp://127.0.0.1:8002/v1/chat/completionsLlm endpoint. Default http://127.0.0.1:8002/v1/chat/completions.
    api_keySTRINGApi key.
    system_promptSTRINGYou are a prompt engineer. Refine and expand the user's prompt to be more detailed and descriptive for an image generation model.System prompt. Default You are a prompt engineer. Refine and expand the user's prompt to be more detailed and descriptive for an image generation model..
    api_formatCOMBOopenaiApi format. One of 2 choices. Default openai.
    llm_responseoptSTRINGLlm response.

    Outputs (4)

    NameTypeDescription
    refined_promptSTRING—
    request_payloadSTRING—
    redacted_api_keySTRING—
    error_messageSTRING—