Skip to main content

LLM Gateway

A unified interface for LLMs — pay with your launch fees or wallet balance.

Access Claude, Gemini, and GPT models through a single API. Every request is tracked, and you can fund usage directly from your token launch fees or authorize payments in USDC, ETH, BNKR, or other ERC-20s on Base.

LLM Dashboard

Manage your LLM Gateway at bankr.bot/llm — view usage breakdown by model, top up credits, and configure auto top-up.

Generate and configure API keys at bankr.bot/api.

Why Bankr LLM Gateway?

FeatureBenefit
Cost TrackingFull visibility into token usage and costs per request
Launch Fee FundingAutomatically allocate a portion of your token launch fees to AI
Flexible PaymentsPay with USDC, ETH, BNKR, and other ERC-20s on Base
Multi-ProviderAccess models from Anthropic, Google, OpenAI, Moonshot AI, and Alibaba
High AvailabilityAutomatic failover ensures your agents stay online
SDK CompatibleWorks with OpenAI and Anthropic SDKs — no code changes

Supported Providers

ProviderModels
AnthropicClaude Opus, Sonnet, Haiku
GoogleGemini Pro, Flash
OpenAIGPT-5.2, Codex, Mini, Nano
Moonshot AIKimi K2.5
AlibabaQwen3 Coder

See Supported Models for the full list with context windows and capabilities.

How It Works

┌─────────────┐  ┌─────────────┐  ┌─────────────┐
│ OpenClaw │ │ Claude Code │ │ AI SDK / │
│ │ │ │ │ Custom Apps │
└──────┬──────┘ └──────┬──────┘ └──────┬──────┘
│ │ │
└────────────────┼────────────────┘


┌─────────────────┐
│ LLM Gateway │
│ llm.bankr.bot │
└────────┬────────┘

┌──────────────┼──────────────┐
▼ ▼ ▼
Vertex AI Vertex AI OpenRouter
(Gemini) (Claude) (All Models)

Routing Strategy:

  • Gemini models → Vertex AI (primary), OpenRouter (fallback)
  • Claude models → Vertex AI (primary), OpenRouter (fallback)
  • GPT, Kimi, Qwen models → OpenRouter only

Quick Start

Base URL:

https://llm.bankr.bot

OpenAI-compatible format (/v1/chat/completions):

curl https://llm.bankr.bot/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: bk_YOUR_API_KEY" \
-d '{
"model": "claude-opus-4.6",
"messages": [{"role": "user", "content": "Hello!"}]
}'

Anthropic-compatible format (/v1/messages):

curl https://llm.bankr.bot/v1/messages \
-H "Content-Type: application/json" \
-H "X-API-Key: bk_YOUR_API_KEY" \
-d '{
"model": "claude-opus-4.6",
"max_tokens": 1024,
"messages": [{"role": "user", "content": "Hello!"}]
}'

Both formats work with all models. See API Reference for full details.

Key Permissions

Your API key must have LLM Gateway enabled at bankr.bot/api.

  • The Read Only toggle only affects the Agent API — LLM Gateway access is always available when enabled.
  • A key used only for LLM Gateway doesn't need Agent API enabled.

See Access Control for full details.

New Accounts Start with $0 LLM Credits

Top up your LLM credit balance at bankr.bot/llm?tab=credits before making your first request. Check your balance anytime with bankr llm credits. LLM credits are separate from your trading wallet — see the OpenClaw setup guide for details.

Setup with Bankr CLI

The Bankr CLI can configure your tools automatically:

npm install -g @bankr/cli
bankr login
bankr llm setup openclaw --install # OpenClaw
bankr llm setup opencode --install # OpenCode
bankr llm setup claude # Claude Code
bankr llm setup cursor # Cursor

If your LLM gateway key differs from your Bankr API key, you can set them separately:

bankr login --llm-key YOUR_LLM_KEY
# or
bankr config set llmKey YOUR_LLM_KEY

See Coding Agents for full details on each tool.

Credit Management

bankr llm credits                   # Check balance
bankr llm credits add 25 # Add $25 credits (USDC)
bankr llm credits add 50 --token 0x... --yes # Add $50 from specific token, no confirm
bankr llm credits auto # View auto top-up config
bankr llm credits auto --enable --amount 25 --threshold 5 --tokens USDC
bankr llm credits auto --disable

Next Steps

  • OpenClaw — Configure your OpenClaw agent
  • Coding Agents — Claude Code, Codex, Cursor, OpenCode, and more
  • Apps — Integrate via Chat Completions, Anthropic Messages, or the Vercel AI SDK
  • Install the Bankr Skill — Give your OpenClaw agent crypto and DeFi capabilities
  • API Reference — Full endpoint documentation
  • Supported Models — Full model list with context windows and capabilities