Quickstart
SRAN is an OpenAI-compatible gateway. Change your base URL, everything else stays the same.
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.SRAN_API_KEY,
baseURL: "https://api.sran.ai/v1",
});
const response = await client.chat.completions.create({
model: "gpt-4o",
messages: [{ role: "user", content: "Hello" }],
});What's coming
- Full API reference — every endpoint, every parameter
- Guides for routing policies, DLP rules, and cost controls
- SDK examples in Python, TypeScript, Go, and Ruby
- Webhook reference for usage alerts and policy events
Questions?
Reach us at support@sran.ai — we read every email and usually reply within a day.