All requests to the Kaiko API must be authenticated with an API key. This page explains how authentication works, how to keep your keys secure, and related security practices.
API keys are issued through partnership engagements. Email partnerships@kaikostudios.xyz with your use case, expected volume, and target environment to receive a key.
| Environment | Key Prefix | Base URL |
|---|---|---|
| Production | kaiko_live_xxx | https://api.kaikostudios.xyz |
Add your API key using one of these methods:
Header (Recommended):
x-api-key: kaiko_live_xxxxxxxxxxxxxBearer Token (Alternative):
Authorization: Bearer kaiko_live_xxxxxxxxxxxxxExample V2 request with curl:
curl -X POST https://api.kaikostudios.xyz/v2/emotions/analysis \
-H "x-api-key: $KAIKO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "emotion-v2",
"messages": [{"role": "user", "content": {"text": "hello"}}]
}'For POST requests that might be retried (e.g., after a timeout), supply an Idempotency-Key header:
Idempotency-Key: 7f65ab21d1-test-123Context-Based Emotion API (V2):
Emotional states tied to a context_id are stored temporarily for session continuity. V2 also stores trajectory and growth data.
Stateless Analysis API:
No state is stored; analysis is ephemeral.
Chat API:
Messages may be stored transiently for processing but are not persisted beyond request lifetime.
https://).Kaiko APIs are designed for enterprise use and comply with industry-standard data handling practices.
PII: Kaiko does not require personal identifiers in text input. Developers are responsible for avoiding unnecessary PII.
Export controls: Certain features may be subject to regulatory restrictions.
1. Store Kaiko API keys in a secrets manager (AWS Secrets Manager, GCP Secret Manager, Vault).
2. Application backend fetches keys securely at runtime.
3. Clients (mobile/web) never see raw Kaiko keys — they call your backend.
4. Backend adds x-api-key when forwarding requests to Kaiko.
5. Use Idempotency-Key for retries and log all request_id values.Next: see Rate Limits & Error Handling to learn how to handle errors gracefully, or V2 EQ Dimensions to explore the new emotional intelligence features.