curl --request POST \
--url https://api.zerogpu.ai/zeroclick/v1/audio/translations \
--header 'Content-Type: application/json' \
--header 'zc-signature: <api-key>' \
--data '
{
"file_url": "https://example.com/audio/hello.mp3"
}
'{
"text": "Hello, how are you today?"
}Translations (ZeroClick)
Translate speech into English text with whisper-tiny, authenticated by a ZeroClick HMAC signature instead of an API key.
curl --request POST \
--url https://api.zerogpu.ai/zeroclick/v1/audio/translations \
--header 'Content-Type: application/json' \
--header 'zc-signature: <api-key>' \
--data '
{
"file_url": "https://example.com/audio/hello.mp3"
}
'{
"text": "Hello, how are you today?"
}/v1/audio/translations; the request is JSON, and authentication, authorization, and metering differ. The request is always served by the configured model (whisper-tiny). Send the same fields as a transcription without language; the transcript is always English.
- Body — ZeroClick’s pay host forwards JSON only, so send
application/jsonwith the audio as base64 infile(or adata:URL, within ZeroClick’s ~7.5 MB body cap) or as an https URL infile_url(up to 25 MB), plus the usual fields. A JSON body that cannot be converted (bad base64, unreachable URL, neither or both offile/file_url) gets a400or413before any inference and is not billed. - 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.
{
"file_url": "https://example.com/audio/hello.mp3",
"model": "whisper-tiny",
"response_format": "json"
}
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
- Option 1
- Option 2
A translation request. Exactly one of file (base64) or file_url (https). No language: the transcript is always English, and sending language returns 400.
The audio, base64-encoded, or as a data: URL (data:audio/mpeg;base64,…). URL-safe base64 is accepted. Limited by ZeroClick's request body cap (about 7.5 MB of JSON, so about 5.6 MB of audio); use file_url for anything larger.
"UklGRiQAAABXQVZFZm10IBAAAAABAAEAQB8AAIA+AAACABAAZGF0YQAAAAA="

