Install the package, import the client, make your first call. No boilerplate, no mystery — same OpenAI-compatible surface in both languages.
| Method | Parameters | Return type |
|---|---|---|
| Python · NorthgateClient(api_key, base_url="...", route="balanced") | api_key (str, required), base_url (str), route (str) | Client instance exposing client.chat.completions |
| Node · new NorthgateClient({ apiKey, baseUrl, route }) | apiKey (string, required), baseUrl (string), route (string) | Client instance exposing client.chat.completions |
| client.chat.completions.create(...) | model (str, required), messages (list, required), plus any **kwargs (temperature, max_tokens, stream, route, …) | Parsed JSON dict / object: { choices: [{ message: { content: … } }], usage: { … } } |
Default is balanced. Pass route to the constructor or per-call.
Streaming, function calling, error handling, and per-call route overrides — in the repo.
Sign up and get a key in under a minute.
Get API Key