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

con người kỹ thuật số

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:
/kling/v1/videos/avatar/image2video:
post:
summary: con người kỹ thuật số
deprecated: false
description: ''
operationId: post-kling-v1-videos-avatar-image2video
tags:
- OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Video/Kling/con người kỹ thuật số
- kling
parameters:
- name: Content-Type
in: header
description: Content-Type của phần thân yêu cầu, thường là application/json
required: false
example: application/json
schema:
type: string
- name: Authorization
in: header
description: Khóa API Bearer
required: false
example: Bearer {{YOUR_API_KEY}}
schema:
type: string
requestBody:
content:
application/json:
schema:
type: object
required:
- image
- audio_id
- sound_file
- prompt
- mode
- callback_url
- external_task_id
properties:
audio_id:
type: string
description: >-
ID âm thanh từ API xem trước. Chỉ âm thanh trong 30 ngày gần
nhất, có thời lượng 2–300 giây. Phải có chính xác một trong
hai: audio_id hoặc sound_file
callback_url:
type: string
description: URL gọi lại được kích hoạt khi tác vụ hoàn tất
external_task_id:
type: string
description: >-
Mã định danh tác vụ bên ngoài tùy chỉnh để đối chiếu phía
nghiệp vụ
image:
type: string
description: >-
Hình ảnh tham chiếu của người kỹ thuật số. Base64 hoặc URL
có thể truy cập; .jpg/.jpeg/.png; tối đa 10MB; cạnh tối
thiểu 300px; tỷ lệ khung hình 1:2.5–2.5:1
mode:
type: string
description: chế độ tạo video
prompt:
type: string
description: lời nhắc văn bản tích cực
sound_file:
type: string
description: >-
Tệp âm thanh. Dữ liệu Base64 hoặc URL có thể truy cập;
.mp3/.wav/.m4a/.aac; ≤5MB; thời lượng 2–300 giây. Chỉ được
cung cấp chính xác một trong hai trường audio_id hoặc
sound_file. Định dạng/kích thước không hợp lệ hoặc vấn đề về
nội dung sẽ trả về lỗi
x-apifox-orders:
- audio_id
- callback_url
- external_task_id
- image
- mode
- prompt
- sound_file
x-apidog-orders:
- audio_id
- callback_url
- external_task_id
- image
- mode
- prompt
- sound_file
examples:
example:
value:
audio_id: '825455158141661278'
callback_url: ''
external_task_id: ''
image: >-
https://h2.inkwai.com/bs2/upload-ylab-stunt/se/ai_portal_queue_mmu_image_upscale_aiweb/3214b798-e1b4-4b00-b7af-72b5b0417420_raw_image_0.jpg
mode: std
prompt: ''
sound_file: ''
summary: example
responses:
'200':
description: ''
content:
application/json:
schema:
type: object
x-apidog-orders: []
examples:
example:
summary: example
value:
code: 0
data:
task_id: task_example_001
message: thành công
headers: {}
x-apidog-name: ''
'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/Kling/con người kỹ thuật số
x-apidog-status: released
x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45209021-run
components:
schemas: {}
securitySchemes: {}
servers:
- url: https://api.openaihub.net
description: Prod Env
security: []