Vocu Developers
🇺🇸 English
  • 🇺🇸 English
  • 🇨🇳 简体中文
Api Docs(Current)User GuideBack To APP
Api Docs(Current)User GuideBack To APP
🇺🇸 English
  • 🇺🇸 English
  • 🇨🇳 简体中文
  1. Content template
  • 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. Content template

Create new template

POST
https://v1.vocu.ai/api/template

Request

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

Example
{
    "name": "Food Introduction",
    "description": "Generation template containing various food introductions",
    "contents": [
        {
            "voiceId": "b32c9ae9-845f-4627-ab1e-3444d8d880fc",
            "text": "A heartwarming Anhui cuisine soup made with fresh tuna and seasoned with traditional spices, aromatic and appetizing."
        }
    ]
}

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/template' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "Food Introduction",
    "description": "Generation template containing various food introductions",
    "contents": [
        {
            "voiceId": "b32c9ae9-845f-4627-ab1e-3444d8d880fc",
            "text": "A heartwarming Anhui cuisine soup made with fresh tuna and seasoned with traditional spices, aromatic and appetizing."
        }
    ]
}'

Responses

🟢200Successfully created template
application/json
Body

Example
{
    "status": 200,
    "message": "OK",
    "data": {
        "id": "77f54dab-6e96-4c11-afac-2db3f99e4b02",
        "name": "Food Introduction",
        "contents": [
            {
                "metaVoiceId": 22,
                "text": "Fresh mixed salad with black pepper marinated pork and broccoli, drizzled with a light dressing."
            },
            {
                "metaVoiceId": 31,
                "text": "Our golden duck meat, slow-cooked to perfection, served with steamed spinach and rich gravy."
            }
        ],
        "metadata": {
            "metaVoiceId": 81,
            "description": "Template containing various food introductions"
        },
        "userId": "b3ed390b-e26f-4657-8458-67a8290514a1",
        "from": "self",
        "originId": "2e4ad6df-900d-4843-9d65-1a385552b12d"
    }
}
🟠400Request parameter error
Modified at 2025-08-09 14:31:37
Previous
Simple file upload
Next
Update template with specified ID