Skip to content

Authentication

The CompactifAI API uses API keys for authentication. This guide will walk you through the process of obtaining and using your API key.

There are two ways to get started with the CompactifAI API:

Sign up directly through the CompactifAI Dashboard — no AWS account required.

Go to dashboard.compactif.ai and sign up with your email address.

Go to the Manage API Keys tab in the Dashboard and follow the guided steps: Manage API Keys Start

  1. Add billing details — Click Add Billing Details. You’ll be taken to the Billing Details tab. Fill in your name, email, phone number, country, and other required fields. Add billing details
  2. Accept billing terms — Click Review Billing Terms and accept them. Accept billing terms
  3. Add a payment method — Go back to Manage API Keys and click Add Payment Method (or go directly to the Configure Payment tab). Enter your card details and save. Add a payment method
  4. Get your API key — Go back to the Manage API Keys tab. Your API key will be available there. Get your API key

Once billing is set up, your API key is available immediately from the Dashboard. You can copy it, and rotate it at any time. Manage API Keys page with Show, Copy, and Rotate key actions

Furthermore, from the Dashboard, you can:

  • Monitor your API usage and token consumption.
  • Manage your account settings.
  • Each subscription must be connected to a single email address.
  • The Dashboard issues one API token per account; rotate it from the dashboard when needed instead of creating additional tokens.
  • To grant access to additional teammates, invite them to sign up with their own account or contact support to discuss alternatives.

You must include your API key in the Authorization header of each API request using the Bearer token scheme:

Terminal window
Authorization: Bearer YOUR_API_KEY
cURL
curl https://api.compactif.ai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "hypernova-60b",
"messages": [
{"role": "user", "content": "Hello!"}
]
}'