Get speak cost
estimate the cost of generating speech from text before initiating the synthesis process. this endpoint offers a preliminary assessment of the potential credits needed for transforming your text into spoken audio.
introduction
before launching into speech synthesis, the /speak/cost
endpoint can be used to estimate the cost. this helps with project planning, and to align expectations and budget allocations effectively.
quick start
authentication
before you can start using our api, you need to authenticate your requests. this is done using an x-api-key
that links your requests to your account. if you don’t have an api key yet, check out the instructions here to obtain one.
estimate your speech synthesis cost
equipped with your x-api-key
, navigating the cost estimation for speech synthesis is effortless. to estimate the cost via the playground above follow the instructions below:
leveraging the /speak/cost
endpoint enables effective planning for your text-to-speech projects. by understanding the potential costs upfront, you’re better positioned to manage your credits and ensure a seamless project execution.
Authorizations
Query Parameters
A string of text to be spoken by the AI
A url pointing to a file of text to be spoken by the AI
Response
The cost of the speech synthesis job in credits.
The length of the audio in seconds.