Video sang âm thanh
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 Specification
Phần tiêu đề “OpenAPI Specification”openapi: 3.0.1info: title: '' description: '' version: 1.0.0paths: /kling/v1/audio/video-to-audio: post: summary: Video sang âm thanh deprecated: false description: '' operationId: post-kling-v1-audio-video-to-audio tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Video/Kling/Video sang âm thanh - 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 properties: asmr_mode: type: boolean description: >- Chế độ ASMR; tăng cường hiệu ứng âm thanh chi tiết cho các cảnh sống động. true=bật, false=tắt (mặc định) bgm_prompt: type: string description: Câu lệnh tạo BGM 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ụ sound_effect_prompt: type: string description: Lời nhắc tạo hiệu ứng âm thanh video_id: type: string description: >- ID của video do Kling AI tạo, chỉ áp dụng cho các video trong 30 ngày gần nhất có thời lượng 3.0–20.0 giây video_url: type: string description: >- URL của video đã tải lên. Chỉ cung cấp chính xác một trong hai giá trị này hoặc `video_id`. Định dạng video chỉ hỗ trợ MP4/MOV, kích thước tệp ≤100M, thời lượng video từ 3.0 đến 20.0 giây. x-apifox-orders: - asmr_mode - bgm_prompt - callback_url - external_task_id - sound_effect_prompt - video_id - video_url x-apidog-orders: - asmr_mode - bgm_prompt - callback_url - external_task_id - sound_effect_prompt - video_id - video_url examples: example: value: asmr_mode: false bgm_prompt: '' callback_url: '' external_task_id: '' sound_effect_prompt: Giọng nói của người phù hợp với video video_id: '825406034503692376' video_url: '' 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/Video sang âm thanh x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45209025-runcomponents: schemas: {} securitySchemes: {}servers: - url: https://api.openaihub.net description: Prod Envsecurity: []