Vocu Developers
🇺🇸 English
  • 🇺🇸 English
  • 🇨🇳 简体中文
Api Docs(Current)User GuideBack To APP
Api Docs(Current)User GuideBack To APP
🇺🇸 English
  • 🇺🇸 English
  • 🇨🇳 简体中文
  1. Voice Generation
  • Overview
  • Authentication Method
  • Voice Character
    • Create a new voice character
      POST
    • Add a style to the voice character with the specified ID
      POST
    • Upload avatar for the voice character with the specified ID
      POST
    • Add a voice character to the account via a share ID
      POST
    • Get the list of voice characters for the current user
      GET
    • Get details of the voice character with the specified ID
      GET
    • Get the one-time share link ID for the specified voice character ID
      GET
    • Delete Voice Character with the specified ID
      DELETE
    • Delete Style of the specified ID for the Voice Character with the specified ID
      DELETE
  • Voice Generation
    • Synchronous real-time voice generation
      POST
    • Create Asynchronous Voice Generation Task
      POST
    • Get the list of asynchronous generation tasks for the current user
      GET
    • Get the details of an asynchronous generation task by ID
      GET
    • Delete an asynchronous generation task by ID
      DELETE
  • User Account
    • Get current user account information
      GET
  • Content Template
    • Create New Template
      POST
    • Update Template with Specified ID
      POST
    • Get User's Template List
      GET
    • Get Template Details with Specified ID
      GET
    • Delete Template with Specified ID
      DELETE
  1. Voice Generation

Synchronous real-time voice generation

POST
https://v1.vocu.ai/api/tts/simple-generate

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json

Example
{
    "voiceId": "6765cf49-c73a-4fae-985d-806b782ec4f2",
    "text": "Hello there, the weather is really nice today!",
    "promptId": "default",
    "preset": "balance",
    "break_clone": true,
    "language": "auto",
    "vivid": false,
    "emo_switch": [
        0,
        0,
        0,
        0,
        0
    ],
    "speechRate": 1,
    "flash": false,
    "stream": false,
    "seed": -1,
    "srt": false
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://v1.vocu.ai/api/tts/simple-generate' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "voiceId": "6765cf49-c73a-4fae-985d-806b782ec4f2",
    "text": "Hello there, the weather is really nice today!",
    "promptId": "default",
    "preset": "balance",
    "break_clone": true,
    "language": "auto",
    "vivid": false,
    "emo_switch": [
        0,
        0,
        0,
        0,
        0
    ],
    "speechRate": 1,
    "flash": false,
    "stream": false,
    "seed": -1,
    "srt": false
}'

Responses

🟢200Audio successfully generated
application/json
Body

Example
{
    "status": 200,
    "message": "OK",
    "data": {
        "id": "6e2818f1-0817-4425-896b-13fed645a2ce",
        "audio": "https://storage.vocu.ai/generate/f6d422f8-0d1c-4a26-8ee3-a255eb25ebeb/12a2dcfd-9aa8-42b6-bd47-5f6fa3a235cc.mp3",
        "streamUrl": "https://storage.vocu.ai/generate/d590af82-4889-4ef2-91a5-1021022c85b6/stream.mp3?auth=1d105b1b-762a-4e86-8b3c-6c8c2d41b0fe",
        "credit_used": 44
    }
}
🟠400Request Parameter Error
🟠403Insufficient remaining points
🟠404Specified model or voice not found
🔴500Internal Server Error
Modified at 2025-11-09 12:11:15
Previous
Delete Style of the specified ID for the Voice Character with the specified ID
Next
Create Asynchronous Voice Generation Task