ComfyUI Node

GPT-5.4 Mini

The everyday GPT-5.4 — fast, cheap, same controls

By Runware·Created 2 years ago·Updated about a month ago· 140
GPT-5.4 Mini
  • messages
  • images
  • text
seed0
numberResults1
includeUsagefalse
settings.maxTokens4096
settings.systemPrompt
settings.temperature1.00
settings.thinkingLevel(default)
toolChoicefalse
toolChoice.name
toolChoice.type(default)
settings.topP0.95
outputFormatTEXT
advanced_json

If you're wiring a language model into a workflow that runs often - rewriting every prompt before sampling, summarizing every caption, tagging every batch - you don't want the flagship model for every call. GPT-5.4 Mini is the same model family with the same control surface, tuned to be quicker and cheaper. It's the node you default to when the answer doesn't need to be brilliant, just right.

How it works

A textInference node hitting GPT-5.4 Mini through the Runware cloud. The required messages input takes a RUNWARE_MESSAGES socket from the Runware Messages builder (Runware/Params) - you compose the conversation there, this node just runs it.

The controls match the full 5.4 node, which is the point:

  • settings.systemPrompt - the system instruction that shapes every response.
  • settings.temperature (default 1, 0–2) and settings.topP (default 0.95) - the creativity dials are right here, so you can make output as deterministic or as loose as you like.
  • settings.thinkingLevel - (default)/low/medium/high/xhigh. For a "just fix my prompt grammar" job, low is plenty and cheap.
  • settings.maxTokens (default 4096, up to 128k) - response cap.
  • images (IMAGE) - vision is available too: attach the image you're describing and the model will actually look at it.
  • toolChoice / toolChoice.type / toolChoice.name with advanced_json for tool definitions, plus seed, numberResults, and includeUsage.

Output is a text STRING that feeds any text consumer in your graph.

Install

Part of ComfyUI-Runware:

cd ComfyUI/custom_nodes
git clone https://github.com/Runware/ComfyUI-Runware
pip install -r ComfyUI-Runware/requirements.txt

Restart (or ComfyUI Manager → search "Runware"). Cloud model, no downloads. API key: Settings → Runware API key, RUNWARE_API_KEY, or runware auth login.

Gotchas

Per-token cost, same as any of these - the title bar shows it. The Mini is a genuinely good everyday model, but it's still smaller than 5.4; for long multi-step reasoning or anything that needs deep chains, keep the flagship or the Pro around and route the boring stuff here. And the statelessness rule applies to every text node in the pack: no built-in conversation memory, so multi-turn means wiring output back into the Messages builder.

CategoryRunware/Text/openai

Inputs (15)

NameTypeDefaultDescription
messagesRUNWARE_MESSAGES
imagesoptIMAGE
seedoptINT00–9223372036854776000Random seed for reproducible generation. When not provided, a random seed is generated in the unsigned 32-bit range.
numberResultsoptINT11–4Number of results to generate. Each result uses a different seed, producing variations of the same parameters.
includeUsageoptBOOLEANfalseInclude token usage statistics in the response.
settings.maxTokensoptINT40961–128000Maximum number of tokens to generate in the response.
settings.systemPromptoptSTRINGSystem-level instruction that guides the model's behavior and output style across the entire generation.
settings.temperatureoptFLOAT1.000–2Controls randomness in generation. Lower values produce more deterministic outputs, higher values increase variation and creativity.
settings.thinkingLeveloptCOMBO(default)Controls the depth of internal reasoning the model performs before generating a response.
toolChoiceoptBOOLEANfalseEnable to set toolChoice. Off uses the model's default.
toolChoice.nameoptSTRINGName of the specific tool the model must call. Required when type is `tool`.
toolChoice.typeoptCOMBO(default)Strategy the model uses to decide when and which tools to call.
settings.topPoptFLOAT0.950–1Nucleus sampling parameter that controls diversity by limiting the probability mass. Lower values make outputs more focused, higher values increase diversity.
outputFormatoptCOMBOTEXTOutput format for the generated text.
advanced_jsonoptSTRINGOptional JSON merged into the request. For: tools

Outputs (1)

NameTypeDescription
textSTRING