# जनरेट की गई मीडिया फ़ाइल डाउनलोड करें (अनाम)

**API:** Model API

**Endpoint:** `GET /api/v1/media/{file_id}`

जनरेट की गई वीडियो (या इमेज) फ़ाइल को स्ट्रीम करता है। यह endpoint अनाम है: प्रमाणीकरण URL में मौजूद HMAC सिग्नेचर है। हमेशा टास्क outputs सरणी में लौटाया गया पूरा URL उपयोग करें; exp/sig स्वयं न बनाएं। फिर से शुरू करने के लिए Range requests समर्थित हैं। सिग्नेचर या upstream TTL समाप्त होने पर मीडिया हटा दिया जाता है या अमान्य हो जाता है।

## Base URL

- `https://openapi.felo.ai` — प्रोडक्शन

## Authentication

No authentication required — this endpoint is anonymous.

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `file_id` | path | yes | string, (uuid) | टास्क output URL से साइन किया गया file id। |
| `exp` | query | yes | integer, (int64) | output URL से सिग्नेचर की समाप्ति (unix सेकंड)। |
| `sig` | query | yes | string | output URL से HMAC सिग्नेचर। |

## Responses

### 200 — मीडिया फ़ाइल

**application/octet-stream**

Schema: string, (binary)

```json
{
  "type": "string",
  "format": "binary"
}
```

**video/mp4**

Schema: string, (binary)

```json
{
  "type": "string",
  "format": "binary"
}
```

### 400 — अमान्य request (जैसे मनमाना ?url= अनुमत नहीं है)

**application/json**

Schema: `GenerationError` (`#/components/schemas/GenerationError`)

### 403 — अमान्य या समाप्त सिग्नेचर

**application/json**

Schema: `GenerationError` (`#/components/schemas/GenerationError`)

### 404 — अज्ञात मीडिया फ़ाइल

**application/json**

Schema: `GenerationError` (`#/components/schemas/GenerationError`)

### 410 — मीडिया समाप्त हो गया है या upstream अब उपलब्ध नहीं है

**application/json**

Schema: `GenerationError` (`#/components/schemas/GenerationError`)

### 429 — इस फ़ाइल के लिए दर सीमा लागू

**application/json**

Schema: `GenerationError` (`#/components/schemas/GenerationError`)

### 502 — upstream मीडिया फ़ेच विफल रहा

**application/json**

Schema: `GenerationError` (`#/components/schemas/GenerationError`)

## Schema definitions

### GenerationError

`#/components/schemas/GenerationError`

```json
{
  "type": "object",
  "description": "OpenAI-संगत एरर एनवेलप।",
  "properties": {
    "error": {
      "type": "object",
      "required": [
        "message",
        "type"
      ],
      "properties": {
        "message": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "invalid_request_error",
            "server_error"
          ]
        },
        "param": {
          "type": "string",
          "nullable": true
        },
        "code": {
          "type": "string"
        }
      }
    }
  }
}
```
