Referensi API
Setiap endpoint, dengan header yang diperlukan dan bentuk responsnya. URL dasar gateway: https://api.glx.qzz.io — jalur di bawah ditampilkan relatif terhadap root API; awalan /v1/… dan /api/… setara. Situs ini menyelesaikannya melalui /api.
GET /models
List every model in the catalog. With a key, each entry includes an available flag and a min_plan tier for your plan (access is cumulative: free-tier models are open to all plans, personal-tier to Personal + Business, business-tier to Business only). Also served at /v1/models.
Respons
{ "object": "list", "data": [ { "id": "aucore-router-auto", "owned_by": "Anthropic", "context_window": 1000000, "min_plan": "personal", "available": true } ] }POST /chat/completions
Create a chat completion (OpenAI shape; also at /v1/chat/completions). Set stream: true for server-sent events. MCP tools registered on the gateway are merged into the request automatically and executed server-side; while streaming, tool activity is reported in chunks carrying an aucore_event field, and non-streaming responses collect source URLs in aucore.sources.
| Parameter | Tipe | Catatan |
|---|---|---|
model | string | Required. Model ID from the catalog. |
messages | array | Required. Chat messages (system / user / assistant / tool). |
temperature | number | 0–2, default 1. |
max_tokens | integer | Capped at 32,000. |
top_p | number | Nucleus sampling. |
stream | boolean | SSE when true. |
tools | array | Function calling incl. MCP tools. Personal and Business plans. |
response_format | object | { "type": "json_object" } or a json_schema — output is validated and repaired before delivery. |
Respons
{ "id": "chatcmpl_aucore_…", "object": "chat.completion", "choices": [ { "message": { "role": "assistant", "content": "…" }, "finish_reason": "stop" } ], "usage": { "total_tokens": 172 }, "aucore": { "tokens_minimized": { "input": 210, "output": 172, "saved": 38 } } }POST /messages
Create a message in the Anthropic Messages shape (gateway path /v1/messages). Same models and key as chat completions; streaming uses Anthropic event types.
| Parameter | Tipe | Catatan |
|---|---|---|
model | string | Required. Model ID from the catalog. |
max_tokens | integer | Required by the Anthropic shape. |
messages | array | Required. user / assistant turns. |
system | string | Optional system prompt. |
stream | boolean | Anthropic-style SSE when true. |
Respons
{ "id": "msg_aucore_…", "type": "message", "role": "assistant", "content": [ { "type": "text", "text": "…" } ], "stop_reason": "end_turn", "usage": { "input_tokens": 24, "output_tokens": 148 } }POST /embeddings
Create embeddings (OpenAI shape) with an embedding model from the catalog.
| Parameter | Tipe | Catatan |
|---|---|---|
model | string | Required. Embedding model ID. |
input | string | array | Text to embed. |
Respons
{ "object": "list", "data": [ { "object": "embedding", "index": 0, "embedding": [0.012, -0.034, "…"] } ], "usage": { "total_tokens": 12 } }POST /moderations
Classify text for policy violations (OpenAI shape).
| Parameter | Tipe | Catatan |
|---|---|---|
input | string | Required. Text to classify. |
model | string | Optional moderation model ID. |
Respons
{ "id": "modr_…", "results": [ { "flagged": false, "categories": { "harassment": false }, "category_scores": { "harassment": 0.001 } } ] }GET /auth/google/start
The ONLY sign-in method: Google OAuth 2.0 (Authorization Code + PKCE, server-side). Redirect the browser here; after Google consent the gateway callback issues a session token and returns it to /login in a URL fragment. Email/password and Firebase sign-in were retired and now return HTTP 410.
| Parameter | Tipe | Catatan |
|---|---|---|
next | string | Optional post-login path, default /client. |
Respons
302 → accounts.google.com → 302 → /login#token=sess_…&next=/client
GET /account
Your profile, plan limits and current quota consumption.
Respons
{ "account": { "id": "acct_…", "plan": "business", "status": "active" }, "plan": { "id": "business", "rpm": 300, "daily_tokens": 50000000 }, "usage_now": { "minute_used": 4, "day_used": 1203 } }POST /account/rotate
Issue a new API key for your account. The previous key stops working immediately.
Respons
{ "ok": true, "api_key": "auc_live_…" }POST /account/rest-key
Auto-provision (or return) your REST toolkit key on the fallsad plane. Idempotent — later calls return the stored key. The daily quota follows your plan: Free 5/day, Personal 100/day, Business 1,000/day.
Respons
{ "ok": true, "api_key": "auc_rest_…", "quota_per_day": 1000, "plan": "business", "provisioned": true }POST /account/revoke
Permanently disable the current key.
Respons
{ "ok": true, "status": "revoked" }GET /usage
Analytics for your key: volume, tokens, latency percentiles, error mix, model split and recent requests.
Respons
{ "stats": { "requests_30d": 4820, "tokens_30d": 3660000, "latency": { "p95": 1280 }, "daily": [ … ], "models": [ … ] } }GET /defend/status
Public Well Defend Mode state. While an attack is being absorbed the gateway answers 503 on most routes and this endpoint reports defend: true; the web UI shows the WELL DEFEND screen until it lifts automatically.
Respons
{ "ok": true, "defend": false }GET /health
Service health probe, used by the status page.
Respons
{ "status": "ok", "version": "1.0.0" }REST toolkit — https://api.fallsad.biz.id
Plane utilitas terpisah dengan kuncinya sendiri (auc_rest_…), yang disediakan otomatis dari dashboard klien Anda melalui POST /account/rest-key di atas. Autentikasi: parameter query ?key=…, header x-api-key, atau Bearer. Kuota harian mengikuti paket Anda: Gratis 5 · Personal 100 · Business 1.000. Katalog interaktif lengkap ada di /restapi; grupnya adalah:
| Grup | Isi | Contoh |
|---|---|---|
| Fitur inti | Utilitas sehari-hari: alat Islami (jadwal salat), info (cuaca), alat (kode QR), dan lainnya | GET /api/info/weather?city=Jakarta&key=… |
| Scraping | Ambil dan ekstrak konten web sebagai data / markdown yang bersih | GET /api/tools/qr-code?text=hello&key=… |
| Seru-seruan | Kata-kata: kumpulan bergilir 1.000+ kutipan & kata bijak Indonesia | GET /me?key=… for quota & usage |
Respons — GET /me
{ "data": { "used_today": 12, "quota_per_day": 1000, "remaining_today": 988, "plan": "rest-paid" } }Kode error
| Kode | Tipe | Arti |
|---|---|---|
400 | invalid_request_error | Body tidak valid atau model tidak dikenal |
401 | authentication_error | Kunci tidak ada atau tidak dikenal |
403 | permission_error | Dicabut, kedaluwarsa, atau model di atas paket Anda |
410 | gone | Endpoint yang sudah dipensiunkan (login email/password & Firebase) |
429 | rate_limit_exceeded | Batas laju atau anggaran harian terlampaui |
502 | upstream_error | Penyedia model gagal |
503 | server_overloaded | Sedang penuh; coba lagi dengan backoff |
Header respons
X-AunuCore-Plan: business X-RateLimit-Limit: 180 X-RateLimit-Remaining: 174 X-RateLimit-Reset: 1786000060 X-RateLimit-Daily-Remaining: 24985