Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.comfy.org/llms.txt

Use this file to discover all available pages before exploring further.

This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub
This node generates text responses from an OpenAI model. It sends your text prompt (and optionally images or files) to an OpenAI model and returns the generated text response.

Inputs

ParameterData TypeRequiredRangeDescription
promptSTRINGYes-Text inputs to the model, used to generate a response (default: empty)
persist_contextBOOLEANYes-This parameter is deprecated and has no effect (default: False)
modelCOMBOYesgpt-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
The model used to generate the response (default: gpt-5)
imagesIMAGENo-Optional image(s) to use as context for the model. To include multiple images, you can use the Batch Images node
filesOPENAI_INPUT_FILESNo-Optional file(s) to use as context for the model. Accepts inputs from the OpenAI Chat Input Files node
advanced_optionsOPENAI_CHAT_CONFIGNo-Optional configuration for the model. Accepts inputs from the OpenAI Chat Advanced Options node

Outputs

Output NameData TypeDescription
output_textSTRINGThe text response generated by the OpenAI model

Source fingerprint (SHA-256): 9adc9685d7fc31fba95bf43fa9e041289b6dbb9ab8f5ed30dc85e0acc015fe5c