Preview current creation rates
curl --request GET \
--url https://api.pyai.com/projects/{projectId}/studio/pricing/{product} \
--cookie pyai_session=import requests
url = "https://api.pyai.com/projects/{projectId}/studio/pricing/{product}"
headers = {"cookie": "pyai_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'pyai_session='}};
fetch('https://api.pyai.com/projects/{projectId}/studio/pricing/{product}', 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.pyai.com/projects/{projectId}/studio/pricing/{product}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_COOKIE => "pyai_session=",
]);
$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.pyai.com/projects/{projectId}/studio/pricing/{product}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("cookie", "pyai_session=")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.pyai.com/projects/{projectId}/studio/pricing/{product}")
.header("cookie", "pyai_session=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pyai.com/projects/{projectId}/studio/pricing/{product}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["cookie"] = 'pyai_session='
response = http.request(request)
puts response.read_body{
"product": "speak",
"currency": "USD",
"pricing_version": "<string>",
"basis": "source_audio",
"rate_micros_per_minute": 1,
"estimated_micros": 1
}Console creations
Preview current creation rates
Read-only standard USD rates from the billing engine. Optional source duration produces a usage estimate for Transcription and Dubbing. Speech and Cast return a rate only because generated duration is not known beforehand. Estimates are not reservations or final charges; measured usage and account terms determine billing.
GET
/
projects
/
{projectId}
/
studio
/
pricing
/
{product}
Preview current creation rates
curl --request GET \
--url https://api.pyai.com/projects/{projectId}/studio/pricing/{product} \
--cookie pyai_session=import requests
url = "https://api.pyai.com/projects/{projectId}/studio/pricing/{product}"
headers = {"cookie": "pyai_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'pyai_session='}};
fetch('https://api.pyai.com/projects/{projectId}/studio/pricing/{product}', 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.pyai.com/projects/{projectId}/studio/pricing/{product}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_COOKIE => "pyai_session=",
]);
$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.pyai.com/projects/{projectId}/studio/pricing/{product}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("cookie", "pyai_session=")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.pyai.com/projects/{projectId}/studio/pricing/{product}")
.header("cookie", "pyai_session=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pyai.com/projects/{projectId}/studio/pricing/{product}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["cookie"] = 'pyai_session='
response = http.request(request)
puts response.read_body{
"product": "speak",
"currency": "USD",
"pricing_version": "<string>",
"basis": "source_audio",
"rate_micros_per_minute": 1,
"estimated_micros": 1
}Authorizations
Console session cookie. PyAI-admin routes also require the configured platform-admin email allowlist.
Path Parameters
Available options:
speak, hear, dub, cast Query Parameters
Required range:
x <= 86400Response
Current standard rate and optional estimate.
Available options:
speak, hear, dub, cast Allowed value:
"USD"Available options:
source_audio, generated_audio Required range:
x >= 0Required range:
x >= 0