Skip to content

Creative Lab voice catalog

Pass ?model=suno to list saved Suno voices for the API key owner. The response includes id, name, model and supports_instrumental for each voice. Pass the ID in params.voice_id. See the complete generation example.

GEThttps://gptunnel.ru/api/v2/media/voices

This endpoint lists the text-to-speech voices available to your API key. Use an id from the response as params.voice when creating a task.

The voice catalog changes independently of the model catalog. Use this endpoint for current voice values.

Query parameters

ParameterTypeDescription
modelstringVoice model filter. If omitted or set to tts2, the API returns voices for all text-to-speech models.

Set the GPTUNNEL_API_KEY environment variable.

import json
import os
from urllib.request import Request, urlopen
url = 'https://gptunnel.ru/api/v2/media/voices'
request = Request(url, headers={'Authorization': os.environ['GPTUNNEL_API_KEY']})
with urlopen(request, timeout=30) as response:
print(json.load(response)['voices'])

The following excerpt shows the main fields for one voice. Use your own catalog for current IDs and complete details.

{
"code": 0,
"voices": [
{
"id": "69e7737a97a24533bd8ffca9",
"name": "Виктор",
"model": "tts2",
"gender": "male",
"language": "ru"
}
]
}

The voice in this example has no custom rate, so its response omits price_per_1k_chars. Other voices can have their own rate. Send the voice ID and the text to get a price quote.

This example of a cloned voice shows the custom field. For <CLONED_VOICE_ID>, use an ID from your catalog.

{
"id": "<CLONED_VOICE_ID>",
"name": "Мой клон",
"model": "tts2",
"custom": true
}
ParameterTypeDescription
id*stringValue for params.voice in creating the task
name*stringVoice name
model*stringModel ID to pass in model when using this voice. Its rate applies when the voice has no custom rate.
descriptionstringVoice characteristics and intended uses
genderstringVoice gender
language*stringPrimary language, for example ru-RU
tags*string[]The filtering tags in your interface
preview_urlstringURL of the voice sample
avatar_urlstringURL of the voice avatar
price_per_1k_charsnumberVoice rate in RUB per 1,000 characters. If this field is absent, billing uses the rate of the model in model. Get a quote for the exact price.
custombooleancloned voice: visible only to the key holder
expires_atnumberUnix timestamp at which the cloned voice expires. Each generation using the voice extends its lifetime by 5 days.

Before generating speech, submit the same text and params.voice to the price endpoint. The rate can depend on the selected voice.

{
"model": "tts2",
"prompt": "Привет! Это проверка озвучки.",
"params": { "voice": "69e7737a97a24533bd8ffca9" }
}

Task creation with a voice absent from this catalog returns HTTP 400 with code: 3 and the voice field in details. The account is not charged.