API Keys
All API requests require authentication using an API key. Include your key in thex-api-key header with every request.
Key Format
API keys follow this format:- Prefix:
sk_(secret key) - Length: 32 characters total
- Example:
sk_a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6
Request Headers
| Header | Required | Description |
|---|---|---|
x-api-key | Yes | Your API key for authentication |
Content-Type | For POST | Set to application/json for JSON payloads |
Error Responses
Missing API Key
401 Unauthorized
Invalid API Key
401 Unauthorized
Code Examples
Rate Limits
Currently, there are no strict rate limits. However, we recommend:- Maximum 500 concurrent jobs per API key
- Polling interval of 2-5 seconds for job status
Contact us if you need higher limits for your use case.
Security Best Practices
Environment Variables
Environment Variables
Store your API key in environment variables, not in code:
Server-Side Only
Server-Side Only
Always make API calls from your backend server, never from client-side JavaScript.
Key Rotation
Key Rotation
If you suspect your key is compromised, contact us immediately for a new key.
