Creative Lab voice catalog
Suno Saved Voices
Section titled “Suno Saved Voices”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.
Request for voice list
Section titled “Request for voice list”https://gptunnel.ru/api/v2/media/voicesThis 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
| Parameter | Type | Description |
|---|---|---|
model | string | Voice model filter. If omitted or set to tts2, the API returns voices for all text-to-speech models. |
Example request
Section titled “Example request”Set the GPTUNNEL_API_KEY environment variable.
import jsonimport osfrom 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'])curl --fail-with-body 'https://gptunnel.ru/api/v2/media/voices' \ --header "Authorization: ${GPTUNNEL_API_KEY:?Set GPTUNNEL_API_KEY}"const key = process.env.GPTUNNEL_API_KEYif (!key) throw new Error('Set GPTUNNEL_API_KEY')const response = await fetch('https://gptunnel.ru/api/v2/media/voices', { headers: { Authorization: key } })if (!response.ok) throw new Error(await response.text())const data = await response.json()console.log(data.voices)Example response
Section titled “Example response”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}Voice Fields
Section titled “Voice Fields”| Parameter | Type | Description |
|---|---|---|
id* | string | Value for params.voice in creating the task |
name* | string | Voice name |
model* | string | Model ID to pass in model when using this voice. Its rate applies when the voice has no custom rate. |
description | string | Voice characteristics and intended uses |
gender | string | Voice gender |
language* | string | Primary language, for example ru-RU |
tags* | string[] | The filtering tags in your interface |
preview_url | string | URL of the voice sample |
avatar_url | string | URL of the voice avatar |
price_per_1k_chars | number | Voice 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. |
custom | boolean | cloned voice: visible only to the key holder |
expires_at | number | Unix timestamp at which the cloned voice expires. Each generation using the voice extends its lifetime by 5 days. |
How to Use
Section titled “How to Use”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.