Every request is authenticated with your API key and paid from its token balance. The gateway speaks the Anthropic Messages API and the OpenAI Chat Completions API, so most clients only need a different base URL.
curl https://hummbit.space/v1/messages \
-H "x-api-key: YOUR_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "content-type: application/json" \
-d '{"model": "claude-sonnet-5-5", "max_tokens": 256, "messages": [{"role": "user", "content": "Hello"}]}'The Connect page has step-by-step settings for each app. The only rule to remember is which URL a client expects.
/v1./v1/models. Short aliases such as sonnet-5.5 also work where claude-* names are rejected.Each request is charged in tokens from your balance. The "Charged" column in History shows the result, and the ⓘ icon next to it shows the calculation.
Charged = (input × weight + output × weight + cache writes × weight + cache reads × weight) × model multiplier
The current weights and model multipliers are listed below and on the Overview page under "Model rates". Failed requests (service errors) are not charged.
Send messages in the Anthropic format. The official Anthropic SDKs take the base URL without /v1.
from anthropic import Anthropic
client = Anthropic(base_url="https://hummbit.space", api_key="YOUR_API_KEY")
msg = client.messages.create(
model="claude-sonnet-5-5",
max_tokens=1024,
messages=[{"role": "user", "content": "Hello!"}],
)
print(msg.content[0].text)import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic({ baseURL: "https://hummbit.space", apiKey: "YOUR_API_KEY" });
const msg = await client.messages.create({
model: "claude-sonnet-5-5",
max_tokens: 1024,
messages: [{ role: "user", content: "Hello!" }],
});Any OpenAI-compatible client works with the /v1 base URL and Bearer authentication.
from openai import OpenAI
client = OpenAI(base_url="https://hummbit.space/v1", api_key="YOUR_API_KEY")
r = client.chat.completions.create(
model="claude-sonnet-5-5",
messages=[{"role": "user", "content": "Hello!"}],
)
print(r.choices[0].message.content)curl https://hummbit.space/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "claude-sonnet-5-5", "messages": [{"role": "user", "content": "Hello"}]}'Errors come back in the format of the API you called (Anthropic or OpenAI). An error before generation starts costs nothing; you pay only for tokens actually generated.