Overview

The only public origin is https://api.allternit.com (Cloud API). Credentials depend on what you are calling.

Make an Allternit API key in the app

You do not need to call /api/v1/api-keys yourself:
  • Desktop and ai.allternit.com: open Cloud Console, then the API Keys tab.
  • Phone and m.allternit.com: open the ACI screen. The same key list is under your computers.
  • platform.allternit.com: open API Keys, choose Create key, and pick the Run models scope (inference). The Sign up and get a key button on platform.allternit.com/cloud opens this form with that scope already picked. See Get started with Allternit Cloud.
The list is called Operator keys. Name the key, then choose Mint compute key. Turn on Can run models only when the key needs the inference scope, because those calls spend your prepaid credits. The button then reads Mint compute + models key. The full key shows once, so copy it right away. To turn off a key, press and hold Hold to revoke. Organization-scoped gateway admin routes under /api/v1/gateway/* (virtual-key management) are served by the Allternit API node, not by the hosted Cloud API, and require an organization owner or admin role. The Allternit API on :8013 is not a public auth surface. Production clients do not send tokens there. Relayed requests forward the original Clerk Authorization header to the node.
Local development may call http://127.0.0.1:8013 on the same machine. That is the data plane, not a second production API.

LLM gateway virtual keys

The Allternit LLM gateway uses virtual keys for authentication. Each virtual key is a scoped, rotatable credential that maps to a tenant, organization, or user profile. Virtual keys are used for the /v1 gateway routes served by the Allternit API node, including chat completions, embeddings, files, and batches. The hosted Cloud API at api.allternit.com serves only POST /v1/chat/completions and GET /v1/models under /v1, and authenticates them with an alt_ API key.

Virtual keys

Virtual keys start with ak-. The gateway stores only the SHA-256 hash of the key; the plaintext is shown once at creation and cannot be recovered.

Base URL

Data-plane node LLM gateway (desktop, provisioned or paired node; cargo run -p allternit-api locally):

Create a virtual key

This endpoint requires a Clerk JWT and organization owner or admin role.

Request body

Example response

List virtual keys

Update a virtual key

Revoke a virtual key

Authentication errors

Security best practices

Never commit virtual keys to version control.
  • Store keys in environment variables or a secrets manager.
  • Rotate keys regularly and revoke unused keys.
  • Use separate keys for production, staging, and development.
  • Set monthly_budget_cents and rate_limit_rpm on every key.
  • Restrict allowed_models to the smallest set required.