Developers
Live from your terminal in 60 seconds.
One install, one key, one call. The SDK mirrors the shape you already know — swap the client and keep your code.
$
pip install tokenflow-sdkBase URL
api.tokenflow.co.in
Auth header
x-api-key
Import name
tokenflow
API keys
Shown once. Capped if you want.
Create one key per project. Each raw key appears exactly once — we store only a hash and a short prefix, so it's unrecoverable, even by us.
Unlimited keysShown onceOptional spend cap
Also supported
Custom tools
Define your own tools and let the model call them.
Hosted web_search
Search is available server-side on the API.
Streaming
Token-by-token responses, unbuffered.
Async-capable
The SDK works in async code paths too.
Full terminal chat
tokenflow chat — history, live session cost and model switching, without leaving your shell.
How the billing works.
A flat markup, both numbers logged, nothing hidden.