Api.Airforce
QUICK START

Getting Started

Everything you need to start making API requests in minutes.

Base URL

All API requests should be made to the following base URL:

BASE URL
https://api.airforce

Available Endpoints

POST/v1/chat/completionsOpenAI-compatible chat
POST/v1/messagesAnthropic-compatible messages
POST/v1/images/generationsImage & media generation
GET/v1/modelsList available models

Rate Limits

Rate limits are applied per plan tier. Limits are measured in requests per minute (RPM) and requests per day (RPD).

PlanRPMRPD
Free1 RPM1,000 RPD
Premium5 RPM5,000 RPD
Master10 RPMUnlimited RPD

Note: Pay-as-you-go users with a positive balance bypass these tiered rate limits entirely.

Quick Examples

cURL

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": "Say hello!"}],
    "max_tokens": 100
  }'

Python

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": "Say hello!"}],
    max_tokens=100
)
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: 'Say hello!' }],
  max_tokens: 100,
});
console.log(response.choices[0].message.content);

Model Discovery

Use the /v1/models endpoint to retrieve a list of all available models with their capabilities and pricing.

curl https://api.airforce/v1/models   -H "Authorization: Bearer sk-air-YOUR_API_KEY"

Tip: You can also browse models visually on the Models page, which shows real-time status, pricing, and context windows.