YOUR AGENTS. YOUR API. ONE BALANCE.

Agents that do the work. The API they run on.

Give an agent a task in the web app, Telegram, Feishu, Slack or WeChat. It runs in its own sandbox, on a schedule if you want, and sends you the result. Your own code calls the same OpenAI-compatible API. One account, one balance.

Pay for what you use, at the prices on the models page. Alipay, WeChat Pay and cards.

Weekday digestExample
Feishu09:00

Every weekday at 09:00, send me the top 10 Hacker News stories in Chinese on Feishu.

Private sandbox
  1. Search the top stories
  2. Read the sources
  3. Write digest.md

Your digest is ready. 10 stories, short summaries and source links. Saved to digest.md.

Delivered to Feishu

  • 4 chat apps
  • Chat Completions · Responses
    Messages · Embeddings
  • Own sandbox per session
  • One balance for agents and API

01 / Agents

What you can hand to an agent

Give it a task. Let it use the tools. Come back to a result.

Example

A morning worth reading

“Top 10 Hacker News stories, in Chinese. Weekdays at 09:00. Send to Feishu.”

Schedule → search → summarize

A digest in your Feishu chat

Example

Keep an eye on changes

“Check this page or repository every day. Message me on Telegram when it changes.”

Check → compare → notify

A change summary in Telegram

Example

From CSV to a clear report

“Read the CSV in my workspace. Write a short report with a chart.”

Read files → run code → write

A report and chart in your workspace

Three steps. Then hand it off.

  1. 01

    Create an agent

    Pick a model available to your agent. Give it a task in the web app.

  2. 02

    Connect your chat app

    Link your own bot or app with a QR code or token.

  3. 03

    Set a schedule

    Daily, weekdays, weekly, hourly or cron. Send results to a linked chat.

02 / API

Your SDK already works.

Keep your SDK. Point it at one base URL. Use the same gateway that powers your agents.

https://tokenflux.ai/v1
  • POST/v1/chat/completions
  • POST/v1/responses
  • POST/v1/messages
  • POST/v1/embeddings
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"}]
  }'

Example: replace YOUR_MODEL_ID with a model ID from the models page.

03 / TOKENFLUX

One account, one balance.

Your agents and your code call the same gateway. All your agents share one dedicated key per user. The usage log keeps agent calls apart from your own API keys.

Your agentsYour apps
tokenflux.ai/v1Models

Usage log · Example

agents · dedicated key18,240 tokens
my-app · API key2,315 tokens

Before you start

What is TokenFlux?

TokenFlux is an agent platform built on its own AI API gateway. Give tasks to hosted agents, or call the gateway from your code. Both use one account and one balance.

Which models can I use?

See the models page for model access and prices. Agents can use models listed by their dedicated key, except image/ models. Image input and thinking levels depend on the model.

View all models ↗

How do I pay?

Top up your balance through Stripe Checkout with Alipay, WeChat Pay or a card. Usage is charged per token or per request, as listed on the models page.

View all models ↗

Does my SDK work?

Use the base URL https://tokenflux.ai/v1 for OpenAI-compatible Chat Completions and Responses, Anthropic-style Messages, and Embeddings. Choose a model that supports the endpoint you need.

Where does an agent run?

Each session has its own container for file and shell tools. Sessions of one agent share workspace files, but keep separate conversations.

Which chat apps can I connect?

Telegram, WeChat, Feishu and Slack. Your bot or app serves one agent. Channels accept text. By default only the person who linked a chat can request work; in a group, they can open it to everyone with /members on, and every task is billed to them. WeChat supports private chats only.

Start with an agent or a key.

Create an account, add credits, and put your first task in motion.