Getting Started
Quickstart
Make your first NeuralGate API call in under 2 minutes.
1. Create an account
Go to /join, enter your email, and click submit. Check your inbox for a sign-in link. Once logged in, your API key is shown on your portal page.
💡 You start with $5.00 in free credits — no credit card required.
2. Make your first request
Replace ngk_your_key with your actual API key:
cURL
Python (OpenAI SDK)
Python (native)
Node.js
curl https://api.computeshare.servequake.com/v1/chat/completions \
-H "Authorization: Bearer ngk_your_key" \
-H "Content-Type: application/json" \
-d '{
"model": "auto",
"messages": [
{"role": "user", "content": "What is the capital of France?"}
]
}'
from openai import OpenAI
client = OpenAI(
api_key="ngk_your_key",
base_url="https://api.computeshare.servequake.com/v1"
)
response = client.chat.completions.create(
model="auto",
messages=[
{"role": "user", "content": "What is the capital of France?"}
]
)
print(response.choices[0].message.content)
# → "The capital of France is Paris."
import urllib.request, json
req = urllib.request.Request(
"https://api.computeshare.servequake.com/v1/chat/completions",
data=json.dumps({
"model": "auto",
"messages": [{"role": "user", "content": "What is the capital of France?"}]
}).encode(),
headers={
"Authorization": "Bearer ngk_your_key",
"Content-Type": "application/json"
}
)
with urllib.request.urlopen(req) as resp:
data = json.loads(resp.read())
print(data["choices"][0]["message"]["content"])
import OpenAI from "openai";
const client = new OpenAI({
apiKey: "ngk_your_key",
baseURL: "https://api.computeshare.servequake.com/v1",
});
const response = await client.chat.completions.create({
model: "auto",
messages: [{ role: "user", content: "What is the capital of France?" }],
});
console.log(response.choices[0].message.content);
3. Response
{
"id": "chatcmpl-abc123",
"object": "chat.completion",
"created": 1744502400,
"model": "auto",
"choices": [{
"index": 0,
"message": {
"role": "assistant",
"content": "The capital of France is Paris."
},
"finish_reason": "stop"
}],
"usage": {
"prompt_tokens": 12,
"completion_tokens": 8,
"total_tokens": 20
}
}
4. Choose a model
Use "model": "auto" to let NeuralGate pick the best available model, or specify one:
# List available models
curl https://api.computeshare.servequake.com/v1/models \
-H "Authorization: Bearer ngk_your_key"
5. Check your usage
curl https://api.computeshare.servequake.com/v1/usage \
-H "Authorization: Bearer ngk_your_key"