Authorization header.
API key formats
| Environment | Prefix | Example |
|---|---|---|
| Free | nawa_test_sk_ | nawa_test_sk_a1b2c3d4e5f6 |
| Live | nawa_live_sk_ | nawa_live_sk_x9y8z7w6v5u4 |
Free vs live keys
Free
Free, no credit card required.
- 100 lifetime requests
- 14-day key expiry
- Uses real AI models (same accuracy)
- Rate limit: 10 requests/minute
- Perfect for prototyping and testing
Live
Pay-as-you-go with credit packs.
- Unlimited requests (with credits)
- No key expiry (rotate at 90 days recommended)
- Full rate limits by tier
- Webhook support
- Analytics and usage dashboards
Creating API keys
Sign in to your account
Go to trynawa.com/developers/keys and sign in with your account.
Create a new key
Go to trynawa.com/developers/keys and click Create Key.
Key rotation
We recommend rotating live keys every 90 days. To rotate without downtime:- Create a new key in the dashboard
- Update your application to use the new key
- Verify requests succeed with the new key
- Revoke the old key
Key revocation
Revoke a key instantly from the dashboard under Settings → API Keys. Revoked keys return a401 authentication_error immediately.
Security best practices
- Never commit keys to source control. Use environment variables or a secret manager.
- Use free keys for development. Reserve live keys for deployed applications.
- Restrict keys by IP (planned) for live workloads.
- Monitor usage in the dashboard to detect unauthorized use.
- Rotate keys every 90 days or immediately if compromised.