Lấy trạng thái tác vụ tạo hình ảnh
Đọc tác vụ hình ảnh được lưu trữ lâu dài của bên gọi đã xác thực.
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 · ImageGenerationTask200
Trạng thái hiện tại của tác vụ
- enumkindconst:imagebắt buộcgiá trị
- image
- 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/images/generations/{task_id}
curl 'https://openapi.felo.ai/api/v1/images/generations/{task_id}' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
"task_id": "string",
"status": "queued",
"kind": "image",
"outputs": [
"https://example.com"
],
"error": {
"message": "string",
"type": "string"
}
}