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

Video mở rộng

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}/extend:
post:
summary: Video mở rộng
deprecated: false
description: Kéo dài thời gian tạo dựa trên các video hiện có.
operationId: luma_luma_generations_extend
tags:
- OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Video/Luma/Định dạng API chính thức
- Luma
parameters:
- name: id
in: path
description: ID tác vụ video gốc
required: true
example: ''
schema:
type: string
requestBody:
content:
application/json:
schema:
type: object
properties:
prompt:
type: string
description: Mô tả về tiện ích mở rộng (không bắt buộc)
user_prompt:
type: string
description: Mô tả tiện ích mở rộng (định dạng proxy)
refName: PostLumaGenerationsIdExtendRequest
x-apifox-orders:
- prompt
- user_prompt
x-apidog-orders:
- prompt
- user_prompt
examples:
example_single:
value:
user_prompt: Tiếp tục cảnh đại bàng đáp xuống một vách đá
summary: example_single
description: mở rộng video
responses:
'200':
description: Tác vụ tiện ích mở rộng đã được tạo 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: Tác vụ tiện ích mở rộng đã được tạo thành công
'400':
description: Yêu cầu không hợp lệ hoặc xác thực thất bại
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: >-
Yêu cầu không hợp lệ (mã yêu cầu:
20260805120000123456789AbCdEfGh)
type: new_api_error
headers: {}
x-apidog-name: Yêu cầu không hợp lệ hoặc xác thực thất bại
'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/Định dạng API chính thức
x-apidog-status: released
x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208979-run
components:
schemas: {}
securitySchemes: {}
servers:
- url: https://api.openaihub.net
description: Prod Env
security: []