Tokpum AI Gateway

Tokpum is an LLM gateway with OpenAI- and Anthropic-compatible APIs. One account, one sk- API key, and every model the gateway serves - chat, image, and video - through the wire protocol your code already speaks.

Accounts are wallet-based: you sign in with an Ethereum wallet, top up a prepaid balance, and are billed per token as you go. Membership perks are on-chain: a TokpumPass NFT sets your API discount level, and the TKPM token levels it up.

Core concepts

  • Account and balance. Your console account holds a prepaid balance. Inference requests debit it per token; a request is rejected when the balance is insufficient.
  • API key. A sk- secret created in the console. It authenticates both the OpenAI-compatible surface (/v1/chat/completions and friends) and the Anthropic-compatible surface (/v1/messages) as a Bearer token.
  • Models and channels. The gateway routes each model name to upstream provider channels. You do not pick a provider; you use a model name and the gateway picks the channel.
  • Routing strategy. Per model, you can stay in market mode (gateway picks the best channel) or pin direct mode to specific channels. See Routing.
  • Pricing. Per-token prices are public and require no authentication: the public pricing catalog.

Where to go next

PageWhat it covers
Getting StartedWallet to first API call in five minutes
FundsDeposits, withdrawals, balance
RoutingMarket and direct strategies, price caps
CompatibilityOpenAI and Anthropic SDK setup
Agent Onboarding (MCP)UI-less self-serve onboarding for AI agents
Errors and LimitsError semantics, rate limits, retries
FAQShort answers

Other documentation surfaces

  • API Reference - the machine-oriented index with curl examples for every endpoint, plus per-endpoint pages under https://tokpum.com/agents/. This site links there for exact request/response shapes instead of duplicating them.
  • Console - the web UI for keys, funds, routing, usage, and logs.