Get started

Rate limits

Abliterator rate limits by plan: requests per minute and concurrent requests, how 429 errors and Retry-After work, and retry code with backoff for Python and Node.

Reviewed APIRate limits

Quick answer

Each plan limits requests per minute and requests in flight at once, per account. Free allows 20 per minute and 2 at once; Scale allows 600 and 32. Over either limit you get a 429 with a Retry-After header: wait that many seconds and retry.

Limits by plan

Plan Requests per minute Concurrent requests
Free 20 2
Developer 120 8
Growth 300 16
Scale 600 32
Enterprise Custom Custom

Plan prices and credit are on /pricing. GET /api/v1/key returns your current limits:

curl -s https://abliterator.ai/api/v1/key -H "Authorization: Bearer $ABL_API_KEY"
{"data": {"plan": "developer", "rate_limit": {"requests_per_minute": 120, "concurrency": 8}}}

The response has more fields than shown; see usage and billing.

How the limits work

Requests per minute is a sliding 60-second window per account. Every request Abliterator admits counts, whether it streams or not. Requests rejected earlier, for a bad key, an unknown model or missing credit, do not count.

Concurrency is the number of requests your account has in flight at the same moment. A request takes a slot when Abliterator admits it and frees it when the response is finished. For a stream, that is when the last event is sent. If a client disconnects in the middle of a stream, Abliterator keeps reading the model's output for up to 60 seconds so the tokens are metered, and the slot stays taken until then.

Both limits apply per account, across all of its keys. A request turned away for concurrency has already been counted toward the per-minute limit.

The free playground has its own limit: 30 messages per 10 minutes per visitor.

429 responses

There are two 429 errors. Both use the error format of the endpoint you called.

Limit Message Retry-After
Requests per minute Rate limit reached: the Free plan allows 20 requests per minute. Upgrade at https://abliterator.ai/pricing for more. 10 (seconds)
Concurrency Too many requests in flight: the Free plan allows 2 at once. Wait for one to finish or upgrade at https://abliterator.ai/pricing. 2 (seconds)

The plan name and numbers in the message match your plan. In the OpenAI format the error type is rate_limit_exceeded; in the Anthropic format it is rate_limit_error.

Every 429 carries Retry-After. Wait that many seconds before you retry: 10 for the per-minute limit, and 2 for the concurrency limit, since one of your own requests usually finishes soon.

Retry with backoff

Retry 429 and 502. Do not retry 400, 401, 402, 403 or 404; the same request fails the same way. See errors for each status.

The official OpenAI and Anthropic SDKs already retry 429 and 5xx responses twice by default and read Retry-After. Raise their retry count for batch jobs:

import os

from openai import OpenAI

client = OpenAI(base_url="https://abliterator.ai/v1", api_key=os.environ["ABL_API_KEY"], max_retries=6)

If you call the API over plain HTTP, honor Retry-After on 429s and use exponential backoff with jitter for 502s, which do not carry the header.

Python

import os
import random
import time

import requests

URL = "https://abliterator.ai/v1/chat/completions"
HEADERS = {"Authorization": f"Bearer {os.environ['ABL_API_KEY']}"}
RETRYABLE = {429, 502}


def chat(body, max_attempts=6):
    for attempt in range(max_attempts):
        resp = requests.post(URL, headers=HEADERS, json=body, timeout=600)
        if resp.status_code not in RETRYABLE:
            resp.raise_for_status()
            return resp.json()
        retry_after = resp.headers.get("Retry-After")
        delay = float(retry_after) if retry_after else min(2 ** attempt, 30)
        time.sleep(delay + random.uniform(0, 1))
    resp.raise_for_status()


reply = chat({
    "model": "deepseek-v4.1-flash-abliterated",
    "max_tokens": 2048,
    "messages": [{"role": "user", "content": "Name three signs of a credential-stuffing attack in web server logs."}],
})
print(reply["choices"][0]["message"]["content"])

Node

const URL = "https://abliterator.ai/v1/chat/completions";
const RETRYABLE = new Set([429, 502]);
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));

async function chat(body, maxAttempts = 6) {
  for (let attempt = 0; attempt < maxAttempts; attempt++) {
    const resp = await fetch(URL, {
      method: "POST",
      headers: {
        Authorization: `Bearer ${process.env.ABL_API_KEY}`,
        "Content-Type": "application/json",
      },
      body: JSON.stringify(body),
    });
    if (!RETRYABLE.has(resp.status)) {
      if (!resp.ok) throw new Error(`${resp.status}: ${await resp.text()}`);
      return resp.json();
    }
    const retryAfter = resp.headers.get("retry-after");
    const delay = retryAfter ? Number(retryAfter) * 1000 : Math.min(2 ** attempt, 30) * 1000;
    await sleep(delay + Math.random() * 1000);
  }
  throw new Error("rate limited: out of retries");
}

const reply = await chat({
  model: "deepseek-v4.1-flash-abliterated",
  max_tokens: 2048,
  messages: [{ role: "user", content: "Name three signs of a credential-stuffing attack in web server logs." }],
});
console.log(reply.choices[0].message.content);

Stay under the limits

  • Cap your own concurrency at your plan's limit. A worker pool of 8 on Developer never sees a concurrency 429. Most eval tools have a setting for this: promptfoo maxConcurrency, Inspect --max-connections, garak parallel_attempts, DeepEval max_concurrent.
  • Count background requests. Chat apps and coding agents send extra requests for titles, summaries and subagents. They count against both limits.
  • Set max_tokens. Shorter responses free concurrency slots sooner.
  • Need more? Higher plans raise both limits. Enterprise plans have custom limits; see /pricing.

Frequently asked questions

Are rate limits per key or per account?

Per account. Every key on an account shares the same requests-per-minute and concurrency limits, so splitting traffic across keys does not raise them.

Does a streaming request count against concurrency until it finishes?

Yes. A request holds one concurrency slot from the moment it is admitted until its response, streamed or not, is complete.