Vexrail LogoVexrail
Developer First

Integrate Vexrail in Minutes.

Works with the AI SDKs you already use. Just change the base URL and add two headers — no new dependencies.

Python
OpenAI Python SDK
Node.js
OpenAI Node.js SDK
REST API
REST API
React
LangChain
Go
Vercel AI SDK

Simple 3-Step Setup

Start collecting insights and monetizing in under 10 minutes.

1

Get Your API Keys

Create a project on the dashboard and generate your publishable and secret key pair.

2

Update Base URL & Headers

Point your existing AI SDK to api.vexrail.com and add two authentication headers.

3

Use as Normal

Make chat completion calls exactly as before. Vexrail handles analytics and monetization transparently.

Why developers love Vexrail
No new dependencies to install
< 50ms of added latency per request
Works with OpenAI, Anthropic, and more
app.ts
import OpenAI from "openai";

// Point your existing OpenAI SDK to Vexrail
const client = new OpenAI({
  baseURL: "https://api.vexrail.com/v1",
  apiKey: "unused",
  defaultHeaders: {
    "x-publishable-key": process.env.VEXRAIL_PK!,
    "x-secret-key": process.env.VEXRAIL_SK!,
  },
});

// Use exactly as before — no code changes needed
const response = await client.chat.completions.create({
  model: "gpt-4o-mini",
  messages: [{ role: "user", content: "..." }],
});

console.log(response.choices[0].message.content);

Ready to build?