Get an image generation task
Read the persistent image task for the authenticated caller.
路径参数
- 类型: stringtask
_id 必填Task id returned by POST /api/v1/videos/generations.
响应
- 类型: object · ImageGenerationTask200
Current task state
- 枚举kind常量:image必填值
- image
- 类型: 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/images/generations/{task_id}
curl 'https://openapi.felo.ai/api/v1/images/generations/{task_id}' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
"task_id": "string",
"status": "queued",
"kind": "image",
"outputs": [
"https://example.com"
],
"error": {
"message": "string",
"type": "string"
}
}