Authentication
Secure your API requests with API keys
All LTX-2 API requests require authentication using API keys. API keys are associated with your account and provide access to the API endpoints.
Getting Your API Key
Contact our team to obtain your API key. Each key is unique to your account and should be kept secure.
Using Your API Key
Include your API key in the Authorization header of every request using the Bearer token format:
Example Request
cURL
Python
Security Best Practices
Keep your API key secure:
- Never commit API keys to version control
- Don’t expose keys in client-side code
- Use environment variables to store keys
- Rotate keys periodically
Environment Variables
Store your API key in environment variables:
Bash:
Python:
Node.js:
Authentication Errors
If authentication fails, you’ll receive a 401 Unauthorized response:
Common authentication issues:
Rate Limits
API keys are subject to rate limits based on your plan. If you exceed your rate limit, you’ll receive a 429 Too Many Requests response.
Contact our team to discuss rate limit increases for your use case.

