Felo API PlatformFelo API Platform
v0.4.0
OpenAPI 3.1.0

Lấy trạng thái tác vụ tạo hình ảnh

Máy chủ:https://openapi.felo.ai
Thư viện client

Lấy trạng thái tác vụ tạo hình ảnh

​

Đọc tác vụ hình ảnh được lưu trữ lâu dài của bên gọi đã xác thực.

Tham số đường dẫn
  • task_id
    Kiểu: string
    bắt buộc

    ID tác vụ do POST /api/v1/videos/generations trả về.

Phản hồi
  • 200
    Kiểu: object · ImageGenerationTask

    Trạng thái hiện tại của tác vụ

    • kind
      enum
      const:  
      image
      bắt buộc
      giá trị
      • image
    • outputs
      Kiểu: array string[] Định dạng: uri
      bắt buộc
    • status
      Kiểu: string enum
      bắt buộc
      giá trị
      • queued
      • running
      • succeeded
      • failed
      • interrupted
    • task_id
      Kiểu: string
      bắt buộc
    • error
      Kiểu: object

      Có mặt khi tác vụ thất bại.

      • message
        Kiểu: string
      • type
        Kiểu: string
    application/json
  • 401
    Kiểu: object · GenerationError

    Khóa API Felo không hợp lệ hoặc bị thiếu

    Phong bì lỗi tương thích OpenAI.

    • error
      Kiểu: object
      • message
        Kiểu: string
        bắt buộc
      • type
        Kiểu: string enum
        bắt buộc
        giá trị
        • invalid_request_error
        • server_error
      • code
        Kiểu: string
      • param
        Kiểu: string có thể null
    application/json
  • 404
    Kiểu: object · GenerationError

    Không tìm thấy tác vụ cho tài khoản này

    Phong bì lỗi tương thích OpenAI.

    • error
      Kiểu: object
      • message
        Kiểu: string
        bắt buộc
      • type
        Kiểu: string enum
        bắt buộc
        giá trị
        • invalid_request_error
        • server_error
      • code
        Kiểu: string
      • param
        Kiểu: string có thể null
    application/json
  • 503
    Kiểu: object · GenerationError

    Dịch vụ tạo nội dung tạm thời không khả dụng

    Phong bì lỗi tương thích OpenAI.

    • error
      Kiểu: object
      • message
        Kiểu: string
        bắt buộc
      • type
        Kiểu: string enum
        bắt buộc
        giá trị
        • invalid_request_error
        • server_error
      • code
        Kiểu: string
      • param
        Kiểu: string có thể 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