Bỏ qua để đến nội dung

Truy vấn một tác vụ duy nhất

Xem Markdownllms.txt

API origin: https://api.openaihub.net. Chọn đúng nhóm API và model. Thông số dưới đây là bản tham chiếu kỹ thuật; chưa phải kết quả kiểm thử từng endpoint bằng tài khoản của bạn.

openapi: 3.0.1
info:
title: ''
description: ''
version: 1.0.0
paths:
/luma/generations/{id}:
get:
summary: Truy vấn một tác vụ duy nhất
deprecated: false
description: Truy van trang thai va ket qua tao video dua tren ma tac vu.
operationId: luma_luma_generations
tags:
- OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Video/Luma/Các tác vụ truy vấn
- Luma
parameters:
- name: id
in: path
description: ID được trả về khi tạo tác vụ
required: true
example: a1b2c3d4-e5f6-7890-abcd-ef1234567890
schema:
type: string
responses:
'200':
description: thành công
content:
application/json:
schema:
type: object
properties:
batch_id:
type: string
description: Mã lô
created_at:
type: string
format: date-time
description: Thời gian tạo
estimate_wait_seconds:
type: integer
description: >-
Thời gian chờ ước tính (giây) Thời gian chờ ước tính
(giây)
nullable: true
id:
type: string
description: Mã tác vụ Mã tác vụ
last_frame:
type: object
properties:
url:
type: string
description: URL tài nguyên
description: URL hình ảnh của khung hình cuối
x-apifox-orders:
- url
x-apidog-orders:
- url
nullable: true
prompt:
type: string
description: Các từ dùng trong lời nhắc Các từ dùng trong lời nhắc
queue_state:
type: string
description: Trạng thái hàng đợi
nullable: true
state:
type: string
enum:
- queued
- pending
- processing
- completed
- failed
description: trạng thái tác vụ trạng thái tác vụ
thumbnail:
type: object
properties:
url:
type: string
description: URL tài nguyên
description: URL hình thu nhỏ
x-apifox-orders:
- url
x-apidog-orders:
- url
nullable: true
video:
type: object
properties:
height:
type: integer
description: Chiều cao (pixel)
url:
type: string
description: Tạo URL video (khả dụng khi state=completed)
width:
type: integer
description: Chiều rộng (pixel)
description: URL hoặc mã định danh video
x-apifox-orders:
- height
- url
- width
x-apidog-orders:
- height
- url
- width
nullable: true
refName: LumaGenerationResponse
x-apifox-orders:
- batch_id
- created_at
- estimate_wait_seconds
- id
- last_frame
- prompt
- queue_state
- state
- thumbnail
- video
x-apidog-orders:
- batch_id
- created_at
- estimate_wait_seconds
- id
- last_frame
- prompt
- queue_state
- state
- thumbnail
- video
examples:
example:
summary: example
value:
batch_id: chuỗi
created_at: chuỗi
estimate_wait_seconds: 0
id: string
last_frame:
url: string
prompt: chuỗi
queue_state: chuỗi
state: đã xếp hàng
thumbnail:
url: string
video:
height: 0
url: string
width: 0
headers: {}
x-apidog-name: thành công
'401':
description: Khóa API bị thiếu hoặc không hợp lệ
content:
application/json:
schema:
type: object
required:
- error
properties:
error:
type: object
required:
- message
- type
properties:
message:
type: string
description: Thông báo lỗi (thường kết thúc bằng mã yêu cầu)
type:
type: string
description: Loại lỗi; các lỗi cổng cục bộ thường là new_api_error
examples:
- new_api_error
x-apifox-orders:
- message
- type
x-apidog-orders:
- message
- type
refName: NewApiError
x-apifox-orders:
- error
x-apidog-orders:
- error
examples:
example:
summary: example
value:
error:
message: >-
Mã thông báo không hợp lệ (request id:
20260805120000123456789AbCdEfGh)
type: new_api_error
headers: {}
x-apidog-name: Khóa API bị thiếu hoặc không hợp lệ
security: []
x-apidog-folder: OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Video/Luma/Các tác vụ truy vấn
x-apidog-status: released
x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208980-run
components:
schemas: {}
securitySchemes: {}
servers:
- url: https://api.openaihub.net
description: Prod Env
security: []