POST
/
api
/
v1
/
client
/
txt2audio
/
price-calculation
Text to Speech Price Calculation
curl --request POST \
  --url https://api.modelbeam.srv1069417.hstgr.cloud/api/v1/client/txt2audio/price-calculation \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "Kokoro",
  "lang": "en-us",
  "speed": 123,
  "format": "<string>",
  "sample_rate": 123,
  "text": "<string>",
  "count_text": 123
}
'
{
  "data": {
    "price": 0.00077
  }
}

Body

application/json
model
string
required
Example:

"Kokoro"

lang
string
required
Example:

"en-us"

speed
number
required
format
string
required
sample_rate
integer
required
text
string

Full text (mutually exclusive with count_text)

count_text
integer

Character count as alternative to text

Response

Price calculated

data
object