Nodes/comfyui-byokey/BYOKey LLM (OpenAI Compatible)
ComfyUI Node

BYOKey LLM (OpenAI Compatible)

Generate text responses from an OpenAI-compatible chat model. Supports image context when images are connected.

By MeteorAndy·Created 3 months ago·Updated 2 months ago· 0
BYOKey LLM (OpenAI Compatible)
  • images
  • output_text
api_key
base_urlhttps://api.openai.com/v1
modelgpt-5
prompt
instructions
temperature1.00
top_p1.00
max_tokens4096
seed0
Categoryapi/byokey/text

Inputs (10)

NameTypeDefaultDescription
api_keySTRINGYour API key (sent as 'Authorization: Bearer <key>').
base_urlSTRINGhttps://api.openai.com/v1API base URL. Override for OpenAI-compatible relays (e.g. DeepSeek, Qwen). '/chat/completions' is appended.
modelSTRINGgpt-5The model used to generate the response. Common OpenAI ids: gpt-5.5-pro, gpt-5.5, gpt-5, gpt-5-mini, gpt-5-nano, gpt-4.1, gpt-4.1-mini, gpt-4.1-nano, o4-mini, o3, o1-pro, o1
promptSTRINGText inputs to the model, used to generate a response.
imagesoptIMAGEOptional image(s) to use as context for the model. To include multiple images, use the Batch Images node.
instructionsoptSTRINGSystem instructions for the model on how to generate the response (sent as the 'system' message).
temperatureoptFLOAT1.000–2Controls randomness in the response (0.0-2.0).
top_poptFLOAT1.000–1Controls diversity via nucleus sampling (0.0-1.0).
max_tokensoptINT409616–16384Upper bound for the number of tokens generated for a response.
seedoptINT00–2147483647Sampling seed (best-effort; not honored by all backends).

Outputs (1)

NameTypeDescription
output_textSTRING