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

| Parameter | Description | Data Type | Required | Range |
| --- | --- | --- | --- | --- |
| `prompt` | Text inputs to the model, used to generate a response (default: empty) | STRING | Yes | - |
| `persist_context` | This parameter is deprecated and has no effect (default: False) | BOOLEAN | Yes | - |
| `model` | The model used to generate the response (default: `gpt-5`) | COMBO | Yes | `gpt-5.5-pro`<br>`gpt-5.5`<br>`gpt-5`<br>`gpt-5-mini`<br>`gpt-5-nano`<br>`gpt-4.1`<br>`gpt-4.1-mini`<br>`gpt-4.1-nano`<br>`o4-mini`<br>`o3`<br>`o1-pro`<br>`o1` |
| `images` | Optional image(s) to use as context for the model. To include multiple images, you can use the Batch Images node | IMAGE | No | - |
| `files` | Optional file(s) to use as context for the model. Accepts inputs from the OpenAI Chat Input Files node | OPENAI_INPUT_FILES | No | - |
| `advanced_options` | Optional configuration for the model. Accepts inputs from the OpenAI Chat Advanced Options node | OPENAI_CHAT_CONFIG | No | - |

## Outputs

| Output Name | Description | Data Type |
| --- | --- | --- |
| `output_text` | The text response generated by the OpenAI model | STRING |

> This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! [Edit on GitHub](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/OpenAIChatNode/en.md)

---
**Source fingerprint (SHA-256):** `9adc9685d7fc31fba95bf43fa9e041289b6dbb9ab8f5ed30dc85e0acc015fe5c`
