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

# download • AI Agent SDK

> download: Download a video to a file.

# download

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**VideoAgent**](../classes/VideoAgent) class in the [**video\_agent**](../modules/video_agent) module.

Download a video to a file.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def download(video_id: str, output: str) -> str
```

## Parameters

<ParamField query="video_id" type="str" required={true}>
  The video ID to download
</ParamField>

<ParamField query="output" type="str" required={true}>
  Path to save the video file
</ParamField>

### Returns

<ResponseField name="Returns" type="str">
  Path to the saved file
</ResponseField>

## Uses

* `content`
* `f.write`

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/agent/video_agent.py#L670">
  `praisonaiagents/agent/video_agent.py` at line 670
</Card>
