The following agent will use ModelsLabs to generate a video based on a text prompt.
cookbook/tools/models_labs_tools.py
from agno.agent import Agentfrom agno.tools.models_labs import ModelsLabsTools# Create an Agent with the ModelsLabs toolagent = Agent(tools=[ModelsLabsTools()], name="ModelsLabs Agent")agent.print_response("Generate a video of a beautiful sunset over the ocean", markdown=True)
Toolkit Params
Parameter
Type
Default
Description
api_key
str
None
The ModelsLab API key for authentication
wait_for_completion
bool
False
Whether to wait for the video to be ready
add_to_eta
int
15
Time to add to the ETA to account for the time it takes to fetch the video