DOCS
From key to first token.
Create a key in the workspace console. Point the OpenAI SDK at the Aerogate base URL. The gateway address defaults to https://api.aerogate.dev.
quickstart.tsTYPESCRIPT
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.AEROGATE_KEY,
baseURL: "https://api.aerogate.dev/v1"
});
const response = await client.chat.completions.create({
model: "gpt-6-astra",
messages,
});