Authentication & API Keys
Create, manage, and secure the keys that authenticate API requests.
Use keys server-side
Keep API keys out of client-side code. Store keys in server environment variables and call BiotiqueAI from your backend or server route.
Rotate keys when access changes, and create separate keys for development and production environments.
Send authenticated requests
Attach your API key to each request according to the API reference. Include the prompt, size, count, and any style or workflow parameters required by the endpoint.
For long-running jobs, use async processing and webhooks rather than blocking your user interface.
Handle errors clearly
Treat authentication, rate-limit, and validation errors separately. Clear error handling makes your integration easier to debug and safer in production.
Log request IDs when available so support can investigate issues quickly.




