Quickstart
ZoneToken is an OpenAI-compatible API. If you already use the OpenAI SDKs or any HTTP client, you only need to change the base URL and your API key.
1. Base URL
https://api.zonetoken.net/v12. Get an API key
- Sign in at zonetoken.net.
- Open your account dashboard and create a new API key.
- Copy the key and keep it secret — treat it like a password.
Keep your key safe
Never commit API keys to source control or expose them in client-side code. Use environment variables (for example ZONETOKEN_API_KEY) instead.
3. Authenticate
Every request must include your key in the Authorization header:
Authorization: Bearer <apiKey>Replace <apiKey> with the key you created in step 2.
4. Your first request
The example below calls the Chat Completions endpoint.
bash
curl https://api.zonetoken.net/v1/chat/completions \
-H "Authorization: Bearer $ZONETOKEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5.5",
"messages": [
{ "role": "user", "content": "Hello, ZoneToken!" }
]
}'python
from openai import OpenAI
client = OpenAI(
base_url="https://api.zonetoken.net/v1",
api_key="<apiKey>", # or os.environ["ZONETOKEN_API_KEY"]
)
response = client.chat.completions.create(
model="gpt-5.5",
messages=[{"role": "user", "content": "Hello, ZoneToken!"}],
)
print(response.choices[0].message.content)javascript
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.zonetoken.net/v1",
apiKey: process.env.ZONETOKEN_API_KEY, // "<apiKey>"
});
const response = await client.chat.completions.create({
model: "gpt-5.5",
messages: [{ role: "user", content: "Hello, ZoneToken!" }],
});
console.log(response.choices[0].message.content);Next steps
- Browse the full API Reference.
- Wire ZoneToken into your editor with the Integrations guides.
