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