Antimatter

Switching from OpenRouter

Change two lines, keep the rest

Antimatter speaks the same OpenAI compatible API and takes the same vendor/model ids, so you only change the base URL and the key. Below is what stays the same, what is different and how to compare prices model by model.

The two lines

Point your client at Antimatter and use an Antimatter key. Nothing else in the request changes.

# was https://openrouter.ai/api/v1
base_url = "https://useantimatter.com/v1"
# was OPENROUTER_API_KEY
api_key = os.environ["ANTIMATTER_API_KEY"]

The key comes from the dashboard. It is shown once.

The same request, end to end:

import os
from openai import OpenAI

client = OpenAI(
    base_url="https://useantimatter.com/v1",
    api_key=os.environ["ANTIMATTER_API_KEY"],
)

reply = client.chat.completions.create(
    model="z-ai/glm-5.4",
    messages=[{"role": "user", "content": "Hello"}],
)
print(reply.choices[0].message.content)

Have code already? Paste it into the converter and get it back pointed here, with each change marked.

What stays the same

  • Model ids stay the same, in the form vendor/model. There are 327 models today, listed by GET /v1/models.
  • The OpenAI chat completions API at /v1/chat/completions, so the official openai clients work with a new base URL. We also serve the Anthropic messages API and OpenAI's Responses API.
  • Streaming as server sent events, in the same chunk format, with usage on the last chunk.
  • Tool calling and structured output (response_format), translated where a lab uses another format.

What is different

Each request is billed at the provider's published price plus 10%. It is the same on every model and for every account, and every row of the price list states it.
With a wallet signature, or with email, Google or X, which makes a wallet for you. There is no password.
Right now credit is added in $ANTI, not stablecoins: ANTI on Robinhood Chain. It is credited in dollars at the credit price when it is claimed.
A new account's first requests are covered by a lifetime free allowance of $0.25.

What Antimatter adds

  • Autopilot: antimatter/auto and 9 task modes choose a model for each request by price, measured speed and measured capability.
  • Comparable fallback: x-antimatter-fallback: comparable hands a failed request to the nearest model that costs no more.
  • Strict JSON: x-antimatter-json: strict checks the answer against your schema and asks again if it does not match.
  • Resumable streams: a stream opened with x-antimatter-resumable: 1 runs to its end if the connection drops, and can be read again.
  • The batch API: /v1/files and /v1/batches, as OpenAI's clients send them.

Comparing prices, model by model

There is no blanket saving to quote, and this page claims none. Every row of the price list shows two rates for the same id, the one the provider publishes and the one billed here. To compare with what you pay now, put the rate on your current bill beside the billed rate for the same id.

A few current models from the labs most people know, read from the catalog just now, in USD per 1M tokens.
ModelProvider, in / outBilled here, in / outMargin
GLM 5.4z-ai/glm-5.4$1.40 / $4.40$1.54 / $4.84+10%
Pixtral Large 2502mistralai/pixtral-large-2502$2.00 / $6.00$2.20 / $6.60+10%
Gemini 4 Neongoogle/gemini-4-neon$3.00 / $15.00$3.30 / $16.50+10%
GPT-6.2 Astra Proopenai/gpt-6.2-astra-pro$8.00 / $40.00$8.80 / $44.00+10%
Qwen4 Maxqwen/qwen4-max$1.425 / $4.275$1.5675 / $4.7025+10%
Claude Fable 5.2anthropic/claude-fable-5.2$8.00 / $40.00$8.80 / $44.00+10%

See every model on the price list, with search and a calculator.

Start