Overview
One gateway for your product's AI calls, with per-customer credit, limits and usage built in.
Hixel sits between your product and the model providers. You point your model calls at the gateway and name the customer (and the person) each call is for. In return you get inference from several providers through one key, a prepaid wallet per customer, spend and rate limits, your customers' own provider keys, and a record of every request.
You keep your own product, your own users and your own pricing. Hixel holds the plumbing you would otherwise build before you could charge for AI features.
How it fits together#
your app ──► https://api.hixel.dev/v1/responses (the gateway)
x-hixel-customer: org_42
x-hixel-member: user_7
│ checks the key, the customer's balance and limits
│ calls the provider, streams the answer back
▼ records usage, debits the wallet
your backend ──► https://api.hixel.dev/v1/customers/… (the management API)
customers, credits, keys, usage, webhooksThere are two APIs on the same host:
- The gateway takes inference requests in the OpenAI Responses, OpenAI Chat Completions and Anthropic Messages formats, so the official SDKs work by changing their base URL.
- The management API under
https://api.hixel.dev/v1lets your backend manage an environment (its customers, their wallets and credit, keys, usage, webhooks and payments) and, with a project key, the whole project: its environments and their gateway settings.
What the dashboard can do for a project, the API can do too; only the organization itself, its members, and creating a project stay in the dashboard.
What you can build with it#
Call OpenAI, Anthropic and Google models through one key and three API formats.
Bill per customerGive each customer a prepaid wallet, grant plan allowances, sell top-ups through your own Stripe account.
Set limitsCap spend per day, week or month, and requests or tokens per minute, per customer and per member.
React to eventsGet a signed webhook when a balance runs low, a credit lands or a key is revoked.
Where to start#
- Read Core concepts for the five words the rest of these pages use.
- Follow the Quickstart: a key, a first request, its usage, and credit for a customer, in about ten minutes.
- Read Authentication and Errors before you ship.