Documentation menu

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, webhooks

There 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/v1 lets 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#

Where to start#

  1. Read Core concepts for the five words the rest of these pages use.
  2. Follow the Quickstart: a key, a first request, its usage, and credit for a customer, in about ten minutes.
  3. Read Authentication and Errors before you ship.