EN ▾
Start now

Apertus AI API: Hosted Alternatives Compared

An apertus ai api can mean three things: a service from the project's institutions, a third-party host that serves the open weights, or a server you run yourself. This page compares those paths with a hosted, independent API and gives you a script to judge them fairly.

Last updated

Four glowing API endpoint towers connected to one measuring dial, illustrating a side-by-side provider comparison

Summary

  1. Apertus is an open model, so API access can come from several places; there is no single owner of the endpoint.
  2. Compare hosts on model identity, token price, context, limits, data handling and refusal behaviour.
  3. This site is independent and not affiliated with Apertus; it serves a different open-weight model.
  4. Our API is OpenAI-compatible, text only, with 100,000 tokens of context and a flat token price.

What counts as an Apertus-class API

When people ask for an apertus ai api, they usually mean "an HTTP endpoint that answers prompts with an open model of that kind". Apertus comes from Swiss research institutions and has openly available weights. That is why the answer is not one URL. Open weights let many parties serve the same model, and they each choose their own price, limits and rules.

It also helps to define "Apertus-class". It means a general-purpose open-weight language model that you can call for chat, summarising, drafting and extraction. Several such models exist. If your need is the capability and not the exact Apertus brand, you have many more options than if you require that specific model.

This site is independent. It is not affiliated with Apertus, and the model behind its API is different. The sections below say where that matters.

The options, compared

OptionStrengthWeakness
Service run by the model's institutionsClosest to the source and its documentationMay be a demo or have limited capacity; terms are theirs
Third-party inference hostQuick to start; pay per tokenPolicies, retention and naming vary by host
Self-hosted serverFull control and data stays with youGPU cost, operations, and updates are yours
This hosted APIFlat published price, OpenAI-compatible, no content refusals for lawful adult useOne model only, and it is not Apertus

No option wins in every case. A research group that wants to study Apertus should go to the source. A team with GPUs and strict data rules may self-host. A small product team that wants a text endpoint tomorrow, with a price they can calculate, may prefer a hosted API.

Seven criteria that decide it

  1. Model identity: exact weights, size and tuning, written down.
  2. Price per token: input and output, converted into the cost of your typical request.
  3. Context length: total tokens, and whether output counts against it.
  4. Limits: requests per minute, concurrent requests and what happens at the limit.
  5. Features: streaming, tool calling and JSON mode if you need them.
  6. Data policy: training use, retention and region.
  7. Refusal behaviour: does it decline what your product legitimately asks?

The last one is the criterion people skip, and it is the one that most often forces a switch after launch. Test it before you commit.

How this API scores on those criteria

  • Model: one open-weight model, run by an independent provider. Not the official API of Apertus, Meta, Mistral, Qwen, DeepSeek, OpenAI, xAI, Google or Anthropic, and not a router.
  • Price: $0.15 per 1M input tokens and $0.50 per 1M output tokens. Prepaid, no subscription, credit never expires, failed or refused requests not charged.
  • Context: 100,000 tokens shared by prompt and completion. max_tokens is optional.
  • Limits: a full key allows 8 concurrent requests and 300 per minute; a trial key allows 2 and 60. Body size is capped at 8 MB.
  • Features: streaming over SSE with usage at the end, tool calling, JSON mode, and pass-through for temperature, top_p, stop, seed and penalties.
  • Data: prompts are not used for training.
  • Refusals: tuned to answer without content refusals for lawful adult use. Sexual content involving minors is never allowed.

Text only: no image, audio or video generation, no embeddings and no fine-tuning. The docs hold the details of each method.

A fair comparison script

Use the same prompts and settings against each candidate and record time, token counts and the answer. This script does that for any OpenAI-compatible endpoint. Here it targets this API; for another host, change the base URL, key and model name.

import time
from openai import OpenAI

client = OpenAI(
    base_url="https://api.apertusia.com/v1",
    api_key="YOUR_API_KEY",
)

prompts = [
    "Summarise in three bullets: remote teams need written decisions.",
    "Write a villain's monologue for a fantasy tabletop session, 120 words.",
    "Return JSON with fields title and tags for an article about solar panels.",
    "Rewrite this politely: Your invoice is late, pay now.",
]

for p in prompts:
    t0 = time.time()
    r = client.chat.completions.create(
        model="uncensored",
        messages=[{"role": "user", "content": p}],
        temperature=0.7,
        max_tokens=300,
    )
    dt = time.time() - t0
    u = r.usage
    print(f"{dt:.1f}s in={u.prompt_tokens} out={u.completion_tokens}")
    print(r.choices[0].message.content[:300])
    print("=" * 40)

Do not draw conclusions from one run. Network time, load and prompt length all move the numbers, so repeat the test at different times of day. Judge quality by reading, not by length.

A note on reproducibility

When you compare providers, fix what you can. The API passes through seed, temperature and top_p, so set a seed and a modest temperature and you get more stable runs to compare. Even then, two runs may differ a little, so judge patterns across several prompts and not one answer.

Record the date with every result. Hosted models and policies change, and a table of scores with no date is nearly useless six months later. Store the raw outputs, not only your notes, so that you can re-read them when a colleague disagrees with your ranking.

Moving between providers later

Lock-in is low when everyone speaks the OpenAI format. Keep the base URL, key and model ID in configuration, not in code. Then a change of provider is an edit to three values. Watch for differences in how hosts name the model, how they report usage and which optional fields they ignore.

Handle HTTP 429 properly from day one. Here, rate_limited means too many requests in a minute, concurrency means too many at once, and a 429 with Retry-After: 5 signals short overload. A streamed request holds its concurrency slot until the stream ends. Backoff code written for one provider usually works on the next.

If you are unsure what an uncensored model can and cannot do, the page on myths and facts about uncensored AI clears up common misunderstandings.

Cost example and getting started

Suppose your app sends 4,000 input tokens and gets 500 output tokens back per request. Input costs 4,000 x $0.15 / 1M = $0.0006, output costs 500 x $0.50 / 1M = $0.00025, so $0.00085 per request. At 30,000 requests a month, that is $25.50.

Top-ups run from $20 to $500 in whole dollars, paid in crypto only: USDT on TRC20 or USDC on Base. The bonus is 5% from $50, 10% from $100 and 15% from $200; see the pricing page. To test first, sign up and claim the $0.50 trial: one click, no card, valid for 7 days, one per person.

Common queries

Is there one official Apertus API?

Not necessarily. Because the weights are open, access may come from the project's institutions, third-party hosts or your own server. Check the project's pages for what is currently offered.

Is this API the Apertus model?

No. This site is independent and not affiliated with Apertus. It serves a single, different open-weight model.

What will a request cost?

At $0.15 per 1M input tokens and $0.50 per 1M output tokens, 4,000 input and 500 output tokens cost $0.00085. Failed or refused requests are not charged.

Can I switch providers without rewriting code?

Usually yes, if both are OpenAI-compatible. Keep the base URL, key and model ID in configuration, and test the differences in naming and usage reporting.

Secure your key now

Register, grab the key, point to our endpoint. Done.