One endpoint for the models you use.
JZ Gateway is an invite-only model gateway, hosted in Singapore.
Point any OpenAI-, Anthropic- or Gemini-compatible client at
api.joezhang.org and choose the model per request.
Invites are handled by direct message on X.
Connect in one line
Keep your SDK and your code. Change the base URL, use the key from your console, and pick any model on the list below.
- OpenAI-compatible
https://api.joezhang.org/v1- Anthropic-compatible
https://api.joezhang.org- Gemini-compatible
https://api.joezhang.org- Your key
- Starts with
sk-. Send it as a Bearer token,x-api-keyorx-goog-api-key.
from openai import OpenAI
client = OpenAI(
base_url="https://api.joezhang.org/v1",
api_key="sk-...",
)
reply = client.chat.completions.create(
model="MODEL",
messages=[{"role": "user", "content": "Hello"}],
)
print(reply.choices[0].message.content)
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.joezhang.org/v1",
apiKey: process.env.JZ_API_KEY,
});
const reply = await client.chat.completions.create({
model: "MODEL",
messages: [{ role: "user", content: "Hello" }],
});
console.log(reply.choices[0].message.content);
import anthropic
client = anthropic.Anthropic(
base_url="https://api.joezhang.org",
api_key="sk-...",
)
message = client.messages.create(
model="MODEL",
max_tokens=1024,
messages=[{"role": "user", "content": "Hello"}],
)
print(message.content[0].text)
# add to ~/.zshrc or run in your shell
export ANTHROPIC_BASE_URL=https://api.joezhang.org
export ANTHROPIC_AUTH_TOKEN=sk-...
export ANTHROPIC_MODEL=
claude
curl https://api.joezhang.org/v1/chat/completions \
-H "Authorization: Bearer $JZ_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "",
"stream": true,
"messages": [{"role": "user", "content": "Hello"}]
}'
Models on the line
Read live from the gateway. Prices are in US dollars per million tokens unless a model is billed per request.
| Model | Provider | Input | Output | Speaks |
|---|---|---|---|---|
| Loading the live model list… | ||||
What happens to a request
-
Key check
Your key is checked against its quota, expiry, model list and IP allow-list.
-
Route
The model name picks which upstream channels can serve the request.
-
Upstream call
The request goes to a channel. If that channel fails, the gateway retries on another one, up to two times.
-
Stream back
Tokens stream to you as they are generated. Long responses are not cut off at a proxy timeout.
-
Meter
Usage is recorded per request: model, token counts and cost, visible in your console.
House rules
- Invite only
- Accounts and keys are issued by hand. There is no public sign-up.
- Every key has limits
- A spending quota, plus optional expiry, model allow-list and IP allow-list. A disabled key stops working on its next request.
- Prompts are not stored
- The gateway keeps request metadata for billing: time, model, token counts and client IP. Prompt and response bodies are not written to disk.
- Provider terms still apply
- Requests are served by third-party model providers under their own usage policies.