Griptape Agent Config: OpenAI Drivers
The one-stop Griptape config that wires every OpenAI model at once
- CONFIG
This is the config node most people start with, and honestly, the one you'll probably keep using. If you have an OpenAI key, you drag this in, connect it to an Agent, and you've got an LLM that can chat, describe images, generate images, embed text, talk out loud, and transcribe audio - all from one box. It's the flagship of the Griptape pack for a reason: it bundles every driver OpenAI offers into a single CONFIG output, and one CONFIG wire is all an Agent needs to know what model to talk to.
How it works
The "Drivers" naming is the point. Instead of a single "structure config" that hard-codes one prompt model, this node builds a Griptape DrvsConfig with a separate driver for each capability. Under the hood it instantiates an OpenAI chat prompt driver, an image generation driver, an embedding driver, a text-to-speech driver, and an audio transcription driver, then bundles them into one CONFIG object. Wire that into the config input of any Griptape Agent (or Structure), and the agent picks up every one of them at once.
You don't need to configure all of them. Every field is optional; leave the image generation stuff alone and the agent simply won't generate images. That makes this a great "just make it work" node before you start fiddling with per-provider configs.
The inputs that matter
model(defaultgpt-4o-mini) - the chat/prompt model. The dropdown lists 60+ OpenAI models, so you can drop ingpt-5orgpt-4.1without typing anything.api_key_env_var(defaultOPENAI_API_KEY) - the name of the env var or ComfyUI setting holding your key. Not the key itself.image_generation_model(dall-e-3default, plusdall-e-2andgpt-image-1) andsize- for the image generation task nodes.embedding_model(text-embedding-ada-002,text-embedding-3-small,text-embedding-3-large) - used for vector store / RAG memory.text_to_speech_model+voice, andaudio_transcription_model(whisper-1,gpt-4o-transcribe,gpt-4o-mini-transcribe) - round out the audio side.
The shared knobs - temperature, seed, max_tokens, min_p, response_format (default vs json_object), max_attempts_on_fail - apply to the prompt driver. Two that trip people up: use_native_tools toggles between the LLM's own tool-calling and Griptape's tool engine, and max_tokens defaults to -1, which means "let the tokenizer decide" - leave it alone unless you're hitting context limits.
The only output is CONFIG, which feeds the config socket on an Agent or Structure node.
Installing it
You're installing the whole pack once:
cd ComfyUI/custom_nodes
git clone https://github.com/griptape-ai/ComfyUI-Griptape
or search "Griptape" in ComfyUI Manager and install from there. Either way it pulls in griptape[all] and python-dotenv - and a torch build, which can clash with your existing one; the README's troubleshooting section has the exact reinstall commands. Restart ComfyUI, then set your key in Settings → Griptape in the sidebar (or as an OPENAI_API_KEY env var - the node checks settings first, then the environment).
Common issues
The classic failure is a blank response and a console line like [WARNING]: OPENAI_API_KEY is not set. That means the node looked for the key and couldn't find it - check you entered it under Settings → Griptape and that the env var name you typed matches exactly. Also remember the pack installs griptape and torch into your ComfyUI environment; if ComfyUI breaks after installing this pack, that's almost always the torch version getting stomped - the README's StabilityMatrix and uninstall/reinstall steps are the fix.
Inputs (20)
| Name | Type | Default | Description |
|---|---|---|---|
| prompt_model_commentopt | STRING | Prompt Driver | — |
| modelopt | COMBO | gpt-4o-mini | 62 options: gpt-5, gpt-5-mini, gpt-5-nano, gpt-5-2025-08-07, gpt-5-mini-2025-08-07, gpt-5-nano-2025-08-07, +56 |
| max_attempts_on_failopt | INT | 21–100 | Maximum attempts on failure |
| temperatureopt | FLOAT | 0.100–1 | Temperature for sampling |
| seedopt | INT | 10342349342 | Seed for random number generation |
| use_native_toolsopt | BOOLEAN | true | Use native tools for the LLM. |
| max_tokensopt | INT | -1 | Maximum tokens to generate. If <=0, it will use the default based on the tokenizer. |
| min_popt | FLOAT | 0.100–1 | Minimum probability for sampling. Lower values will be more random. |
| response_formatopt | COMBO | default | Format of the response |
| api_key_env_varopt | STRING | OPENAI_API_KEY | Enter the name of the environment variable that contains the API key, not the API key itself. |
| image_generation_model_commentopt | STRING | Image Generation Driver | — |
| image_generation_modelopt | COMBO | dall-e-3 | Select the image generation model. |
| sizeopt | COMBO | 1024x1024 | Select the desired image size. |
| embedding_model_commentopt | STRING | Embedding Driver | — |
| embedding_modelopt | COMBO | text-embedding-ada-002 | Select the embedding model to use. |
| text_to_speech_model_commentopt | STRING | Text To Speech Driver | — |
| text_to_speech_modelopt | COMBO | tts-1 | Enter the text-to-speech model name. |
| voiceopt | COMBO | alloy | Select the voice for text-to-speech. |
| audio_transcription_model_commentopt | STRING | Audio Transcription Driver | — |
| audio_transcription_modelopt | COMBO | whisper-1 | Select the audio transcription model to use. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| CONFIG | CONFIG | — |