Quickstart
From a new key to your first completion in a few minutes.
1. Create a key
Sign in to the console and open API keys. Keys are shown once, so store yours in a secret manager or an environment variable. In the examples below, replace YOUR_API_KEY with it.
2. Point your client at the API
The base URL is https://api.northfieldcompute.com/v1. Requests authenticate with a bearer token in the Authorization header.
curl https://api.northfieldcompute.com/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "llama-3.1-8b-instruct",
"messages": [{"role": "user", "content": "Say hello"}]}'
3. Use an OpenAI SDK
Any client that lets you set the base URL works unchanged.
import os
from openai import OpenAI
client = OpenAI(base_url="https://api.northfieldcompute.com/v1",
api_key=os.environ["NORTHFIELD_API_KEY"])
for chunk in client.chat.completions.create(
model="qwen2.5-7b-instruct", stream=True,
messages=[{"role": "user", "content": "Write a haiku about rain"}]):
print(chunk.choices[0].delta.content or "", end="")
4. List the models your key can call
curl https://api.northfieldcompute.com/v1/models \
-H "Authorization: Bearer YOUR_API_KEY"
Limits and errors
- New keys allow 60 requests a minute. Ask support to raise it.
401: the key is missing, revoked or mistyped.429: slow down and retry after the number of seconds inRetry-After.503: the model's GPU pool is at capacity; retry after a short back-off.
Questions: contact us, or write to support@northfieldcompute.com.