Felo API PlatformFelo API Platform
v0.4.0
OpenAPI 3.1.0

Get an image generation task

서버:https://openapi.felo.ai
클라이언트 라이브러리

Get an image generation task

​

Read the persistent image task for the authenticated caller.

경로 매개변수
  • task_id
    유형: string
    필수

    Task id returned by POST /api/v1/videos/generations.

응답
  • 200
    유형: object · ImageGenerationTask

    Current task state

    • kind
      열거형
      상수:  
      image
      필수
      값
      • image
    • 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/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"
  }
}
Get an image generation task