Quickstart
Get your first API call working in 5 minutes
Get Started in 5 Steps
Note
You need a NexGate account, an API key that starts with ng-, and enough prepaid credits for your first request.
Go to nexgate.app/sign-up and create an account. Eligible new users receive $5 in free credits — no card required.
Navigate to your dashboard and click "Generate API Key". Copy it immediately; you won't see it again.
Update your OpenAI client to point to NexGate:
https://api.nexgate.app/v1NexGate API keys start with ng- instead of sk-:
ng-your-key-hereChoose your language and run the code:
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": "What is NexGate?"}
]
)
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: 'What is NexGate?' }
]
});
console.log(response.choices[0].message.content);curl https://api.nexgate.app/v1/chat/completions \
-H "Authorization: Bearer ng-your-key-here" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5.5",
"messages": [
{"role": "user", "content": "What is NexGate?"}
]
}'Go to dashboard.nexgate.app/usage to see:
- Exact cost per request
- Token counts (prompt + completion)
- Response time
- Model used
Export your usage logs as CSV anytime.
What's Next?
Try Different Models
Explore GPT-4.1, DeepSeek, Kimi, Grok, Llama, and more
Choose a Model
Browse and compare all available models
Add More Credits
Buy credit packs starting at $25
Set Up AI Coding Assistants
Use NexGate with Cursor, Windsurf, or Claude Code
Common Issues
Tip
Check the API reference before adding advanced parameters such as tools, JSON schema, or streaming.