API Docs

The AIin1 API is fully compatible with the OpenAI interface format. Use your existing SDKs as-is.

Overview

Base URLhttps://api.aiin1.ai/v1
ProtocolHTTPS (TLS 1.2+)
FormatJSON (UTF-8)
CompatibilityFully compatible with OpenAI SDKs

All requests must be sent over HTTPS. The API supports OpenAI-compatible chat completions, so you can use any SDK or tool that works with the OpenAI API.

Authentication

Authenticate using Authorization: Bearer YOUR_API_KEY in the request header.

API Keys can be created and managed in the console after logging in. Keep your keys secure and never expose them in client-side code.

Security Notice: Never commit API Keys to code repositories or hard-code them in frontend code.

Supported Models

Model NameProviderContext Window
No model data available

0 models

Code Examples

curl https://api.aiin1.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "claude-opus-4-8",
    "messages": [
      {"role": "user", "content": "Hello"}
    ],
    "max_tokens": 1024
  }'

max_tokens Auto-Clamping

The gateway automatically clamps max_tokens to each model's output limit. No client-side changes required — over-limit requests are truncated at the model's cap rather than rejected.