# ChatGPT (https://docs.fuser.studio/docs/nodes/llm/chatgpt)

_Provided by [OpenAI](https://openai.com) — [Learn More](https://platform.openai.com/docs/models)._

## Inputs [#inputs]

- **Prompt** (`textarea`) — The message prompt to send to the model.

- **Model** (`dropdown`) — The OpenAI model to use for chat completion.

   Optional: `true` • Default: `gpt-5.1` • Accepts: `gpt-5.4`, `gpt-5.2`, `gpt-5.1`, `gpt-5`, `gpt-5-mini`, `gpt-5-nano`, `gpt-5-chat-latest`, `gpt-4.1`, `gpt-4.1-mini`, `gpt-4.1-nano`, `gpt-4o`, `gpt-4o-search-preview`, `gpt-4o-mini-search-preview`, `gpt-4o-mini`, `chatgpt-4o-latest`, `o1`, `o1-mini`, `o1-preview`, `o3-mini`, `o3`, `o4-mini`

- **System Prompt** (`textarea`) — A system prompt that sets the behavior and context for the conversation.

   Optional: `true`

- **Attachment** (`generic`) _(accepts multiple)_ — Attachments to include with the prompt (images, text, etc.).

   Optional: `true`

- **Last Message Only** (`toggle`) — If enabled, only the last message will be sent to the model instead of the full conversation history.

   Optional: `true` • Default: `false`

- **Temperature** (`number`) — Controls randomness in the output. Higher values make the output more random, lower values make it more deterministic.

   Optional: `true` • Minimum: `-1` • Maximum: `1`

- **Seed** (`seed`) — A seed value for reproducible outputs. Use the same seed to get consistent results.

   Optional: `true` • Default: `8455`

- **Top P** (`number`) — Nucleus sampling parameter. Controls diversity via nucleus sampling.

   Optional: `true`

- **Top K** (`number`) — Limits the number of highest probability tokens to consider.

   Optional: `true`

- **Max Tokens** (`number`) — Maximum number of tokens to generate in the response.

   Optional: `true`

- **Stop Sequences** (`string`) _(accepts multiple)_ — Sequences that will cause the model to stop generating further tokens.

   Optional: `true`

- **Presence Penalty** (`number`) — Penalizes tokens based on whether they appear in the text so far.

   Optional: `true` • Minimum: `-2` • Maximum: `2`

- **Frequency Penalty** (`number`) — Penalizes tokens based on their frequency in the text so far.

   Optional: `true` • Minimum: `-2` • Maximum: `2`

## Outputs [#outputs]

- **Last Response** (`textarea`) — The last response from the model.