API Documentation

The abliterated.at API is OpenAI-compatible. If your application already speaks the OpenAI Chat Completions protocol, changing one base URL is enough to route requests to GLM 5.3 Abliterated.

Overview

Base URLhttps://abliterated.at/api/v1
ProtocolOpenAI Chat Completions
Modelglm-5.3-abliterated
AuthenticationBearer API key
BillingPrepaid credit, metered per token

Authentication

Create an API key in your dashboard and send it as a bearer token. Keys are shown once at creation. Never expose a key in browser code or a public repository.

curl https://abliterated.at/api/v1/chat/completions \
  -H "Authorization: Bearer abl_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "glm-5.3-abliterated",
    "messages": [{"role": "user", "content": "Hello"}]
  }'

Models

Exactly one model is served. Requests for any other model ID are rejected.

GET https://abliterated.at/api/v1/models

Chat completions

Standard request fields are accepted, including messages, temperature, max_tokens, top_p, stop, tools and tool_choice. Responses use the standard chat.completion shape with a usage object.

{
  "id": "chatcmpl_...",
  "object": "chat.completion",
  "model": "glm-5.3-abliterated",
  "choices": [{
    "index": 0,
    "message": {"role": "assistant", "content": "..."},
    "finish_reason": "stop"
  }],
  "usage": {
    "prompt_tokens": 42,
    "completion_tokens": 18,
    "total_tokens": 60
  }
}

Streaming

Set "stream": true to receive server-sent events. Usage is delivered in the final chunk when stream_options.include_usage is set.

{
  "model": "glm-5.3-abliterated",
  "messages": [{"role": "user", "content": "Write a haiku"}],
  "stream": true,
  "stream_options": {"include_usage": true}
}

Pricing

Credits are consumed from your prepaid balance according to reported token usage. Rates are USD per one million tokens and update automatically with the upstream catalogue.

Token typeRate / 1M tokens
Input$0.800000
Output$2.666667
Cached input$0.320000

A request is rejected with 402 before it reaches the model when your available balance is below the safety threshold or below the estimated maximum cost of the request.

Errors

Errors follow the OpenAI error envelope.

{
  "error": {
    "message": "Insufficient credit.",
    "type": "insufficient_quota",
    "code": "insufficient_quota"
  }
}
StatusMeaning
401Missing or invalid API key
402Insufficient credit or below safety threshold
403API access not enabled on this account
429Rate limited
503Service temporarily unavailable

Balance

GET https://abliterated.at/api/v1/balance
Authorization: Bearer abl_YOUR_KEY

{
  "object": "balance",
  "available_usd": "12.450000",
  "currency": "usd"
}