Save a voice
curl --request POST \
--url https://gengen.farm/api/gengen/v1/audio/voices/import \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"voiceId": "<string>"
}
'import requests
url = "https://gengen.farm/api/gengen/v1/audio/voices/import"
payload = { "voiceId": "<string>" }
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({voiceId: '<string>'})
};
fetch('https://gengen.farm/api/gengen/v1/audio/voices/import', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Voices
Save a voice
Save a voice. See the Audio API guide for limits, lifecycle and examples.
POST
/
audio
/
voices
/
import
Save a voice
curl --request POST \
--url https://gengen.farm/api/gengen/v1/audio/voices/import \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"voiceId": "<string>"
}
'import requests
url = "https://gengen.farm/api/gengen/v1/audio/voices/import"
payload = { "voiceId": "<string>" }
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({voiceId: '<string>'})
};
fetch('https://gengen.farm/api/gengen/v1/audio/voices/import', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}See the Audio API guide for request examples, limits, billing and delivery behavior.