For chat / embeddings / images / STT / TTS, use the official `openai` npm package with `baseURL: 'https://api.aigateway.sh/v1'`. The `aigateway` package wraps the aggregator-native surface OpenAI doesn't model — long-running jobs, sub-account billing, evals, replays, signed file URLs, and webhook signature verification.
Node 18+. Zero runtime dependencies. ESM + CJS exports. Distribution name on npm is aigateway-js (the bare 'aigateway' name was unavailable).