Base URL
https://unlimited-ai.pages.dev/api
Authentication
Generate an API key in Settings. Include it via:
Authorization: Bearer YOUR_API_KEY
Chat Completions (OpenAI-compatible)
POST /api/chat
Content-Type: application/json
Authorization: Bearer YOUR_KEY
{
"model": "auto",
"messages": [{"role": "user", "content": "Hello"}],
"stream": true
}
POST Streams SSE responses. Compatible with OpenAI SDKs.
Health Check
GET /api/health
Returns { ok: true, apiKeys, resend, abacus } status.
Auth — Send Code
POST /api/auth/send-code
{"email": "user@example.com"}
Auth — Verify Code
POST /api/auth/verify-code
{"email": "user@example.com", "code": "123456"}
Returns { token, user }.
Get / Set Models
GET /api/models
POST /api/chat {"model": "claude-fable-5", ...}
Available models: auto (SMR), claude-fable-5, claude-opus-4.8, gpt-5.6-sol, gpt-5.5, gemini-3.1-pro, grok-4.5, deepseek-v4-pro, kimi-k2.7, glm-5.2, qwen-3.7-max, and 40+ more.
SDK Examples
OpenAI (Python)
from openai import OpenAI
client = OpenAI(base_url="https://unlimited-ai.pages.dev/api", api_key="YOUR_KEY")
stream = client.chat.completions.create(model="auto", messages=[{"role":"user","content":"Hi"}], stream=True)
for chunk in stream: print(chunk.choices[0].delta.content or "", end="")
OpenAI (Node.js)
import OpenAI from 'openai';
const client = new OpenAI({ baseURL: 'https://unlimited-ai.pages.dev/api', apiKey: 'YOUR_KEY' });
Anthropic (Python)
import anthropic
client = anthropic.Anthropic(base_url="https://unlimited-ai.pages.dev", api_key="YOUR_KEY")
Rate Limits & Credits
Signed-in users get 100 credits/day. Premium models cost 5, high cost 4, medium cost 2, standard cost 1, unlimited models cost 0. Unused credits do not roll over. Rate limits are enforced per-account.