All API requests require authentication using an API key.
Create an API Key
- Visit the API Keys dashboard
- Click ”+ API Key”
- Name your key (e.g., “Production”, “Development”)
- Click “Create”
API keys are only shown once when created. Copy and store your key securely.
Using Your API Key
Include your API key in the Authorization header as a Bearer token:
Authorization: Bearer YOUR_API_KEY
import requests
response = requests.post(
'https://dev.voice.ai/api/v1/tts/clone-voice',
headers={'Authorization': 'Bearer YOUR_API_KEY', 'Content-Type': 'application/json'},
json={'base64_audio': '...', 'name': 'My Voice'}
)
Security Best Practices
- Never commit API keys to version control
- Use environment variables or secret management tools
- Rotate keys regularly
- Use separate keys for development, staging, and production
- Delete unused keys
Base URL