API keys
API keys
A gateway key is how your traffic reaches a forward. Swap your vendor baseURL for the Quorix gateway, send the key, and every call clears through us — metered against the balance you locked when you opened the position.
Gateway base URL
One endpoint for every vendor you hold a forward against.
https://api.quorixprotocol.xyz/v1Point your OpenAI or vendor SDK's baseURL here and pass your Quorix key as the API key — no other code changes.
Your keys
Mint, use and revoke — the secret is shown once.
Connect your wallet to create and manage API keys.
Quickstart
From key to metered request in a single file.
app.ts — quickstart
# Install the Quorix SDK (or reuse the OpenAI SDK — the gateway is drop-in)
npm i @quorix/sdk
# ── app.ts ─────────────────────────────────────────────
import { Quorix } from "@quorix/sdk";
// Swap your vendor baseURL for the Quorix gateway and pass your key.
const client = new Quorix({
baseURL: "https://api.quorixprotocol.xyz/v1",
apiKey: process.env.QUORIX_API_KEY, // qx_live_…
});
// Make a normal request — Quorix meters it against your open forward
// and draws the cost down from your locked balance in real time.
const res = await client.responses.create({
vendor: "openai",
model: "gpt-4o-mini",
input: "Summarize today's gateway traffic in one line.",
});
console.log(res.output_text);