ComfyUI Node
💀Text with OpenAI
Generates text using OpenAI API with custom API key.
💀Text with OpenAI
- images
- text
◄system_prompt►
◄user_prompt►
◄api_key►
◄modelgpt-4o-mini►
◄max_tokens2048►
◄temperature0.7►
◄top_p0.95►
◄seed0►
Category💀PromptsO
Inputs (9)
| Name | Type | Default | Description |
|---|---|---|---|
| system_prompt | STRING | System instruction for the AI | |
| user_prompt | STRING | User prompt for OpenAI | |
| api_key | STRING | Your OpenAI API Key | |
| model | COMBO | gpt-4o-mini | Choose OpenAI model |
| max_tokens | INT | 20481–32768 | Maximum number of tokens to generate |
| temperature | FLOAT | 0.70–2 | Sampling temperature (0.0 = deterministic, 2.0 = very random) |
| top_p | FLOAT | 0.950–1 | Top-p sampling threshold |
| seed | INT | 00–18446744073709550000 | Random seed for reproducible results |
| imagesopt | IMAGE | Optional reference images for context |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| text | STRING | — |