Create speech (ZeroClick-authenticated)
curl --request POST \
--url https://api.zerogpu.ai/zeroclick/v1/audio/speech \
--header 'Content-Type: application/json' \
--header 'zc-signature: <api-key>' \
--data '
{
"input": "Testing model to generate voice. Hey how are you today?"
}
'import requests
url = "https://api.zerogpu.ai/zeroclick/v1/audio/speech"
payload = { "input": "Testing model to generate voice. Hey how are you today?" }
headers = {
"zc-signature": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'zc-signature': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({input: 'Testing model to generate voice. Hey how are you today?'})
};
fetch('https://api.zerogpu.ai/zeroclick/v1/audio/speech', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));falsepackage main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.zerogpu.ai/zeroclick/v1/audio/speech"
payload := strings.NewReader("{\n \"input\": \"Testing model to generate voice. Hey how are you today?\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("zc-signature", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}require 'uri'
require 'net/http'
url = URI("https://api.zerogpu.ai/zeroclick/v1/audio/speech")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["zc-signature"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"input\": \"Testing model to generate voice. Hey how are you today?\"\n}"
response = http.request(request)
puts response.read_body"<string>"ZeroClick
Speech (ZeroClick)
Generate speech with chatterbox-nano, authenticated by a ZeroClick HMAC signature instead of an API key.
POST
/
zeroclick
/
v1
/
audio
/
speech
Create speech (ZeroClick-authenticated)
curl --request POST \
--url https://api.zerogpu.ai/zeroclick/v1/audio/speech \
--header 'Content-Type: application/json' \
--header 'zc-signature: <api-key>' \
--data '
{
"input": "Testing model to generate voice. Hey how are you today?"
}
'import requests
url = "https://api.zerogpu.ai/zeroclick/v1/audio/speech"
payload = { "input": "Testing model to generate voice. Hey how are you today?" }
headers = {
"zc-signature": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'zc-signature': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({input: 'Testing model to generate voice. Hey how are you today?'})
};
fetch('https://api.zerogpu.ai/zeroclick/v1/audio/speech', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));falsepackage main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.zerogpu.ai/zeroclick/v1/audio/speech"
payload := strings.NewReader("{\n \"input\": \"Testing model to generate voice. Hey how are you today?\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("zc-signature", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}require 'uri'
require 'net/http'
url = URI("https://api.zerogpu.ai/zeroclick/v1/audio/speech")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["zc-signature"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"input\": \"Testing model to generate voice. Hey how are you today?\"\n}"
response = http.request(request)
puts response.read_body"<string>"This is the Speech endpoint behind ZeroClick, ZeroGPU’s agent-payment layer. Same request/response bodies, limits, and model as
/v1/audio/speech — only authentication, authorization, and metering differ. The request is always served by the configured model (chatterbox-nano). Send a JSON body; voice cloning (a voice_sample upload) is not available through ZeroClick.
- Authentication — no
x-api-key. A buying agent calls ZeroClick’s hosted pay URL; ZeroClick proxies the request and signs the raw request bytes with an HMAC in thezc-signatureheader. A request is authenticated only by a valid signature. - Authorization — a ZeroClick allowance check runs before any billable work. It fails open on a transient ZeroClick outage (the signature has already verified), but never for a missing or invalid signature.
- Metering — billed per audio second. The allowance check asks for a 1-second floor, since the duration is not known until the clip is decoded or generated. On success,
zc-usagereportsmax(1, ceil(x-audio-duration-seconds))audio seconds. Stripe metering is bypassed; ZeroClick is the sole biller.
Authorizations
HMAC signature minted by ZeroClick over the raw request bytes, of the
form t=<unix-seconds>,kid=<key-id>,v1=<hex-hmac>. Verified by the
@zeroclickai/sellers SDK against the seller's signing secret keyed by
kid. A missing or invalid signature is rejected with 401
invalid_zeroclick_signature; this is never failed open.
Headers
Body
application/json
JSON body, as the OpenAI SDKs send it.
Response
The audio file, with a content type matching response_format. Includes the zc-usage header settling actual usage with ZeroClick.
The response is of type file.

