ComfyUI Node
OpenAI API - Client
The OpenAI API client used to perform chat completions
OpenAI API - Client
- API Client
◄base_urlhttps://api.openai.com/v1►
◄max_retries2►
◄timeout600►
◄api_key-►
CategoryOpenAI API
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| base_url | STRING | https://api.openai.com/v1 | The base URL to use for the OpenAI API requests |
| max_retries | INT | 2 | Max number of retries for failed requests |
| timeout | INT | 600 | Request timeout in seconds |
| api_keyopt | STRING | - | The API key to use. An empty API key set with the openai package might end up with a connection error, leave the '-' placeholder if no key is needed. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| API Client | OAIAPI_CLIENT | The initialized and ready to query OpenAI API client |