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 GitHubThis 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
| Parameter | Data Type | Required | Range | Description |
|---|---|---|---|---|
prompt | STRING | Yes | - | Text inputs to the model, used to generate a response (default: empty) |
persist_context | BOOLEAN | Yes | - | This parameter is deprecated and has no effect (default: False) |
model | COMBO | Yes | gpt-5.5-progpt-5.5gpt-5gpt-5-minigpt-5-nanogpt-4.1gpt-4.1-minigpt-4.1-nanoo4-minio3o1-proo1 | The model used to generate the response (default: gpt-5) |
images | IMAGE | No | - | Optional image(s) to use as context for the model. To include multiple images, you can use the Batch Images node |
files | OPENAI_INPUT_FILES | No | - | Optional file(s) to use as context for the model. Accepts inputs from the OpenAI Chat Input Files node |
advanced_options | OPENAI_CHAT_CONFIG | No | - | Optional configuration for the model. Accepts inputs from the OpenAI Chat Advanced Options node |
Outputs
| Output Name | Data Type | Description |
|---|---|---|
output_text | STRING | The text response generated by the OpenAI model |
Source fingerprint (SHA-256):
9adc9685d7fc31fba95bf43fa9e041289b6dbb9ab8f5ed30dc85e0acc015fe5c