Nodes/arkennemasis Nodes/arkennemasis Replicate LLM (OpenAI GPT-5)
ComfyUI Node

arkennemasis Replicate LLM (OpenAI GPT-5)

GPT-5 family in the graph, text and vision, paid per call

By Hishamahmer·Created 2 months ago·Updated 8 days ago· 9
arkennemasis Replicate LLM (OpenAI GPT-5)
  • image_1
  • image_2
  • image_3
  • image_4
  • text
model
prompt
system_prompt
reasoning_effort
verbosity
max_completion_tokens0
api_token
timeout_seconds0
force_rerunfalse
run_mode
max_concurrent2

An LLM node in a ComfyUI graph is a tool, not a component of the model - it writes your structured prompts, drafts story plans, captions images, and feeds text to the rest of the workflow. This node is the arkennemasis pack's hosted option: an OpenAI GPT-5 family model served on Replicate, with text and vision (up to four image inputs). It's pay-as-you-go per call, so the honest framing is exactly the one the KB gives for this whole category: reach for it when you want genuine large-chat quality and you don't need local or uncensored - anything the API filters, this node can't help with.

What you get

Two required inputs: model and prompt. The model dropdown is the full GPT-5 family - openai/gpt-5, -mini, -nano, -pro, -structured, plus 5.1, 5.2, 5.4 and the 5.6-luna/terra/sol variants. The single output is text (STRING).

The optional inputs carry the interesting parts:

  • system_prompt - type it here, or wire in the pack's System Instructions node.
  • image_1 through image_4 - vision inputs, each accepting a batch. This is what makes the node a VLM: wire a reference image in and the model reads it.
  • reasoning_effort (default/minimal/low/medium/high) and verbosity (default/low/medium/high) - both left on default are not sent, so the model's own defaults apply. That sentinel pattern runs through the pack.
  • max_completion_tokens - 0 = model default.
  • api_token - Replicate key; blank falls back to REPLICATE_API_TOKEN env var or a .env file (pack folder or ComfyUI root).
  • timeout_seconds - 0 = wait indefinitely.
  • force_rerun - re-call the API even if inputs are unchanged.
  • run_mode - one at a time (default) serialises every arkennemasis API node in the graph via an asyncio lock; all at once runs them concurrently up to max_concurrent (default 2, 0 = uncapped). The default exists because ComfyUI runs async nodes concurrently, and Replicate drops to a burst of 1 under $5 credit - parallel calls then reliably 429.

Behind the scenes it polls the prediction off the UI thread, so ComfyUI stays responsive and Cancel works, and it retries the failure modes that deserve retrying - 429s with backoff, 5xx, dropped connections - while never retrying a moderation refusal or an auth failure.

The workflow shape

The pack's canonical flow: System Instructions → this node (system_prompt) with your text and any reference images → its text output feeds the Image Gen node's prompt. It's also the natural story-agent node for the video pipeline - the Story Brief node's output wires straight into prompt.

Install

ReplicateOpenAILLM is one of the 61 nodes in the comfyui-arkennemasis pack, in arkennemasis/LLM:

cd ComfyUI/custom_nodes
git clone https://github.com/Hishamahmer/comfyui-arkennemasis
pip install -r comfyui-arkennemasis/requirements.txt   # then restart ComfyUI

Then get a token at https://replicate.com/account/api-tokens and either paste it into the node, set REPLICATE_API_TOKEN, or add it to a .env in ComfyUI's root (kept outside the repo so re-cloning never touches it). Or use ComfyUI Manager → Install via Git URL with the repo URL.

The one thing to remember: every call bills your Replicate account. If you already pay for ChatGPT, the pack's Codex LLM path is the same idea without per-call billing - worth checking before you spend.

Categoryarkennemasis/LLM

Inputs (15)

NameTypeDefaultDescription
modelCOMBO11 options: openai/gpt-5, openai/gpt-5-mini, openai/gpt-5-nano, openai/gpt-5-pro, openai/gpt-5-structured, openai/gpt-5.1, +5
promptSTRING
system_promptoptSTRINGSystem instructions. Type here, or wire in a 'System Instructions' node.
image_1optIMAGEOptional image for vision. Can be a batch.
image_2optIMAGE
image_3optIMAGE
image_4optIMAGE
reasoning_effortoptCOMBO5 options: default, minimal, low, medium, high
verbosityoptCOMBO4 options: default, low, medium, high
max_completion_tokensoptINT00–1280000 = model default.
api_tokenoptSTRINGReplicate API token (optional). Blank = use REPLICATE_API_TOKEN from the environment or a .env file.
timeout_secondsoptINT00–86400Max seconds to wait for the model. 0 = wait indefinitely.
force_rerunoptBOOLEANfalseRe-call the API even if inputs are unchanged.
run_modeoptCOMBOComfyUI runs async nodes concurrently. 'one at a time' serialises every arkennemasis API node in the graph — use it when the provider throttles bursts (Replicate allows a burst of 1 under $5 credit). 'all at once' is faster when your rate limit allows it.
max_concurrentoptINT20–32Only used when run_mode is 'all at once': how many arkennemasis API calls may be in flight together. 0 = no cap. 2 is a safe default for a 24-shot batch.

Outputs (1)

NameTypeDescription
textSTRING