Jimeng Quota Settings:
JimengQuotaSettings is a node designed to manage and configure quota limits for image and video generation tasks. This node is essential for users who need to control and allocate resources efficiently when using the Jimeng API for generating media content. By setting quotas, you can ensure that your usage stays within predefined limits, preventing overuse and managing costs effectively. The node allows you to specify limits for different models, ensuring that each task type, whether image or video, is appropriately managed. This functionality is particularly beneficial for users who need to balance multiple projects or clients, as it provides a structured way to allocate resources and monitor usage. Overall, JimengQuotaSettings helps maintain control over resource consumption, ensuring that your creative processes are both efficient and cost-effective.
Jimeng Quota Settings Input Parameters:
client
The client parameter represents the Jimeng client instance that is used to interact with the API. It is crucial because it contains the API key necessary for authentication and quota management. Without a valid client, the node cannot function as it relies on the API key to set and check quotas.
image_model
The image_model parameter allows you to select the specific image generation model you wish to set a quota for. Options include various models from the SEEDREAM series, with "None" as the default option. This parameter determines which model's quota will be affected, and setting it to "None" means no quota will be applied to image generation tasks.
image_limit
The image_limit parameter specifies the maximum number of images that can be generated under the set quota. It accepts integer values ranging from 0 to 2,147,483,647, with 0 disabling the quota. This parameter is crucial for controlling the number of images generated, helping to manage resource usage and costs.
video_model
The video_model parameter allows you to select the specific video generation model for which you want to set a quota. Similar to the image model, it includes options from the VIDEO_MODEL_MAP, with "None" as the default. This parameter is essential for determining which video model's quota will be managed.
video_limit
The video_limit parameter sets the maximum number of tokens that can be used for video generation under the quota. It accepts integer values from 0 to 2,147,483,647, with 0 disabling the quota. This parameter helps manage the resources allocated for video generation, ensuring that usage stays within desired limits.
Jimeng Quota Settings Output Parameters:
status
The status output parameter provides a string that describes the current quota status for the specified API key. It includes information about the models, their usage, and the remaining quota. This output is crucial for monitoring and understanding how much of the allocated resources have been used, allowing for informed decision-making regarding further usage.
Jimeng Quota Settings Usage Tips:
- Ensure that the
clientparameter is correctly configured with a valid API key to avoid authentication issues. - Use the
image_limitandvideo_limitparameters to prevent exceeding your resource budget, especially when working on multiple projects. - Regularly check the
statusoutput to monitor your quota usage and adjust limits as necessary to optimize resource allocation.
Jimeng Quota Settings Common Errors and Solutions:
Error: Client has no API Key bound.
- Explanation: This error occurs when the
clientparameter does not have a valid API key associated with it, which is necessary for quota management. - Solution: Ensure that the
clientis properly configured with a valid API key before executing the node.
Quota exceeded for model: <model_name>
- Explanation: This error indicates that the usage for a specific model has surpassed the set quota limit.
- Solution: Review the current usage and consider increasing the quota limit for the model if necessary, or reduce the usage to stay within the existing limit.
