Skip to content

Tme โ€‹

Updated

Endpoint: POST https://vod.intl.tencentcloudapi.comAction: CreateAigcAudioTask

Tme is a music generation capability that creates music from a prompt and reference audio. Pass the reference audio in AudioInfos and specify the resource granted to your account with AdditionalParameters.ResourceId.

Basic Information โ€‹

ItemValue
ModelNameTme
SceneTypemusic

Supply a reference track and use AdditionalParameters.ResourceId to specify a resource granted to the account.

Request Parameters โ€‹

ParameterRequiredTypeDescription
ModelNameRequiredStringFixed value Tme
SceneTypeRequiredStringmusic
PromptOptionalStringDescription of the generation direction
AudioInfos.NOptionalArrayReference track. Type + Url structure
AdditionalParametersOptionalStringA ResourceId-carrying (a resource granted to the account) JSON string

AudioInfos is entered in [{ "Type": "Url", "Url": "..." }] format, using a publicly accessible audio URL.

Request Example โ€‹

json
{
  "SubAppId": 123456789,
  "ModelName": "Tme",
  "SceneType": "music",
  "AudioInfos": [
    {
      "Type": "Url",
      "Url": "https://<cos>/reference.wav"
    }
  ],
  "AdditionalParameters": "{\"ResourceId\": \"<resource-id>\"}"
}

The MPS path uses different reference fields

The MPS path, in AudioInfos.N, uses the AudioUrl field, and the resource is specified in ExtraParameters.ResourceId. The VOD path uses the Type + Url structure and AdditionalParameters.ResourceId. If your code uses both paths, branch the field names.

Response Example โ€‹

json
{
  "AigcAudioTask": {
    "Status": "FINISH",
    "ErrCode": 0,
    "Output": {
      "AudioInfos": [
        {
          "FileUrl": "http://<host>.vod2.myqcloud.com/.../aigcAudioGenFile.mp3"
        }
      ]
    }
  }
}

Model-Specific Audio Options โ€‹

ModelFieldDescription
TmeResourceIdCover track resource ID granted to the account

Built with VitePress ยท Deployed on Tencent EdgeOne Pages