Regenerate Generation
curl --request POST \
--url https://api.peachdeskai.com/api/v1/voice/generate/{generation_id}/regenerate \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.peachdeskai.com/api/v1/voice/generate/{generation_id}/regenerate"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.peachdeskai.com/api/v1/voice/generate/{generation_id}/regenerate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.peachdeskai.com/api/v1/voice/generate/{generation_id}/regenerate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.peachdeskai.com/api/v1/voice/generate/{generation_id}/regenerate"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.peachdeskai.com/api/v1/voice/generate/{generation_id}/regenerate")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.peachdeskai.com/api/v1/voice/generate/{generation_id}/regenerate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"profile_id": "<string>",
"text": "<string>",
"language": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"audio_path": "<string>",
"duration": 123,
"seed": 123,
"instruct": "<string>",
"engine": "vaani",
"model_size": "<string>",
"status": "completed",
"error": "<string>",
"is_favorited": false,
"source": "manual",
"versions": [
{
"id": "<string>",
"generation_id": "<string>",
"label": "<string>",
"audio_path": "<string>",
"is_default": true,
"created_at": "2023-11-07T05:31:56Z",
"effects_chain": [
{
"type": "<string>",
"enabled": true,
"params": {}
}
],
"source_version_id": "<string>"
}
],
"active_version_id": "<string>",
"usage": {
"engine": "<string>",
"model": "<string>",
"tts_characters": 123,
"stt_audio_seconds": 123,
"llm_tokens_input": 123,
"llm_tokens_output": 123
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}API Reference
Regenerate Generation
Re-run TTS with the same parameters and save the result as a new version.
POST
/
generate
/
{generation_id}
/
regenerate
Regenerate Generation
curl --request POST \
--url https://api.peachdeskai.com/api/v1/voice/generate/{generation_id}/regenerate \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.peachdeskai.com/api/v1/voice/generate/{generation_id}/regenerate"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.peachdeskai.com/api/v1/voice/generate/{generation_id}/regenerate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.peachdeskai.com/api/v1/voice/generate/{generation_id}/regenerate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.peachdeskai.com/api/v1/voice/generate/{generation_id}/regenerate"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.peachdeskai.com/api/v1/voice/generate/{generation_id}/regenerate")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.peachdeskai.com/api/v1/voice/generate/{generation_id}/regenerate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"profile_id": "<string>",
"text": "<string>",
"language": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"audio_path": "<string>",
"duration": 123,
"seed": 123,
"instruct": "<string>",
"engine": "vaani",
"model_size": "<string>",
"status": "completed",
"error": "<string>",
"is_favorited": false,
"source": "manual",
"versions": [
{
"id": "<string>",
"generation_id": "<string>",
"label": "<string>",
"audio_path": "<string>",
"is_default": true,
"created_at": "2023-11-07T05:31:56Z",
"effects_chain": [
{
"type": "<string>",
"enabled": true,
"params": {}
}
],
"source_version_id": "<string>"
}
],
"active_version_id": "<string>",
"usage": {
"engine": "<string>",
"model": "<string>",
"tts_characters": 123,
"stt_audio_seconds": 123,
"llm_tokens_input": 123,
"llm_tokens_output": 123
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
ApiKeyAuthSessionAuth
Organization API key (bibha_...). Takes precedence over the session credential, and is refused outright on user-session-only and super-admin routes.
Path Parameters
Response
Successful Response
Response model for voice generation.
Show child attributes
Show child attributes
Per-request resource usage the engine reports back to the API proxy.
The proxy meters/bills off these fields; each one maps to a rate-registry
unit (TTS per character, STT per audio-second, LLM per token). Only the
dimensions relevant to the request are populated тАФ the rest stay None.
Show child attributes
Show child attributes

