# তৈরি করা মিডিয়া ফাইল ডাউনলোড করুন (বেনামি)

**API:** Model API

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

তৈরি করা ভিডিও (বা ইমেজ) ফাইল স্ট্রিম করে। এই এন্ডপয়েন্ট বেনামি: URL-এর HMAC স্বাক্ষরই প্রমাণীকরণ। সবসময় টাস্কের outputs অ্যারেতে ফেরত দেওয়া সম্পূর্ণ URL ব্যবহার করুন; নিজে exp/sig তৈরি করবেন না। রিজিউমের জন্য Range রিকোয়েস্ট সমর্থন করে। স্বাক্ষর বা আপস্ট্রিম 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) | টাস্ক আউটপুট URL থেকে পাওয়া স্বাক্ষরিত ফাইল id। |
| `exp` | query | yes | integer, (int64) | আউটপুট URL থেকে পাওয়া স্বাক্ষরের মেয়াদ শেষের সময় (ইউনিক্স সেকেন্ড)। |
| `sig` | query | yes | string | আউটপুট 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 — অবৈধ রিকোয়েস্ট (যেমন ইচ্ছামতো ?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 — মিডিয়ার মেয়াদ শেষ বা আপস্ট্রিমে আর পাওয়া যাচ্ছে না

**application/json**

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

### 429 — এই ফাইলের জন্য রেট সীমিত

**application/json**

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

### 502 — আপস্ট্রিম থেকে মিডিয়া আনা ব্যর্থ হয়েছে

**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"
        }
      }
    }
  }
}
```
