Choosing a voice model: the audio type, the text field and the price per generation

All in One AIAI Video & Voice·· 2 views· 3 min read

In short: voice models have the audio type («Audio» on the Models tab), and the ones that read a text aloud have the text-to-speech category. The text goes in the text field. The price comes in pricing: in the example in our documentation it is per generation, that is, per audio file you ask for.

On the Models tab

1 Open the Models tab of All in One AI and click Audio.
2 On each line you see the name, the id, the category and the price, for example in «credits per generation».
3 «Copy the id» copies the id for the API. For text-to-speech models, «Try it» opens the Voice tab of the Playground.

Through the API

The list with type=audio:

curl "https://api.interweb.ao/v1/models?type=audio" \
-H "Authorization: Bearer $INTERWEB_API_KEY"

To see the fields of a model, use GET /v1/models/{id}. The text to read goes in text; some models use prompt, and the input of each model says which. The request from the example in our documentation:

{
"model": "elevenlabs/v3/text-to-speech",
"input": {"text": "Hello! Thank you for calling. How can we help you today?"}
}

It goes to POST /v1/media/generations, like images and videos. Then check the status until it is completed and download the file from outputs.

The price per generation

In pricing, unit says how the price is counted and credits how much each unit costs. In the example in our documentation, elevenlabs/v3/text-to-speech shows 40 credits per generation. Three messages for your phone line are three generations. Example prices change: always read unit and credits for the model you choose. As with images, the request reserves the credits and, at the end, charges the real cost and returns the rest.

Listening before you choose

On the Voice tab of the Playground, type the text, click «Generate voice», listen and use «Download the audio». The prompts and the audio files are saved under «Conversations». In Sandbox mode, you get a sample audio without spending credits. To choose the model, test it with a real text, in the language you will use, and listen to the pronunciation and the tone.

Before you put the voice in an advert or on your phone line, see what to check before you publish.

Want to hear a voice before you use it? Try it in the All in One AI Playground.

See All in One AI

SEE ALSO

Turning text into speech with AI: phone greetings, voice-overs and adverts

What an AI video or voice costs: credits per second, per generation and how to estimate

Before you publish an AI video or voice: what to check

Listing the AI models through the API: GET /v1/models with type and q

All in One AI

RECOMMENDED PRODUCT

Web hosting with cPanel

Domain and SSL included, daily backups and the panel you already know. from $6.59/mo (3-year plan, with coupon)

See plans
Was this answer helpful? Your answer helps us improve this article.