NexisVoice API
worker online Sign in

Internal · RTX 3060 · Q8_0

Speech,
metered.

One endpoint in front of the Nexis GPU worker. A key per consumer, a character budget per key, and a receipt for every call — so audio never leaves a hole in the ledger.

Endpoint
POST /v1/audio/speech
Formats
mp3 · wav · pcm
Voice
described per request
01

Mint a key

Name the consumer, set a rate and a monthly character budget. The key is shown once and stored as a hash — there is no "forgot key" page, by design.

02

Call one endpoint

OpenAI-shaped JSON in, audio out. Streamed while the worker generates, so a long paragraph starts playing before it finishes synthesising.

03

Read the meter

Characters, calls, latency and format per key. Revoke a key and the next request is refused on the same second.

Built to be replaced

The endpoint is disposable; the ledger is not. Breeze TTS 2 sits behind this gateway today. Swapping the model means changing one container environment variable — every consumer keeps the same URL, the same key, the same shapes.

  • Keys are revocable per consumer, not per password.
  • Rate and quota are enforced before the GPU is touched.
  • Every answer carries x-request-id and a usage line.
  • Worker failures are translated into one error envelope.
curl
curl https://tts.nexis-ai.tech/v1/audio/speech \
  -H "Authorization: Bearer $NEXIS_TTS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "tts-1",
    "input": "The meter is running.",
    "instructions": "a calm, low voice",
    "response_format": "mp3"
  }' --output line.mp3