ComfyUI > Nodes > ComfyUI OpenAI API > OpenAI API - Extra Body

ComfyUI Node: OpenAI API - Extra Body

Class Name

OAIAPI_ExtraBody

Category
OpenAI API/Options
Author
hekmon (Account age: 4828days)
Extension
ComfyUI OpenAI API
Latest Updated
2025-11-26
Github Stars
0.03K

How to Install ComfyUI OpenAI API

Install this extension via the ComfyUI Manager by searching for ComfyUI OpenAI API
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI OpenAI API in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

OpenAI API - Extra Body Description

Enhances OpenAI API requests by adding custom parameters for tailored AI responses.

OpenAI API - Extra Body:

The OAIAPI_ExtraBody node is designed to enhance your interaction with the OpenAI API by allowing you to include additional parameters in your API requests that are not covered by other nodes. This node is particularly useful when you need to customize your API calls with specific parameters that can influence the behavior of the AI model, such as adjusting penalties or setting a seed for reproducibility. By providing a flexible way to add extra body content to your requests, this node empowers you to fine-tune the AI's responses to better suit your creative needs, making it an essential tool for AI artists looking to leverage the full potential of the OpenAI API.

OpenAI API - Extra Body Input Parameters:

extra_body

The extra_body parameter allows you to specify additional JSON-formatted content to include in your OpenAI API request. This content can include various parameters that influence the AI model's behavior, such as repetition_penalty or seed. The parameter is designed to accept a JSON object (dictionary) as a string, and it supports multiline input for ease of editing. The default value is a JSON string with a repetition_penalty of 0.5 and a seed of 42. This parameter is crucial for customizing the API request to achieve specific outcomes in your AI-generated content.

other_options

The other_options parameter is an optional input that allows you to merge additional options with the extra body content. This parameter accepts an OptionsPayload object, which can contain various settings that you want to combine with the extra body parameters. By using this parameter, you can create a comprehensive set of options that are forwarded in the API request, providing greater control over the AI's output. If not provided, only the extra_body content will be used.

OpenAI API - Extra Body Output Parameters:

options

The options output parameter provides the merged set of options that will be forwarded in the OpenAI API request. This output is an OptionsPayload object that combines the extra_body content with any additional options specified in the other_options parameter. The resulting options dictate how the AI model processes the request, allowing you to tailor the AI's responses to your specific requirements. This output is essential for ensuring that all desired parameters are included in the API call.

OpenAI API - Extra Body Usage Tips:

  • Ensure that the extra_body parameter is a valid JSON object to avoid errors during execution. Use a JSON validator if necessary.
  • Utilize the other_options parameter to combine multiple settings into a single API request, providing a more comprehensive configuration for the AI model.

OpenAI API - Extra Body Common Errors and Solutions:

extra body is not a valid JSON

  • Explanation: This error occurs when the extra_body parameter contains invalid JSON syntax, preventing it from being parsed correctly.
  • Solution: Check the extra_body content for syntax errors, such as missing commas or mismatched brackets, and correct them. Use a JSON validator to ensure the content is properly formatted.

extra body must be a JSON object (dictionary)

  • Explanation: This error indicates that the extra_body parameter is not a JSON object, which is required for the node to function correctly.
  • Solution: Ensure that the extra_body content is structured as a JSON object (dictionary) with key-value pairs. Adjust the format if necessary to meet this requirement.

OpenAI API - Extra Body Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI OpenAI API
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.