GET
/
speak
/
cost

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

x-api-key
string
headerrequired

Query Parameters

transcript
string

A string of text to be spoken by the AI

transcriptUrl
string

A url pointing to a file of text to be spoken by the AI

Response

200 - application/json
credits
number
required

The cost of the speech synthesis job in credits.

audioLength
number
required

The length of the audio in seconds.