Thăm dò trạng thái tác vụ tạo video
Trả về trạng thái hiện tại của tác vụ. Khi trạng thái là succeeded, outputs chứa các URL phương tiện đã ký (https://openapi.felo.ai/api/v1/media/{file_id}?exp=...&sig=...) có thể tải xuống ẩn danh. Thăm dò cách nhau 5-10 giây; bản thân tác vụ vẫn tiếp tục chạy nền.
Tham số đường dẫn
- Kiểu: stringtask
_id bắt buộcID tác vụ do POST /api/v1/videos/generations trả về.
Phản hồi
- Kiểu: object · VideoGenerationTask200
Trạng thái hiện tại của tác vụ
- enumkindconst:videobắt buộcgiá trị
- video
- Kiểu: array string[] Định dạng: urioutputsbắt buộc
- Kiểu: string enumstatusbắt buộcgiá trị
- queued
- running
- succeeded
- failed
- interrupted
- Kiểu: stringtask
_id bắt buộc - Kiểu: objecterror
Có mặt khi tác vụ thất bại.
- messageKiểu: string
- typeKiểu: string
application/json - Kiểu: object · GenerationError401
Khóa API Felo không hợp lệ hoặc bị thiếu
Phong bì lỗi tương thích OpenAI.
- Kiểu: objecterror
- messageKiểu: stringbắt buộc
- typeKiểu: string enumbắt buộcgiá trị
- invalid
_request _error - server
_error
- codeKiểu: string
- paramKiểu: string có thể null
application/json - Kiểu: object · GenerationError404
Không tìm thấy tác vụ cho tài khoản này
Phong bì lỗi tương thích OpenAI.
- Kiểu: objecterror
- messageKiểu: stringbắt buộc
- typeKiểu: string enumbắt buộcgiá trị
- invalid
_request _error - server
_error
- codeKiểu: string
- paramKiểu: string có thể null
application/json - Kiểu: object · GenerationError503
Dịch vụ tạo nội dung tạm thời không khả dụng
Phong bì lỗi tương thích OpenAI.
- Kiểu: objecterror
- messageKiểu: stringbắt buộc
- typeKiểu: string enumbắt buộcgiá trị
- invalid
_request _error - server
_error
- codeKiểu: string
- paramKiểu: string có thể null
application/json
Request Example for get/api/v1/videos/generations/{task_id}
curl 'https://openapi.felo.ai/api/v1/videos/generations/{task_id}' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
"task_id": "string",
"status": "queued",
"kind": "video",
"outputs": [
"https://example.com"
],
"error": {
"message": "string",
"type": "string"
}
}