API reference
The base URL is https://api.abliterate.tech/v1. Send your key as Authorization: Bearer sk-abl-... or x-api-key.
Inference
| Route | What it does | Key |
|---|---|---|
POST /v1/chat/completions | Chat completion, OpenAI format | Inference |
POST /v1/completions | Text completion, OpenAI format | Inference |
POST /v1/messages | Message, Anthropic format | Inference |
POST /v1/messages/count_tokens | Estimate a request's input tokens, free | Inference |
POST /v1/responses | Response, OpenAI Responses format | Inference |
Models
| Route | What it does | Key |
|---|---|---|
GET /v1/models | List models and prices | None |
GET /v1/models/{model_id} | One model, with whether a worker looks to be running | None |
Account
| Route | What it does | Key |
|---|---|---|
GET /v1/account | Credit, usage this month and limits | Either |
GET /v1/credits | Total credit bought and used | Either |
POST /v1/preview | Free preview credit, when open | None |
Usage
| Route | What it does | Key |
|---|---|---|
GET /v1/usage | Usage by model, key and project, and recent requests | Either |
GET /v1/usage/{request_id} | What one request cost, and its policy checks | Either |
Keys
| Route | What it does | Key |
|---|---|---|
GET /v1/keys | List keys | Admin |
POST /v1/keys | Create a key, shown once | Admin |
DELETE /v1/keys/{key_id} | Revoke a key | Admin |
Projects
| Route | What it does | Key |
|---|---|---|
GET /v1/projects | List projects | Either |
POST /v1/projects | Create a project | Admin |
GET /v1/projects/{project_id} | One project, with its usage this month | Either |
PATCH /v1/projects/{project_id} | Rename a project or change its limit | Admin |
DELETE /v1/projects/{project_id} | Archive a project, which stops its keys | Admin |
Policies
| Route | What it does | Key |
|---|---|---|
GET /v1/policies | List your policies and the platform rule | Either |
POST /v1/policies | Create a policy | Admin |
GET /v1/policies/decisions | What checks decided, with no text, as JSON or JSONL | Either |
POST /v1/policies/evaluate | Try a rule on sample text, paid like any check | Inference |
GET /v1/policies/{policy_id} | One policy, with its published versions | Either |
PATCH /v1/policies/{policy_id} | Change a policy, publishing a new version | Admin |
DELETE /v1/policies/{policy_id} | Delete a policy | Admin |
Alerts
| Route | What it does | Key |
|---|---|---|
GET /v1/alerts | Alert settings and recent alerts | Either |
POST /v1/alerts/settings | Set thresholds, a low-credit alert and a webhook | Admin |
Billing
| Route | What it does | Key |
|---|---|---|
GET /v1/plans | List monthly plans | None |
GET /v1/billing/plan | This account's plan | Either |
POST /v1/billing/plan | Start a plan, or change plan from the next renewal | Admin |
DELETE /v1/billing/plan | Cancel at the end of the month paid for | Admin |
POST /v1/billing/spend-limit | Cap monthly usage | Admin |
DELETE /v1/billing/spend-limit | Remove the cap | Admin |
GET /v1/billing/settings | Auto-reload settings, with advice | Either |
POST /v1/billing/settings | Change auto-reload | Admin |
POST /v1/billing/top-up | A Checkout page to add credit | Admin |
GET /v1/billing/transactions | Money in and out of credit | Either |
POST /v1/billing/portal | A page to manage your card and receipts | Admin |
Training data
| Route | What it does | Key |
|---|---|---|
POST /v1/datasets | Create a dataset and write a paid three-record preview | Inference |
GET /v1/datasets | List datasets | Inference |
GET /v1/datasets/{dataset_id} | One dataset's progress and cost | Inference |
POST /v1/datasets/{dataset_id}/promote | Write records in the background | Inference |
POST /v1/datasets/{dataset_id}/cancel | Stop writing records | Inference |
GET /v1/datasets/{dataset_id}/records | Download records as JSONL, CSV or JSON | Inference |
DELETE /v1/datasets/{dataset_id} | Delete a dataset and its records | Inference |
Service
| Route | What it does | Key |
|---|---|---|
GET /v1/status | Availability measured from real requests | None |
GET /v1/benchmarks | Published benchmark numbers | None |