Introduction
OpenAI-compatible AI API gateway with prepaid credits, usage tracking, and multi-model access.
What is NexGate?
NexGate is an OpenAI-compatible AI API gateway for verified chat models. You use one API key, one base URL, prepaid credits, and a single /api/v1/chat/completions endpoint.
Note
NexGate currently documents chat completions. Embeddings and image generation are not part of the public API surface yet.
OpenAI-compatible API
Change the base URL and API key. Keep using OpenAI-compatible SDKs.
Prepaid credits
Buy credits before use. Requests stop when credits run out.
Model catalog
Use GPT, DeepSeek, Kimi, Grok, and Llama models.
Usage tracking
View per-request cost, token counts, latency, status, and CSV exports.
Who is NexGate for?
Core concepts
Sign up at nexgate.app/sign-up and verify your email. Eligible new users receive $5 in free credits — no card required.
API keys start with ng-. The plaintext key is shown once.
Use a direct model ID such as gpt-5.5.
Point your SDK at https://api.nexgate.app/v1 and call chat completions.
NexGate reserves estimated credits before the provider call, then charges actual token usage after completion.
Quick example
from openai import OpenAI
client = OpenAI(
api_key="ng-your-key-here",
base_url="https://api.nexgate.app/v1",
)
response = client.chat.completions.create(
model="gpt-5.5",
messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
apiKey: "ng-your-key-here",
baseURL: "https://api.nexgate.app/v1",
});
const response = await client.chat.completions.create({
model: "gpt-5.5",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(response.choices[0].message.content);Platform surface
| Area | Route | Auth |
|---|---|---|
| Chat completions | POST /api/v1/chat/completions | API key |
| Public model catalog | GET /api/models | None |
| Health check | GET /api/health | None |
| Pricing estimator | POST /api/estimator | None |
| Dashboard/account APIs | /api/* | Active session |
Warning
Public utility routes are not a substitute for API-key auth on model calls. Chat completions always require Authorization: Bearer ng-....