Referensi

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.

AutentikasiBearer (optional)

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.

AutentikasiBearer (required)
ParameterTipeCatatan
modelstringRequired. Model ID from the catalog.
messagesarrayRequired. Chat messages (system / user / assistant / tool).
temperaturenumber0–2, default 1.
max_tokensintegerCapped at 32,000.
top_pnumberNucleus sampling.
streambooleanSSE when true.
toolsarrayFunction calling incl. MCP tools. Personal and Business plans.
response_formatobject{ "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.

AutentikasiBearer (required)
ParameterTipeCatatan
modelstringRequired. Model ID from the catalog.
max_tokensintegerRequired by the Anthropic shape.
messagesarrayRequired. user / assistant turns.
systemstringOptional system prompt.
streambooleanAnthropic-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.

AutentikasiBearer (required)
ParameterTipeCatatan
modelstringRequired. Embedding model ID.
inputstring | arrayText 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).

AutentikasiBearer (required)
ParameterTipeCatatan
inputstringRequired. Text to classify.
modelstringOptional 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.

AutentikasiNone (browser redirect)
ParameterTipeCatatan
nextstringOptional 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.

AutentikasiBearer (required)

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.

AutentikasiBearer (required)

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.

AutentikasiBearer (required)

Respons

{ "ok": true, "api_key": "auc_rest_…", "quota_per_day": 1000, "plan": "business", "provisioned": true }

POST /account/revoke

Permanently disable the current key.

AutentikasiBearer (required)

Respons

{ "ok": true, "status": "revoked" }

GET /usage

Analytics for your key: volume, tokens, latency percentiles, error mix, model split and recent requests.

AutentikasiBearer (required)

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.

AutentikasiNone

Respons

{ "ok": true, "defend": false }

GET /health

Service health probe, used by the status page.

AutentikasiNone

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:

GrupIsiContoh
Fitur intiUtilitas sehari-hari: alat Islami (jadwal salat), info (cuaca), alat (kode QR), dan lainnyaGET /api/info/weather?city=Jakarta&key=…
ScrapingAmbil dan ekstrak konten web sebagai data / markdown yang bersihGET /api/tools/qr-code?text=hello&key=…
Seru-seruanKata-kata: kumpulan bergilir 1.000+ kutipan & kata bijak IndonesiaGET /me?key=… for quota & usage

Respons — GET /me

{ "data": { "used_today": 12, "quota_per_day": 1000, "remaining_today": 988, "plan": "rest-paid" } }

Kode error

KodeTipeArti
400invalid_request_errorBody tidak valid atau model tidak dikenal
401authentication_errorKunci tidak ada atau tidak dikenal
403permission_errorDicabut, kedaluwarsa, atau model di atas paket Anda
410goneEndpoint yang sudah dipensiunkan (login email/password & Firebase)
429rate_limit_exceededBatas laju atau anggaran harian terlampaui
502upstream_errorPenyedia model gagal
503server_overloadedSedang 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