取得影片工作
get/v1/videos/{task_id}
與 OpenAI 相容的端點,回傳影片工作的詳細狀態。
驗證
把 OLETOKEN 的 API Key 作為 Bearer Token 放進 Authorization 請求標頭。金鑰在控制台的「API 金鑰」頁建立。
Authorization: Bearer $OLETOKEN_API_KEY請求參數
| 欄位 | 類型 | 必填 | 說明 |
|---|---|---|---|
| task_idpath | string | 影片工作 ID |
回應
200已取得影片工作狀態
| 欄位 | 類型 | 必填 | 說明 |
|---|---|---|---|
| id | string | — | |
| object | string | — | |
| model | string | — | |
| status | string | — | |
| progress | integer | — | |
| created_at | integer | — | |
| seconds | string | — |
404找不到工作
| 欄位 | 類型 | 必填 | 說明 |
|---|---|---|---|
| error | object | — | — |
| message | string | — | 錯誤訊息 |
| type | string | — | 錯誤類型 |
| param | string | null | — | 相關的參數 |
| code | string | null | — | 錯誤代碼 |
請求範例
curl -X GET 'https://api.oletoken.ai/v1/videos/{task_id}' \
-H "Authorization: Bearer $OLETOKEN_API_KEY"
