ComfyUI Node
OpenAI API - Batched Chat Completion
Runs independent chat completions sequentially, pairing prompts and image batches by position and returning responses in the same order. Use a Vision Language Model for image inputs.
OpenAI API - Batched Chat Completion
- client
- image_batches
- options
- Responses
◄model—►
◄force_regenfalse►
◄system_prompt—►
◄prompts—►
CategoryOpenAI API
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| client | OAIAPI_CLIENT | One shared OpenAI API client for all requests | |
| model | STRING | One shared model for all requests | |
| force_regen | BOOLEAN | false | Set to true to regenerate every response even when inputs have not changed |
| system_promptopt | STRING | One shared system prompt for all requests | |
| promptsopt | STRING | A STRING execution list, with one prompt per request; must match the number of image batches when both are supplied | |
| image_batchesopt | OAIAPI_IMAGE_BATCH_LIST | Output from Image Batch List or Image Batch to List; each image group goes to the request at the same position | |
| optionsopt | OAIAPI_OPTIONS | One shared set of options for all requests |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| Responses | STRING | A STRING execution list of responses in input order |