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
      enum
      константа:  
      video
      обязательно
      значения
      • video
    • outputs
      Тип: array string[] Формат: uri
      обязательно
    • status
      Тип: string enum
      обязательно
      значения
      • 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 enum
        обязательно
        значения
        • 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 enum
        обязательно
        значения
        • 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 enum
        обязательно
        значения
        • 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