Estimate voice design cost
curl --request POST \
--url https://gengen.farm/api/gengen/v1/audio/voice-designs/estimate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "eleven_ttv_v3",
"prompt": "A warm, clear adult narrator with a calm delivery and a neutral English accent."
}
'import requests
url = "https://gengen.farm/api/gengen/v1/audio/voice-designs/estimate"
payload = {
"model": "eleven_ttv_v3",
"prompt": "A warm, clear adult narrator with a calm delivery and a neutral English accent."
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'eleven_ttv_v3',
prompt: 'A warm, clear adult narrator with a calm delivery and a neutral English accent.'
})
};
fetch('https://gengen.farm/api/gengen/v1/audio/voice-designs/estimate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"model": "eleven_ttv_v3",
"inputCharacters": 550,
"isMaximum": true,
"estimatedCostUsd": 1,
"pricePerThousandCharactersUsd": 1
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Create voices
Estimate voice design cost
Estimate the final USD price for a batch of three voice previews.
POST
/
audio
/
voice-designs
/
estimate
Estimate voice design cost
curl --request POST \
--url https://gengen.farm/api/gengen/v1/audio/voice-designs/estimate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "eleven_ttv_v3",
"prompt": "A warm, clear adult narrator with a calm delivery and a neutral English accent."
}
'import requests
url = "https://gengen.farm/api/gengen/v1/audio/voice-designs/estimate"
payload = {
"model": "eleven_ttv_v3",
"prompt": "A warm, clear adult narrator with a calm delivery and a neutral English accent."
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'eleven_ttv_v3',
prompt: 'A warm, clear adult narrator with a calm delivery and a neutral English accent.'
})
};
fetch('https://gengen.farm/api/gengen/v1/audio/voice-designs/estimate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"model": "eleven_ttv_v3",
"inputCharacters": 550,
"isMaximum": true,
"estimatedCostUsd": 1,
"pricePerThousandCharactersUsd": 1
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Send the same body as a Voice Design audition. An estimate requires authentication but does not generate audio, reserve balance or incur a charge.
| Audition text | Estimate |
|---|---|
| Supplied | inputCharacters is the Unicode character count of your text; isMaximum is false. |
| Omitted | inputCharacters is 1,000 and isMaximum is true. Generation reserves up to that amount and bills the actual returned text. |
estimatedCostUsd covers all three previews together; pricePerThousandCharactersUsd is the rate used.Authorizations
Body
application/json
Response
Current customer price estimate.