Skip to content

Core concepts ​

A key belongs to one group ​

The group decides two things: which models you can call and what multiplier you pay. The same model can cost different amounts in different groups because they sit on different upstream accounts.

bash
curl -H "Authorization: Bearer $KEY" https://leekbox.ai/v1/models

That returns your group's real model list — more accurate than the public price table.

Multiplier and price ​

What you pay = base model price × group multiplier. The price table already shows the result.

Credits: subscription first, then balance ​

Each call burns subscription allowance first, then account balance. Running out of subscription does not break requests; it simply moves on to balance. Empty balance returns 402.

Upstreams and failover ​

Every group has several upstreams (different relays or official accounts). The gateway picks one by health, rate-limit state and sticky sessions, and switches to the next when a call fails. Once a streaming response has started, it does not switch — that would splice two answers together.

No protocol rewriting by default ​

LeekBox is a native gateway: Anthropic requests go to Anthropic upstreams, OpenAI requests to OpenAI upstreams. Cross-vendor conversion is available but never implicit.

LeekBox — unified AI gateway