> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agno.com/llms.txt
> Use this file to discover all available pages before exploring further.

# WaveSpeed Tools

> Generate images and videos with WaveSpeedTools and return the raw media URL.

```python wavespeed_tools.py theme={null}
"""
WaveSpeed Tools
=============================

Demonstrates WaveSpeed tools.
"""

from agno.agent import Agent
from agno.models.openai import OpenAIResponses
from agno.tools.wavespeed import WaveSpeedTools

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


wavespeed_agent = Agent(
    name="WaveSpeed Media Generator Agent",
    model=OpenAIResponses(id="gpt-5.5"),
    tools=[
        WaveSpeedTools(
            image_model="bytedance/seedream-v5.0-pro",
            video_model="bytedance/seedance-2.5/text-to-video",
        )
    ],
    description="You are an AI agent that can generate images and videos using the WaveSpeed API.",
    instructions=[
        "When the user asks you to create an image, use the `generate_image` tool.",
        "When the user asks you to create a video, use the `generate_video` tool.",
        "Return the URL as raw to the user.",
        "Don't convert the media URL to markdown or anything else.",
    ],
    markdown=True,
)

# ---------------------------------------------------------------------------
# Run Agent
# ---------------------------------------------------------------------------
if __name__ == "__main__":
    wavespeed_agent.print_response(
        "Generate an image of a lighthouse on a stormy coast"
    )
```

## Run the Example

<Steps>
  <Snippet file="create-venv-step.mdx" />

  <Step title="Install dependencies">
    ```bash theme={null}
    uv pip install -U agno openai wavespeed
    ```
  </Step>

  <Step title="Export your API keys">
    <CodeGroup>
      ```bash Mac/Linux theme={null}
      export OPENAI_API_KEY="your_openai_api_key_here"
      export WAVESPEED_API_KEY="your_wavespeed_api_key_here"
      ```

      ```bash Windows theme={null}
      $Env:OPENAI_API_KEY="your_openai_api_key_here"
      $Env:WAVESPEED_API_KEY="your_wavespeed_api_key_here"
      ```
    </CodeGroup>
  </Step>

  <Step title="Run the example">
    Save the code above as `wavespeed_tools.py`, then run:

    ```bash theme={null}
    python wavespeed_tools.py
    ```
  </Step>
</Steps>

Full source: [cookbook/91\_tools/wavespeed\_tools.py](https://github.com/agno-agi/agno/blob/v3.0.4/cookbook/91_tools/wavespeed_tools.py)
