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.
路径参数
- 类型: stringtask
_id 必填Task id returned by POST /api/v1/videos/generations.
响应
- 类型: object · VideoGenerationTask200
Current task state
- 枚举kind常量:video必填值
- video
- 类型: array string[] 格式: urioutputs必填
- 类型: string 枚举status必填值
- queued
- running
- succeeded
- failed
- interrupted
- 类型: stringtask
_id 必填 - 类型: objecterror
Present when the task failed.
- message类型: string
- type类型: string
application/json - 类型: object · GenerationError401
Invalid or missing Felo API key
OpenAI-compatible error envelope.
- 类型: objecterror
- message类型: string必填
- type类型: string 枚举必填值
- invalid
_request _error - server
_error
- code类型: string
- param类型: string 可为 null
application/json - 类型: object · GenerationError404
Task not found for this account
OpenAI-compatible error envelope.
- 类型: objecterror
- message类型: string必填
- type类型: string 枚举必填值
- invalid
_request _error - server
_error
- code类型: string
- param类型: string 可为 null
application/json - 类型: object · GenerationError503
Generation service temporarily unavailable
OpenAI-compatible error envelope.
- 类型: objecterror
- 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"
}
}