API Documentation

Everything you need to integrate with APIOutlet.

Authentication

All API requests require authentication via the x-api-key header.

Get your API key from the API Keys dashboard. Include it in every request to authenticate.

x-api-key: aok_xxxxxxxxxxxxxxxxxxxxxxxxxxxx

Base URL

All API requests go through the unified gateway:

POST https://api.apioutlet.net/api/v1/proxy/{provider}/{endpoint}

The proxy path format is /api/v1/proxy/{category}/{path}

Quick Examples

Try these examples with your API key.

# Authentication: Add your API key in the x-api-key header
curl -X POST https://api.apioutlet.net/api/v1/proxy/ai/chat/completions \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-4o-mini",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Response Format

Responses are proxied directly from the provider. The gateway adds these headers:

  • x-request-id
    Unique request identifier
  • x-cost
    The cost deducted for this request
  • x-remaining-balance
    Your remaining account balance

Rate Limiting

Rate limits are per API key.

  • Free tier: 100 requests/day per key
  • Growth tier: 10,000 requests/day per key
  • Rate limit headers are included in responses