认证
所有 API 请求都需要 API Key。
cURL
# Python SDK (recommended)
from sayd_ai import Sayd
client = Sayd(api_key="sk-your-key")
# Or use the REST API directly with api_key parameter
curl -X POST "https://api.sayd.dev/v1/talk?\
external_user_id=user-1&api_key=sk-your-key" \
-H "Content-Type: application/json" \
-d '{"language": "multi"}'Security Best Practices
- Never expose keys in client-side code — API keys should only be used server-side
- Use environment variables — Store keys in
.envfiles, not in source code - Rotate keys regularly — Create new keys and revoke old ones periodically
- Use separate keys for development and production environments
- Monitor usage — Check your dashboard for unexpected API activity
Rate Limits
| Tier | Requests/min | Concurrent Sessions |
|---|---|---|
| Free | 60 | 5 |
| Growth | 300 | 50 |
| Enterprise | Custom | Unlimited |