Text to speech
Mint stream tokens
Mint a single-use token for opening the streaming text-to-speech WebSocket from a browser, which cannot send an Authorization header: connect to wss://<host>/v1/audio/speech/stream?token=<token> (the url field). Valid for 60 seconds and one connection; the socket acts, and is billed, as the key that minted it, and dies with that key if it is revoked. A socket is billed per connected minute (₹0.90 at list price, every second it is open), not per character, unless the workspace was set to per-character billing; session.ready states which. Server code should connect with its API key in the Authorization header instead. API keys are never accepted in the URL.
POST
Mint stream tokens
Mint stream tokens