Quickstart

Up and running in 60 seconds. NexGate is fully compatible with the OpenAI API.

Install

pip install openai

Make a request

Change base_url to https://nexgate.app/api/v1 and use your NexGate key.

from openai import OpenAI

client = OpenAI(
    base_url="https://nexgate.app/api/v1",
    api_key="ng-your-key",
)
response = client.chat.completions.create(
    model="gpt-5-mini",
    messages=[{"role":"user","content":"Hello!"}]
)
print(response.choices[0].message.content)
Get your key at dashboard → API Keys. Keys start with ng-.