Tools
ModelsLabs
Prerequisites
You need to install the requests
library.
Set the MODELS_LAB_API_KEY
environment variable.
Example
The following agent will use ModelsLabs to generate a video based on a text prompt.
cookbook/tools/models_labs_tools.py
Toolkit Params
Parameter | Type | Default | Description |
---|---|---|---|
api_key | str | None | The ModelsLab API key for authentication |
url | str | "https://modelslab.com/api/v6/video/text2video" | The API endpoint URL |
name | str | "models_labs" | The name of the tool |
Toolkit Functions
Function | Description |
---|---|
generate_video | Generates a video based on a text prompt |
Information
- View on Github
Was this page helpful?