Visit ComfyUI Online for ready-to-use ComfyUI environment
Facilitates seamless interaction with web APIs for data retrieval and utilization in workflows.
The api_tool
node is designed to facilitate seamless interaction with web APIs, allowing you to fetch and utilize data from various online sources directly within your workflow. This tool is particularly useful for tasks such as retrieving weather information, accessing real-time data, or integrating external services into your projects. By configuring the node with the appropriate parameters, you can enable or disable the API request, specify the target URL, and provide a detailed description and parameters for the API call. The primary goal of this node is to simplify the process of making web requests and handling the responses, making it easier for you to incorporate dynamic data into your creative projects.
This parameter is a boolean that determines whether the API request should be executed. If set to True
, the request will be made; if set to False
, the request will be skipped. The default value is True
.
This parameter is a string that specifies the URL of the API endpoint you wish to request. It is essential to provide a valid URL to ensure the API call is successful. The default value is "被请求的网址" (the requested URL).
This parameter is a multiline string that allows you to provide a detailed description of the API tool's purpose. This can be useful for documentation and understanding the context of the API request. The default value is "用来查天气的工具" (a tool for checking the weather).
This parameter is a multiline string in JSON format that defines the parameters to be sent with the API request. It includes key-value pairs where the key is the parameter name and the value is a description of the parameter. The default value is a JSON object with example parameters for querying weather information, such as city and extensions.
The output parameter tool
is a string that contains the JSON representation of the API request configuration. This includes the function name, description, and parameters required for making the API call. This output can be used to execute the API request and retrieve the desired data.
url
parameter is a valid and reachable API endpoint to avoid request failures.description
parameter to document the purpose and functionality of the API request, which can be helpful for future reference.parameters
, make sure the JSON format is correct to prevent parsing errors. You can use online JSON validators to check the syntax.parameters
string is not in valid JSON format.parameters
string is correctly formatted as JSON. Use an online JSON validator to check for syntax errors.url
parameter to ensure it is correct and reachable. Verify your network connection and try again. If the issue persists, contact the API provider for support.api_boxes
dictionary.© Copyright 2024 RunComfy. All Rights Reserved.