> ## Documentation Index
> Fetch the complete documentation index at: https://phidatainc-agui.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Models Lab Tools

> Tool integration example.

ModelsLab tools enable Agno agents with a unified API to access various AI models for generating images, videos, music, and even 3D objects.

It is particularly useful when building multi-agent Agno Teams. For example, you can have a "Screenwriter Agent" write a script, a "Director Agent" use ModelsLabTools to generate the scenes, and a "Narrator Agent" use the ModelsLab Voice API to add the voiceover—all working in a coordinated pipeline.

```python theme={null}
"""Run `uv pip install requests` to install dependencies."""

from agno.agent import Agent
from agno.models.response import FileType
from agno.tools.models_labs import ModelsLabTools
from agno.utils.media import download_audio
from agno.utils.pprint import pprint_run_response

# ---------------------------------------------------------------------------
# Create Agent
# ---------------------------------------------------------------------------


# Create a video agent (set to make MP4)
agent = Agent(tools=[ModelsLabTools(file_type=FileType.MP4)], send_media_to_model=False)

# agent.print_response(
#     "Generate a video of a beautiful sunset over the ocean", markdown=True
# )

# Create audio agent (set to make WAV)
agent = Agent(tools=[ModelsLabTools(file_type=FileType.WAV)], send_media_to_model=False)

# ---------------------------------------------------------------------------
# Run Agent
# ---------------------------------------------------------------------------
if __name__ == "__main__":
    response = agent.run("Generate a SFX of a ocean wave", markdown=True)
    pprint_run_response(response, markdown=True)

    if response.audio and response.audio[0].url:
        download_audio(
            url=response.audio[0].url,
            output_path="./tmp/nature.wav",
        )
```

## Run the Example

```bash theme={null}
# Clone and setup repo
git clone https://github.com/agno-agi/agno.git
cd agno/cookbook/91_tools

# Create and activate virtual environment
./scripts/demo_setup.sh
source .venvs/demo/bin/activate

python models_lab_tools.py
```

For details, see [Modelslab tools cookbook](https://github.com/agno-agi/agno/blob/main/cookbook/91_tools/models_lab_tools.py).
