Frontier models.
Featherweight prices.前沿模型,
轻量价格。
One API key for hundreds of text, image, audio and video models, at or below what the labs charge directly on almost every model. Prepaid, pay-per-token, no subscription.一个 API Key 调用数百个文本、图像、音频和视频模型,几乎所有模型都不高于厂商直销价。预付费,按 token 计费,无需订阅。
一行命令,切换到 TokenFlyOne command to switch to TokenFly
正在加载…Loading…
粘贴到终端回车,输入 API Key(不显示)后运行Paste into a terminal, enter your API key (hidden), then run claude。适用于 macOS / Linux,Windows 请用 WSL。. macOS / Linux; on Windows use WSL.默认仅可使用国内模型,国外模型需由管理员开白。 Domestic models are available by default; foreign models require an admin grant.
Same models. Smaller bill.同样的模型,更低的账单。
Live per-token rates next to each provider's direct price. Pick a model by name and you're done.实时单价与厂商直销价并排展示,按名称选好模型即可。
| Model模型 | Input输入 | Output输出 | Discount折扣 | |
|---|---|---|---|---|
| Loading the price board…正在加载价格… | ||||
Point your SDK here. Keep everything else.SDK 指向这里,其余不用改。
TokenFly speaks the Chat Completions, Responses and Anthropic Messages APIs. Tools, streaming, vision and JSON mode work as before.TokenFly 支持 Chat Completions、Responses 与 Anthropic Messages 接口,工具调用、流式输出、视觉输入和 JSON 模式都与原来一致。
from openai import OpenAI client = OpenAI( base_url="{{origin}}/v1", api_key="tf_live_...", ) reply = client.chat.completions.create( model="deepseek-v4.1-flash", messages=[{"role": "user", "content": "Hello from TokenFly"}], ) print(reply.choices[0].message.content)
import OpenAI from "openai"; const client = new OpenAI({ baseURL: "{{origin}}/v1", apiKey: process.env.TOKENFLY_API_KEY, }); const stream = await client.chat.completions.create({ model: "gpt-6-luna", messages: [{ role: "user", content: "Write a haiku about cheap tokens" }], stream: true, }); for await (const chunk of stream) process.stdout.write(chunk.choices[0]?.delta?.content ?? "");
import anthropic client = anthropic.Anthropic( base_url="{{origin}}", # no /v1: the SDK adds it api_key="tf_live_...", ) msg = client.messages.create( model="claude-sonnet-5", max_tokens=512, messages=[{"role": "user", "content": "Hi!"}], )
curl {{origin}}/v1/chat/completions \ -H "Authorization: Bearer $TOKENFLY_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model":"glm-5.3-flash","messages":[{"role":"user","content":"Hello"}]}'
Built for teams watching every token.为精打细算每个 token 的团队而做。
Capped at list price不高于官方价
Input and output token rates never exceed the maker's own direct price, and most models come in under it. Both are shown side by side, so you can check before you send a request.输入与输出单价从不高于厂商直销价,多数模型更低。两者并排展示,调用前就能核对。
Two SDKs, zero rewrites两套 SDK,零改动
OpenAI Chat Completions, Responses and Anthropic Messages endpoints, plus embeddings, images, audio and rerank.支持 OpenAI Chat Completions、Responses 与 Anthropic Messages,另有向量、图像、音频和重排序接口。
Streams stay streams流式输出原样转发
Server-sent events pass through token by token, and every stream is metered and billed when it finishes.SSE 事件逐个 token 实时转发,每个流在结束时计量结算。
Prepaid wallet预付钱包
Top up, spend, and stop when the wallet is empty. No surprise invoices, no minimum commitment.先充值后使用,余额用完即停。没有意外账单,没有最低消费。
Every call on the record每次调用都有记录
Model, tokens, latency and cost for each request, in your dashboard seconds after it completes.每次请求的模型、tokens、耗时和费用,完成后几秒内就出现在控制台。
Prompts never logged从不记录提示词
We keep usage metadata for billing. Prompt and completion bodies are relayed in memory and never written to disk.我们只保存计费所需的用量元数据。提示词与回复只在内存中转发,从不写入磁盘。
Billing data in. Your data out.只留账单数据,不碰你的内容。
Here is everything TokenFly stores about a request, and the parts that pass straight through.下面是 TokenFly 对一次请求保存的全部内容,以及直接转发、不做保存的部分。
Create an account, then top up your wallet.创建账号,然后为钱包充值。
Keys are hashed at rest and can be revoked instantly.Key 以哈希形式保存,可随时吊销。
Change the base URL and key. Costs show up per request in Usage.更换 Base URL 和 Key,每次请求的费用都会出现在「用量」中。
Spending a lot on inference?推理开销大?
Tell us your monthly volume and the models you use. We'll come back with a volume rate and help with migration.告诉我们每月用量和常用模型,我们会给出批量价格并协助迁移。
微信联系Contact on WeChat 查看二维码Show QR code
使用微信扫一扫联系,或保存图片后在微信中识别。Scan with WeChat, or save the image and open it in WeChat.
查看原图Open full-size image飞书联系Contact on Feishu 查看二维码Show QR code
使用飞书扫一扫,添加联系人;也可保存二维码后在飞书中识别。Scan with Feishu to add us, or save the image and scan it in Feishu.
查看原图Open full-size image