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
- Quick Start — Send your first request in one minute.
- Overview — Endpoints, authentication, and OpenAI compatibility.
- Check remaining tokens — Read your token balance before a long job.
- Opencode — Point Opencode at the OpenAI-compatible endpoint.
- Claude — Use the Anthropic-compatible /v1/messages endpoint.
- 9Router — Add a custom OpenAI-compatible provider.
- 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.