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
  • Low latency WebSocket real-time generation
  • Voice character
    • Create new voice character
      POST
    • Add style to voice character with specified ID
      POST
    • Upload avatar for voice character with specified ID
      POST
    • Add voice character to account via share ID
      POST
    • Get current user's voice character list
      GET
    • Get voice character details for specified ID
      GET
    • Get one-time share link ID for specified voice character ID
      GET
    • Delete voice character with specified ID
      DELETE
    • Delete specified ID style of voice character with specified ID
      DELETE
  • Voice generation
    • Synchronous real-time voice generation
      POST
    • Create asynchronous voice generation task
      POST
    • Regenerate asynchronous generation task for specified ID
      POST
    • Simple streaming voice generation
      GET
    • Get current user's asynchronous generation task list
      GET
    • Get asynchronous generation task details for specified ID
      GET
    • Delete asynchronous generation task with specified ID
      DELETE
  • User account
    • Get current user account information
      GET
  • File management
    • Create chunked upload file for subsequent professional cloning use
      POST
    • Upload chunk file
      POST
    • Complete file chunked upload
      POST
    • Simple file upload
      POST
  • Content template
    • Create new template
      POST
    • Update template with specified ID
      POST
    • Get user's template list
      GET
    • Get template details for 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": "e17dcb66-6418-4391-9992-a7efb6664364",
    "text": "Hello everyone, the weather is really nice today, what do you think?",
    "promptId": "13f59448",
    "preset": "v2_creative",
    "flash": true,
    "stream": true,
    "srt": false,
    "seed": -1,
    "dictionary": []
}

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": "e17dcb66-6418-4391-9992-a7efb6664364",
    "text": "Hello everyone, the weather is really nice today, what do you think?",
    "promptId": "13f59448",
    "preset": "v2_creative",
    "flash": true,
    "stream": true,
    "srt": false,
    "seed": -1,
    "dictionary": []
}'

Responses

🟢200Successfully generated audio
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 credits
🟠404Specified model or voice not found
🔴500Internal Server Error
Modified at 2025-08-09 14:17:46
Previous
Delete specified ID style of voice character with specified ID
Next
Create asynchronous voice generation task