Nodes/comfyui-openai-api/OpenAI API - Batched Chat Completion
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.

By lany42·Created 2 days ago·Updated a day ago· 0
OpenAI API - Batched Chat Completion
  • client
  • image_batches
  • options
  • Responses
◄model—►
◄force_regenfalse►
◄system_prompt—►
◄prompts—►
CategoryOpenAI API

Inputs (7)

NameTypeDefaultDescription
clientOAIAPI_CLIENTOne shared OpenAI API client for all requests
modelSTRINGOne shared model for all requests
force_regenBOOLEANfalseSet to true to regenerate every response even when inputs have not changed
system_promptoptSTRINGOne shared system prompt for all requests
promptsoptSTRINGA STRING execution list, with one prompt per request; must match the number of image batches when both are supplied
image_batchesoptOAIAPI_IMAGE_BATCH_LISTOutput from Image Batch List or Image Batch to List; each image group goes to the request at the same position
optionsoptOAIAPI_OPTIONSOne shared set of options for all requests

Outputs (1)

NameTypeDescription
ResponsesSTRINGA STRING execution list of responses in input order