---
agent:
  instructions: "Use this search API to find relevant Cook Studio content (product, pricing, FAQ, blog articles, example videos) with keywords or natural-language queries instead of crawling pages. Results are returned in Markdown."
  endpoint: "https://cookstudio.ai/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
title: "Download a video"
description: "A signed link to the finished MP4, valid for 15 minutes. Ask again for a fresh link when it expires."
---
# Download a video

A signed link to the finished MP4, valid for 15 minutes. Ask again for a fresh link when it expires.

`GET https://app.cookstudio.ai/api/v1/videos/{id}/download`

## Query parameters

| Name | Description |
| --- | --- |
| `inline` | `1` to stream in a player instead of downloading |

## Request

```bash
curl https://app.cookstudio.ai/api/v1/videos/6f1c…/download -H "Authorization: Bearer $KEY"
```

## Response

```json
{"object": "download", "id": "6f1c…", "url": "https://…", "expires_at": "2026-12-04T10:45:00Z"}
```

## Errors

| Status | Code | Meaning |
| --- | --- | --- |
| 404 | `not_found` | No such video or generation on this account. |
| 409 | `not_ready` | The video or file is not finished yet. Keep polling. |
| 503 | `service_unavailable` | Production is paused or unreachable. Nothing was charged; retry in a few minutes. |

All errors share one shape; see [Errors](https://cookstudio.ai/docs/errors).

Canonical: https://cookstudio.ai/docs/reference/download-video
