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-sdk
from tokenflow import TokenFlow

client = TokenFlow(api_key="tf-live-...")

resp = client.messages.create(
    model="auto",
    max_tokens=1024,
    messages=[{"role": "user", "content": "Summarise this in two lines."}],
)

print(resp.content[0].text)
Base 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
Your keys3 active
Production server
tf-live-••••3a9f
$5.00
spend cap
Analytics pipeline
tf-live-••••b1c7
₹200
spend cap
Local dev
tf-live-••••7f0e
—
no limit
Stored as a SHA-256 hash + prefix only.
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.

View pricing