API keys and the voice API
API keys and the voice API
Create keys for the /v1 API: text to speech, speech to text and agents, with JavaScript and Python SDKs.
- Go to API keys & usage and click Create key. Name it so you can tell keys apart, like Production or Mobile app.
- Copy the key straight away: it is shown only once.
- Call the API with the key in the
x-api-keyheader. Copy a curl example gives you a working request.
curl -X POST https://lipivo.com/v1/text-to-speech \
-H "x-api-key: YOUR_KEY" \
-H "content-type: application/json" \
-d '{"text": "Hello! Your order arrives tomorrow."}'- SDKs:
npm i lipivo(JavaScript) andpip install lipivo(Python). - Text to speech costs credits per character, speech to text per second of audio, agents on our models per token.
- Each key shows what it spent this month. Revoke a key and apps using it get 401 errors straight away.