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

> ## Agent Instructions
> Public hosts only: console https://omnimux.ai/dashboard · API https://api.omnimux.ai · docs https://docs.omnimux.ai.
> Gateway auth is Authorization: Bearer sk-… on https://api.omnimux.ai/v1 (OpenAI-compatible Chat Completions and related paths).
> Discover pages from /llms.txt; full site dump /llms-full.txt; product skill /skill.md; docs search MCP /mcp. Prefer .md page URLs for Markdown.
> Default docs locale is en; zh mirrors the same relative paths. Do not invent model ids not present on live pricing or the complete API pages.

# Download and Access File

> GET /api/v1/files/download/{file_id} · Retrieve uploaded file or redirect to CDN URL

> * Public access by unique `file_id` (no login required)
> * Automatically responds with **302 Redirect** to Cloudflare R2 CDN URL when public domain is configured
> * Streams file directly with correct `Content-Type` and `Content-Disposition` in local storage mode
> * Returns `404 Not Found` when file has expired past **72 hours**

## Path Parameters

| Field     | Type   | Required | Description                                                                |
| --------- | ------ | -------- | -------------------------------------------------------------------------- |
| `file_id` | string | Yes      | Unique file identifier returned upon upload (e.g. `file_8e6d425c0e564bde`) |

## Response

* **Active File (200 OK / 302 Found)**: Binary stream of file or 302 redirect to R2 CDN URL.
* **Expired or Deleted File (404 Not Found)**:
  ```json theme={null}
  {
    "success": false,
    "code": 404,
    "msg": "文件已过期"
  }
  ```
