Service | Price (USD) |
---|---|
Text-to-Speech | $0.025 per 1000 characters |
{
"model": "Qubico/tts",
"task_type": "zero-shot",
"input": {
"gen_text": "string",
"ref_audio": "http://example.com",
"ref_text": "string"
},
"config": {
"service_mode": "public",
"webhook_config": {
"endpoint": "http://example.com",
"secret": "string"
}
}
}
curl --location --request POST 'https://api.piapi.ai/api/v1/task' \
--header 'x-api-key;' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "Qubico/tts",
"task_type": "zero-shot",
"input": {
"gen_text": "string",
"ref_audio": "http://example.com",
"ref_text": "string"
},
"config": {
"service_mode": "public",
"webhook_config": {
"endpoint": "http://example.com",
"secret": "string"
}
}
}'
{
"code": 200,
"message": "string",
"data": {
"task_id": "736fde4d-9029-4915-8189-01353d6982cb",
"model": "string",
"task_type": "string",
"status": "string",
"config": {},
"input": {},
"output": {
"audio_url": "http://example.com",
"status": 0,
"message": "string"
},
"meta": {
"created_at": "2019-08-24T14:15:22Z",
"started_at": "2019-08-24T14:15:22Z",
"ended_at": "2019-08-24T14:15:22Z",
"usage": {
"type": "string",
"consume": 0
}
}
}
}