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
  • 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. 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 bowl of warm Huizhou cuisine soup, made with fresh tuna and seasoned with traditional spices, very fragrant."
        },
        {
            "voiceId": "a518fcf8-2eff-44f3-95bd-53ba5668bcf0",
            "text": "A delightful fruit tart, blending juicy pumpkin and sweet melon in a buttery crust, finished with a hint of bell pepper for flavor."
        }
    ]
}

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 bowl of warm Huizhou cuisine soup, made with fresh tuna and seasoned with traditional spices, very fragrant."
        },
        {
            "voiceId": "a518fcf8-2eff-44f3-95bd-53ba5668bcf0",
            "text": "A delightful fruit tart, blending juicy pumpkin and sweet melon in a buttery crust, finished with a hint of bell pepper for flavor."
        }
    ]
}'

Responses

🟢200Template Created Successfully
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, featuring black pepper marinated pork and broccoli, drizzled with a light dressing."
            },
            {
                "metaVoiceId": 31,
                "text": "Our golden duck, slow-cooked to perfection, served with steamed spinach and a 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-11-09 12:11:15
Previous
Get current user account information
Next
Update Template with Specified ID