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