Authentication

KrosAI uses API keys to authenticate requests. You’ll need to include your API key in all API requests to our server.

Getting Your API Key

  1. Create an account or sign in

  2. Navigate to the API Keys section in your dashboard

  3. Click “Generate New API Key”

  4. Give your key a name (e.g., “Development”, “Production”)

  5. Copy and securely store your API key - you won’t be able to see it again!

Using Your API Key

Include your API key in the Authorization header of all requests:

Example Request

curl https://api.krosai.com/v1/completions \
  -H 'accept: application/json' \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Your prompt here"
  }'

API Key Best Practices

  1. Key Security

    • Never expose your API key in client-side code

    • Use environment variables to store API keys

    • Rotate keys periodically

  2. Multiple Keys

    • Use different keys for development and production

    • Create separate keys for different applications

    • Delete unused keys

  3. Monitoring

    • Monitor your API key usage in the dashboard

    • Set up usage alerts

    • Review the activity logs regularly

Rate Limiting

API requests are rate-limited based on your subscription plan. You can view your current limits and usage in the KrosAI Platform.

Support

If you encounter any authentication issues:

Last updated