Tạo tác vụ văn bản thành âm thanh
POST
/ent/v2/text2audio
- Tài liệu: https://platform.vidu.cn/docs/text-to-audio
- Tạo tác vụ văn bản thành âm thanh
Authorizations
bearer
Type
HTTP (bearer)
Request Body
application/json
prompt
string
Required
Text prompt describing the audio to generate. Max 1500 characters
model
string
Required
Model name. Allowed: audio1.0
callback_url
string
Callback URL (POST). Set when creating the task; Vidu sends status updates. Body matches query task API.
Status values: processing, success (retried up to 3 times), failed (retried up to 3 times).
Vidu uses callback signature authentication
duration
string
Audio duration. Default 10; range 2–10 seconds
seed
string
Random seed. If omitted or 0, random; fixed value gives deterministic output
Responses
Thành công
application/json
object
task_id
string
Required
state
string
Required
model
string
Required
prompt
string
Required
duration
integer
Required
seed
integer
Required
created_at
string
Required
credits
integer
Required