AI API 中转 · 按量付费
官方模型,
低至 4 折。
https://api.tokencity.cc/v1怎么连起来
你的工具,一个 Key,
所有模型。
把任意工具指向 TokenCity 一次即可。工具随时换,模型随时切,Key 和余额都不变。
sk-••••••••••••3f9a三种用法
怎么顺手,
就怎么用。
一个 Key,一份余额。每种用法都只要一两行配置,详细步骤见文档。
https://api.tokencity.cc/v1兼容 OpenAI 协议。在你现有的 SDK 里改 Base URL 和 Key 即可。
client = OpenAI(
base_url="https://api.tokencity.cc/v1",
api_key="sk-••••••••••••3f9a",
)
client.chat.completions.create(model="gemini-4-argon", ...)model = "gemini-4-argon"
model_provider = "tokencity"
[model_providers.tokencity]
base_url = "https://api.tokencity.cc/v1"
env_key = "TOKENCITY_API_KEY"export ANTHROPIC_BASE_URL=https://api.tokencity.cc
export ANTHROPIC_AUTH_TOKEN=sk-••••••••••••3f9a
claude"tokencity": {
"npm": "@ai-sdk/openai-compatible",
"options": {
"baseURL": "https://api.tokencity.cc/v1",
"apiKey": "{env:TOKENCITY_API_KEY}" } }https://api.tokencity.ccsk-••••••••••••3f9agemini-4-argonhttps://api.tokencity.cc/v1sk-••••••••••••3f9agemini-4-argonmodel:
provider: custom
base_url: https://api.tokencity.cc/v1
default: gemini-4-argon价格,摆在明面上
官方价,
直接划掉。
每个模型都把官方标价和我们的价格并排列出。折扣按模型计算,自动生效。
Gemini 4 Argon: flagship reasoning for demanding coding, mathematics, analysis and multi-step agents. Inputs: text, images, video, audio and PDF. Output: text. Unified input/output context: 1,048,576 tokens; standard synchronous output limit: 65,536. Available through Chat Completions, Responses and Gemini generateContent/streamGenerateContent. Current promotional prices end on November 30, 2026; base input/output prices double on December 1 and require a pricing update.
gemini-4-argonNano Banana 2.1: the recommended image generation and editing model for design, text rendering and consistent multi-turn edits. Inputs: text, images, video and PDF. Outputs: images and text. Input limit: 131,072 tokens; output limit: 32,768. Supports 1K, 2K and 4K images. Use the native Gemini generateContent endpoint with IMAGE in responseModalities; do not use OpenAI /v1/images/generations.
gemini-nano-banana-2.1Gemini 3.8 Flash: the recommended general-purpose model for multimodal understanding, coding, reasoning and responsive applications. Inputs: text, images, video, audio and PDF. Output: text. Input limit: 1,048,576 tokens; output limit: 65,536. Supports Chat Completions, Responses and Gemini generateContent/streamGenerateContent. Current promotional prices end on December 31, 2026; base input/output prices double on January 1, 2027. The minimal thinking level is not supported.
gemini-3.8-flashNano Banana Pro: high-quality image generation and editing for complex layouts, precise typography and professional creative work. Inputs: text and images. Outputs: images and text. Input limit: 65,536 tokens; output limit: 32,768. Supports images up to 4K. Use native Gemini generateContent with IMAGE in responseModalities. Text output and image output are priced separately.
gemini-3-pro-imageGemini 3.1 Pro Preview: the Pro preview option for complex coding, careful reasoning and tool-driven workflows. Inputs: text, images, video, audio and PDF. Output: text. Input limit: 1,048,576 tokens; output limit: 65,536. Supports Chat Completions, Responses and Gemini generateContent/streamGenerateContent. No shutdown date has been announced. Prompts over 200K tokens use the higher long-context pricing tier.
gemini-3.1-pro-preview提示超过 200,000 tokens 按更高档位计费。
官方价来源: aistudio.google.com
打开 Playground →claude-fable-5-1不掺水
你点的是哪个模型,
用的就是哪个。
便宜的前提是真。我们不会偷换小模型、不用量化版本冒充,也不虚报 token。
- 01
模型不降级
请求直达你指定的模型,走经过验证的上游,绝不静默切换到更便宜的模型。
- 02
逐条明细
每次请求都能在控制台查到:模型、输入/输出 token、缓存命中、实际扣费。
- 03
token 不虚报
用量以上游返回为准,不做估算。上游计多少,你就付多少。
- 04
数据只属于你
Prompt 仅用于路由、计量与计费,绝不用于训练,绝不出售。
- 05
没有封号风险
不需要海外手机号、海外信用卡,也不用担心官方账号因地区或风控被封。充值即用。
按量付费
充一次,
明年用也行。
无订阅、无最低消费、余额永不过期。每次请求按页面标价实时扣费。
- 余额永不过期
- 所有工具同一价格
常见问题
切换之前,
先看这些。
还有别的问题?在控制台联系我们,真人回复。
01为什么能便宜这么多?
我们向经过验证的上游批量采购算力,把差价让给你。折扣按模型不同,并与官方价并排公示。
02真的是官方模型吗?
是。请求会路由到你指定的模型,绝不替换或降级。
03会被封号吗?
不会。你不需要注册任何海外官方账号,也不需要海外支付方式,不存在因地区或风控导致的封号问题。
04支持哪些工具?
任何能设置 OpenAI 兼容 Base URL 的工具:Codex、Claude Code、OpenCode、CC Switch、Cursor、Hermes Agent,以及 OpenAI 官方 SDK 和直接 HTTP 调用。
05怎么计费?
预充值、按请求扣费。充多少都行,每次调用按标价扣除,余额永不过期。