API Documentation

BankAI exposes an OpenAI-compatible API (plus Anthropic /v1/messages and OpenAI /v1/responses compatibility). Authenticate every request with an Authorization: Bearer header carrying your API key.

Base URL: https://bankai.web.id/api

Quick Start

curl -X POST https://bankai.web.id/api/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"auto","messages":[{"role":"user","content":"Halo!"}]}'

Check remaining tokens

curl https://bankai.web.id/api/v1/quota -H "Authorization: Bearer YOUR_API_KEY"

Sections

  1. Quick Start — Send your first request in one minute.
  2. Overview — Endpoints, authentication, and OpenAI compatibility.
  3. Check remaining tokens — Read your token balance before a long job.
  4. Opencode — Point Opencode at the OpenAI-compatible endpoint.
  5. Claude — Use the Anthropic-compatible /v1/messages endpoint.
  6. 9Router — Add a custom OpenAI-compatible provider.
  7. Hermes — Configure a custom endpoint for the Hermes agent CLI.

🚀 Ready to Use the All-in-One API Key?

Sign up, top up with QRIS, and start building with ChatGPT, Claude, DeepSeek and every other model through one key.

🔑 SIGN UP NOW · Pricing