Nodes/ComfyUI-PromptsO/💀Text with OpenAI
ComfyUI Node

💀Text with OpenAI

Generates text using OpenAI API with custom API key.

By S4MUEL-404·Created 11 months ago·Updated 9 months ago· 3
💀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)

NameTypeDefaultDescription
system_promptSTRINGSystem instruction for the AI
user_promptSTRINGUser prompt for OpenAI
api_keySTRINGYour OpenAI API Key
modelCOMBOgpt-4o-miniChoose OpenAI model
max_tokensINT20481–32768Maximum number of tokens to generate
temperatureFLOAT0.70–2Sampling temperature (0.0 = deterministic, 2.0 = very random)
top_pFLOAT0.950–1Top-p sampling threshold
seedINT00–18446744073709550000Random seed for reproducible results
imagesoptIMAGEOptional reference images for context

Outputs (1)

NameTypeDescription
textSTRING