Skip to main content
Anannas uses Bearer tokens for authentication.
You can manage and create your API keys in the Anannas dashboard.
Anannas API keys are powerful: they can be used to track usage, set credit limits, or integrate with OAuth flows. Always store keys securely - never commit them to public repos.

Using an API Key

If calling Anannas API directly, include the API key in the Authorization header:
fetch('https://api.anannas.ai/v1/chat/completions', {
  method: 'POST',
  headers: {
    Authorization: 'Bearer <ANANNAS_API_KEY>',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    model: 'openai/gpt-4o',
    messages: [{ role: 'user', content: 'What is the meaning of life?' }],
  }),
});

Key Security

Always keep your Anannas API keys private. If you suspect exposure, immediately delete the compromised key from your dashboard and create a new one.
Best practice: store keys in environment variables, not directly in code.
Was this page helpful?