Docs
Everything you need to make your first call.
Quickstart
Create an account, generate a key on the keys page, and call any API you have subscribed to. Free plans subscribe you automatically on your first call.
curl https://api.tokeon.blocify.cloud/<api-slug>/<path> \
-H "Authorization: Bearer $TOKEON_API_KEY"Authentication
Keys look like tk_live_ followed by 32 characters. Send one as Authorization: Bearer <key> or in the X-Tokeon-Key header. A key is shown once when you create it; we store only a hash, so lost keys must be rotated.
One key works on every API. Tokeon strips your key before forwarding the request upstream.
OpenAI compatibility: change one line
The AI gateway implements /v1/chat/completions, /v1/completions, /v1/embeddings, /v1/audio/transcriptions, /v1/images/generations and GET /v1/models, including streaming.
from openai import OpenAI
client = OpenAI(
base_url="https://api.tokeon.blocify.cloud/v1", # the one line you change
api_key="tk_live_...",
)
resp = client.chat.completions.create(
model="qwen2.5-14b-instruct",
messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)Errors
Errors are JSON with a stable code:
{"error":{"code":"insufficient_balance","message":"...","request_id":"..."}}401invalid or revoked key402insufficient wallet balance or monthly cap reached403 not_subscribedsubscribe to a plan for this API first404unknown API slug429rate limit or monthly quota; honourRetry-After502 / 504upstream failed or timed out (billed $0)
Limits and billing
Each plan has a per-second rate limit and an optional monthly quota. Usage past the included calls, and AI tokens, are deducted from your wallet per request. Set a monthly spending cap on the billing page. Money is tracked in micro-dollars in a double-entry ledger you can see on the billing page.