Agents that work for you,
and the model API they run on.

Give an agent a task in the web app or in chat apps like Telegram and WeChat. It works in its own sandbox and can run on a schedule. Your own apps call the same OpenAI-compatible gateway, on one account and one balance.

Agents

Sandboxed agents that use tools, files, and the web.

Open Agents
Example sessionOwn sandbox

Find this week's notable AI model releases and send me a short summary.

  1. Searched the webrunning
  2. Read 6 pages
  3. Wrote releases.md

Three releases stand out this week. I saved the details and sources to releases.md in the workspace.

API

OpenAI-compatible endpoints on one base URL.

Browse models
Example language
curl https://tokenflux.ai/v1/chat/completions \  -H "Authorization: Bearer $TOKENFLUX_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "model": "YOUR_MODEL_ID",    "stream": true,    "messages": [{"role": "user", "content": "Hello"}]  }'
200 OKstreaming…Example

Agents and apps share one gateway.

Agent model calls go through tokenflux.ai/v1 with their own dedicated key. One balance pays for both, and the usage log shows them apart.

Both share one model catalog. The models a key can call depend on its access and use.

Usage logExample
TimeKeyModelTokensCost
09:00agentsYOUR_MODEL_ID18,240$0.041
10:12productionYOUR_MODEL_ID2,315$0.006

Agents

A coding agent with a sandbox, a shared workspace, your chat apps, and a schedule.

Create an agent

Sessions share one workspace

Each session runs pi in its own container. Files stay in the agent's workspace.

Example
Example sessions and workspace files of one agent

Talk to it where you chat

Each bot or app is yours and serves one agent.

  • TelegramCreate a bot in Telegram, or paste a bot token.
  • WeChatScan a QR code with WeChat.
  • FeishuScan a QR code, or enter an App ID and App Secret.
  • SlackConnect a Socket Mode app with two tokens.

Let it run on a schedule

Daily, weekdays, weekly, hourly, or cron. Results can go to a linked chat.

Example
Example automation and its recent runs

API

The gateway your agents use, open to your own code.

Get an API key

Drop-in compatible

The endpoints your SDK already calls, on one base URL.

  • POST/v1/chat/completions
  • POST/v1/responses
  • POST/v1/messages
  • POST/v1/embeddings

One catalog, live prices

Live from the model directory, with per-token prices.

Keys you control

One key per app or environment, plus one for your agents. Disable any of them instantly.

Example
Example API key list

Start with an agent or a key.

Create an account and add credits. Then create an agent or get an API key.