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

Update template with specified ID

POST
https://v1.vocu.ai/api/template/{id}

Request

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

Body Params application/json

Example
{
    "name": "Food Description",
    "description": "The Food Description generation template",
    "contents": [
        {
            "voiceId": "894cdf24-195a-4213-b15f-0395e08e6422",
            "text": "Three artichokes with melons, sun-dried tomatoes, pumpkin, onions and capers. Served with roasted kiwi fruit, plus your choice of artichoke or kidney beans."
        },
        {
            "voiceId": "95bc36d7-b0bc-44db-a1da-6a52a97b7222",
            "text": "Eel braised over low heat in a sauce rich with tomato sauce and arugula, served with creamy smooth Chinese cabbage."
        }
    ]
}

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 Description",
    "description": "The Food Description generation template",
    "contents": [
        {
            "voiceId": "894cdf24-195a-4213-b15f-0395e08e6422",
            "text": "Three artichokes with melons, sun-dried tomatoes, pumpkin, onions and capers. Served with roasted kiwi fruit, plus your choice of artichoke or kidney beans."
        },
        {
            "voiceId": "95bc36d7-b0bc-44db-a1da-6a52a97b7222",
            "text": "Eel braised over low heat in a sauce rich with tomato sauce and arugula, served with creamy smooth Chinese cabbage."
        }
    ]
}'

Responses

🟢200Successfully updated template
application/json
Body

Example
{
    "status": 200,
    "message": "OK"
}
🟠404Template with specified ID not found
Modified at 2025-08-09 14:32:59
Previous
Create new template
Next
Get user's template list