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"
}
}