Nodes/ComfyUI OpenAI API/OpenAI API - Client
ComfyUI Node

OpenAI API - Client

The OpenAI API client used to perform chat completions

By hekmon·Created about a year ago·Updated 9 months ago· 42
OpenAI API - Client
    • API Client
    base_urlhttps://api.openai.com/v1
    max_retries2
    timeout600
    api_key-
    CategoryOpenAI API

    Inputs (4)

    NameTypeDefaultDescription
    base_urlSTRINGhttps://api.openai.com/v1The base URL to use for the OpenAI API requests
    max_retriesINT2Max number of retries for failed requests
    timeoutINT600Request timeout in seconds
    api_keyoptSTRING-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)

    NameTypeDescription
    API ClientOAIAPI_CLIENTThe initialized and ready to query OpenAI API client