Authentication
How to authenticate with Banatie API using API keys.
Early Access
We're currently in early access phase. API keys are issued personally via email.
To request access: Sign up at banatie.app. We'll send your API key within 24 hours.
Using Your API Key
All API requests require the X-API-Key header:
Authenticated Request
curl -X POST https://api.banatie.app/api/v1/generations \
-H "X-API-Key: your_key_here" \
-H "Content-Type: application/json" \
-d '{"prompt": "a sunset over the ocean"}'Keep your API key secure. Don't commit it to version control or expose it in client-side code. Use environment variables in your applications.
Key Types
Banatie uses two types of API keys:
Type | Permissions | Expiration | Use Case |
|---|---|---|---|
Project Key | Image generation, uploads, images | 90 days | Your application integration |
Master Key | Full admin access, key management | Never expires | Server-side admin operations |
You'll receive a Project Key for your application. Master Keys are for administrative operations — you probably don't need one.
API key management dashboard coming soon. For now, contact us if you need to rotate your key.