Felo API PlatformFelo API Platform
v0.4.0
OpenAPI 3.1.0

Thăm dò trạng thái tác vụ tạo video

Máy chủ:https://openapi.felo.ai
Thư viện client

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
  • task_id
    Kiểu: string
    bắt buộc

    ID tác vụ do POST /api/v1/videos/generations trả về.

Phản hồi
  • 200
    Kiểu: object · VideoGenerationTask

    Trạng thái hiện tại của tác vụ

    • kind
      enum
      const:  
      video
      bắt buộc
      giá trị
      • video
    • outputs
      Kiểu: array string[] Định dạng: uri
      bắt buộc
    • status
      Kiểu: string enum
      bắt buộc
      giá trị
      • queued
      • running
      • succeeded
      • failed
      • interrupted
    • task_id
      Kiểu: string
      bắt buộc
    • error
      Kiểu: object

      Có mặt khi tác vụ thất bại.

      • message
        Kiểu: string
      • type
        Kiểu: string
    application/json
  • 401
    Kiểu: object · GenerationError

    Khóa API Felo không hợp lệ hoặc bị thiếu

    Phong bì lỗi tương thích OpenAI.

    • error
      Kiểu: object
      • message
        Kiểu: string
        bắt buộc
      • type
        Kiểu: string enum
        bắt buộc
        giá trị
        • invalid_request_error
        • server_error
      • code
        Kiểu: string
      • param
        Kiểu: string có thể null
    application/json
  • 404
    Kiểu: object · GenerationError

    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.

    • error
      Kiểu: object
      • message
        Kiểu: string
        bắt buộc
      • type
        Kiểu: string enum
        bắt buộc
        giá trị
        • invalid_request_error
        • server_error
      • code
        Kiểu: string
      • param
        Kiểu: string có thể null
    application/json
  • 503
    Kiểu: object · GenerationError

    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.

    • error
      Kiểu: object
      • message
        Kiểu: string
        bắt buộc
      • type
        Kiểu: string enum
        bắt buộc
        giá trị
        • invalid_request_error
        • server_error
      • code
        Kiểu: string
      • param
        Kiể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"
  }
}
Poll a video generation task