Quickstart
Change two lines: the base URL and the key. Any OpenAI-compatible SDK, framework or plain HTTP works with every model in the catalog.
- Sign in and top up (card, or USDC on Solana).
- Create an API key in your dashboard. It is shown once.
- Point your SDK at the base URL below and pick any model id from the catalog.
environment
OPENAI_BASE_URL=https://zinf.dev/v1 OPENAI_API_KEY=xk_live_...
python
from openai import OpenAI
client = OpenAI(
base_url="https://zinf.dev/v1",
api_key="xk_live_...", # your Xava Inference key
)
r = client.chat.completions.create(
model="openai/gpt-5.4",
messages=[{"role": "user", "content": "Hello!"}],
)
print(r.choices[0].message.content)typescript
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://zinf.dev/v1",
apiKey: process.env.XINF_API_KEY,
});
const stream = await client.chat.completions.create({
model: "anthropic/claude-sonnet-5",
messages: [{ role: "user", content: "Hello!" }],
stream: true,
});
for await (const chunk of stream) process.stdout.write(chunk.choices[0]?.delta?.content ?? "");curl
curl https://zinf.dev/v1/chat/completions \
-H "Authorization: Bearer $XINF_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"openai/gpt-5.4","messages":[{"role":"user","content":"Hello!"}]}'