WaveSpeedAI Task Submit [WIP]:
The WaveSpeedAI Task Submit node is designed to facilitate the submission of tasks to the WaveSpeed AI platform. This node acts as a bridge between the task creation process and the execution of tasks on the WaveSpeed AI system. By leveraging the task information generated by the WaveSpeedTaskCreateDynamic node, it submits the task to the AI platform, allowing for seamless integration and execution of AI-driven tasks. The node is particularly beneficial for users who want to automate the submission process and manage task execution efficiently. It provides options to wait for task completion and configure polling intervals, ensuring that users can tailor the task submission process to their specific needs. This node is essential for streamlining workflows and enhancing productivity by automating the interaction with the WaveSpeed AI platform.
WaveSpeedAI Task Submit [WIP] Input Parameters:
client
The client parameter is a reference to the WaveSpeed AI API client, which is essential for authenticating and communicating with the WaveSpeed AI platform. It ensures that the task submission is authorized and that the API requests are correctly routed to the intended service.
task_info
The task_info parameter contains the task details generated by the WaveSpeedTaskCreateDynamic node. It includes all necessary information about the task to be submitted, such as model parameters and configurations. This parameter is crucial as it dictates what task will be executed on the WaveSpeed AI platform.
wait_for_completion
The wait_for_completion parameter is a boolean that determines whether the node should wait for the task to complete before returning. By default, it is set to True, meaning the node will wait for the task to finish. This parameter is important for users who need to ensure that the task has been fully processed before proceeding with subsequent operations.
max_wait_time
The max_wait_time parameter specifies the maximum amount of time, in seconds, that the node will wait for the task to complete. It has a default value of 300 seconds, with a minimum of 30 seconds and a maximum of 1800 seconds. This parameter allows users to set a time limit for task completion, ensuring that the process does not hang indefinitely.
poll_interval
The poll_interval parameter defines the frequency, in seconds, at which the node checks the status of the task. It defaults to 5 seconds, with a minimum of 1 second and a maximum of 30 seconds. This parameter is useful for controlling how often the node queries the task status, balancing between responsiveness and resource usage.
WaveSpeedAI Task Submit [WIP] Output Parameters:
task_id
The task_id output parameter provides the unique identifier for the submitted task. This ID is crucial for tracking and managing the task within the WaveSpeed AI platform, allowing users to reference the task in future operations.
video_url
The video_url output parameter contains the URL of the video output generated by the task, if applicable. This URL allows users to access and view the video result of the task execution.
image
The image output parameter represents the image output produced by the task. It is a direct result of the task execution and can be used for further analysis or display purposes.
audio_url
The audio_url output parameter provides the URL of the audio output generated by the task, if applicable. This URL enables users to listen to the audio result of the task execution.
text
The text output parameter contains any textual output produced by the task. This could include descriptions, summaries, or other text-based results generated during task execution.
firstImageUrl
The firstImageUrl output parameter provides the URL of the first image output generated by the task. This is particularly useful when multiple images are produced, allowing users to quickly access the initial result.
imageUrls
The imageUrls output parameter is a collection of URLs pointing to all image outputs generated by the task. This parameter is essential for users who need to access and manage multiple image results from a single task execution.
WaveSpeedAI Task Submit [WIP] Usage Tips:
- Ensure that the
clientparameter is correctly configured with a valid API key to authenticate requests to the WaveSpeed AI platform. - Adjust the
max_wait_timeandpoll_intervalparameters to optimize the balance between task completion time and resource usage, especially for tasks expected to take longer durations. - Use the
task_idoutput to track and manage tasks, especially when integrating with other nodes or systems that require task identification.
WaveSpeedAI Task Submit [WIP] Common Errors and Solutions:
No response from API
- Explanation: This error occurs when the node does not receive any response from the WaveSpeed AI platform after submitting a task.
- Solution: Verify that the
clientparameter is correctly configured with a valid API key and that the network connection to the WaveSpeed AI platform is stable.
Task failed: <error_message>
- Explanation: This error indicates that the task execution on the WaveSpeed AI platform encountered an issue and failed.
- Solution: Check the
task_infoparameter for any incorrect configurations or unsupported parameters. Review the error message for specific details and adjust the task settings accordingly.
