Developers · Quickstart
Your first call in three steps.
Zenith Tokens speaks the OpenAI API. If your code already works with OpenAI, change the base URL and the key.
1. Get a key
Create an account on Zenith Tokens, open the console and create an API key. You can set a quota, an expiry and the models each key may call.
Base URL: https://tokens.zenithint.ai/v1
2. Make a call
With curl or the OpenAI Python SDK:
curl https://tokens.zenithint.ai/v1/chat/completions \ -H "Authorization: Bearer $ZENITH_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "deepseek-ai/DeepSeek-V4.1-Flash", "messages": [{"role": "user", "content": "Hello, Zenith"}] }'
from openai import OpenAI client = OpenAI( base_url="https://tokens.zenithint.ai/v1", api_key="sk-...", # create a key in the console ) reply = client.chat.completions.create( model="zai-org/GLM-5.3", messages=[{"role": "user", "content": "Summarize this repo."}], stream=True, ) for chunk in reply: print(chunk.choices[0].delta.content or "", end="")
Any model on the models page works. Copy the model name exactly, for example moonshotai/Kimi-K3.1-Pro.
3. Use it in apps
- Cherry Studio, CC Switch: use the one-click configuration in the console, or add an OpenAI-compatible provider with the base URL above and your key.
- Agent frameworks: any framework that accepts an OpenAI base URL works. Streaming uses server-sent events.
- Monitoring: usage, cost and latency per key appear in the console in real time.
Help
The full API reference for the gateway is at docs.newapi.pro. For anything else, message us on Telegram at @hokeemDeng.
Zenith Tokens