One key.
Every model.
The TokenlyPro proxy is wire-compatible with the OpenAI SDK. Point at our base URL, swap in your buyer key, and ship.
Authentication
Every request must include your TokenlyPro buyer key in the Authorization header. Generate one from your buyer dashboard after purchasing an access token.
Buyer keys start with tk_live_. You get one when you purchase an access token from the marketplace. Each key is scoped to your account.
Quickstart
The TokenlyPro proxy is wire-compatible with the OpenAI SDK — you only need to change the base URL and key. No new SDKs, no changes to your existing code structure.
base_url="https://api.tokenlypro.com/v1",
api_key="tk_live_…",
) response = client.chat.completions.create(
model="gpt-4o-mini",
messages=[
{"role": "user", "content": "Summarize TokenlyPro in one line."}
],
) print(response.choices[0].message.content)
List available models
Returns all models your buyer key has active access to, along with current pricing and remaining token balance.
Only models with an active access token on your account are returned. Purchase access tokens from the marketplace.
Chat completions
Fully OpenAI-compatible chat completions endpoint. Pass the model ID exactly as returned by GET /models — your active access token is matched automatically.
The response is a standard OpenAI ChatCompletion object. Token usage is recorded and deducted from your access token allocation in real time.
Usage and balance
Returns token consumption and spend for your active access tokens. Filter by model using the optional ?model= query param.
When no model param is passed, totals are aggregated across all your active access tokens.
Error codes
Ready to ship?
Grab a buyer key, point your SDK at the proxy, and run your first call.