Authentication & Account
Learn how to create an account, manage API keys, and authenticate your requests.
Account Setup
Getting started with Api.Airforce takes just a few steps:
Create an Account
Visit the signup page and create a free account with a username and password. No email or credit card required to start.
Get Your API Key
After signing in, navigate to the Dashboard. Your primary API key (prefixed with sk-air-) is automatically generated and ready to use.
Make Your First Request
Use your API key in the Authorization header to authenticate requests to any endpoint.
API Key Management
Manage your API keys from the Dashboard. All keys use the sk-air- prefix.
Primary API Key
Every account gets a primary key with full access. This key cannot be deleted but can be regenerated from the Dashboard.
sk-air-YOUR-KEYSecondary API Keys
Create additional keys with custom limits for different applications:
- Set custom RPM (requests per minute) limits per key
- Set credit allowance to cap spending per key
- Label keys for easy identification and management
Authentication Methods
Include your API key in the Authorization header as a Bearer token:
Bearer Token (Recommended)
curl https://api.airforce/v1/chat/completions \
-H "Authorization: Bearer sk-air-YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4.1-mini",
"messages": [{"role": "user", "content": "Hello!"}]
}'Python (OpenAI SDK)
from openai import OpenAI
client = OpenAI(
base_url="https://api.airforce/v1",
api_key="sk-air-YOUR_API_KEY"
)
response = client.chat.completions.create(
model="gpt-4.1-mini",
messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)Node.js
import OpenAI from 'openai';
const client = new OpenAI({
baseURL: 'https://api.airforce/v1',
apiKey: 'sk-air-YOUR_API_KEY',
});
const response = await client.chat.completions.create({
model: 'gpt-4.1-mini',
messages: [{ role: 'user', content: 'Hello!' }],
});
console.log(response.choices[0].message.content);Security Notice
Never share your API key publicly, commit it to version control, or expose it in client-side code. Treat it like a password. If your key is compromised, regenerate it immediately from the Dashboard.