Felo API PlatformFelo API Platform
v0.3.0
OpenAPI 3.1.0

Poll a video generation task

伺服器:https://openapi.felo.ai
用戶端程式庫

Poll a video generation task

​

Returns the current task status. When status is succeeded, outputs contains signed media URLs (https://openapi.felo.ai/api/v1/media/{file_id}?exp=...&sig=...) that can be downloaded anonymously. Poll at 5-10 second intervals; the task itself continues in the background.

路徑參數
  • task_id
    類型: string
    必填

    Task id returned by POST /api/v1/videos/generations.

回應
  • 200
    類型: object · VideoGenerationTask

    Current task state

    • kind
      列舉
      常數:  
      video
      必填
      值
      • video
    • outputs
      類型: array string[] 格式: uri
      必填
    • status
      類型: string 列舉
      必填
      值
      • queued
      • running
      • succeeded
      • failed
      • interrupted
    • task_id
      類型: string
      必填
    • error
      類型: object

      Present when the task failed.

      • message
        類型: string
      • type
        類型: string
    application/json
  • 401
    類型: object · GenerationError

    Invalid or missing Felo API key

    OpenAI-compatible error envelope.

    • error
      類型: object
      • message
        類型: string
        必填
      • type
        類型: string 列舉
        必填
        值
        • invalid_request_error
        • server_error
      • code
        類型: string
      • param
        類型: string 可為 null
    application/json
  • 404
    類型: object · GenerationError

    Task not found for this account

    OpenAI-compatible error envelope.

    • error
      類型: object
      • message
        類型: string
        必填
      • type
        類型: string 列舉
        必填
        值
        • invalid_request_error
        • server_error
      • code
        類型: string
      • param
        類型: string 可為 null
    application/json
  • 503
    類型: object · GenerationError

    Generation service temporarily unavailable

    OpenAI-compatible error envelope.

    • error
      類型: object
      • message
        類型: string
        必填
      • type
        類型: string 列舉
        必填
        值
        • invalid_request_error
        • server_error
      • code
        類型: string
      • param
        類型: string 可為 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