一個 Key,
接上所有主流模型。

One key.
Every model.

OpenAI 相容的 API 閘道。改一行 base_url,沿用你現有的 SDK 與程式碼,不必重寫。多供應商路由、透明計費、按 token 實時扣減。

An OpenAI-compatible API gateway. Change one base_url, keep your existing SDK and code. Multi-provider routing, transparent per-token billing.

領取試用額度 → Get free credits → 閱讀文件 Read the docs 註冊即用 · 無需綁卡 No card required
base_url: https://26j.cn/v1
from openai import OpenAI

client = OpenAI(
    base_url="https://26j.cn/v1",
    api_key="$API_KEY",
)

r = client.chat.completions.create(
    model="gpt-5",
    messages=[{"role": "user", "content": "hello"}],
)
# 其餘程式碼不需修改
389可選模型Models
24模型分組Groups
8供應商Providers
99.9%目標可用性Target uptime
為什麼需要閘道
Why a gateway

接三個模型,就要維護三套東西。

Three providers. Three of everything.

每家供應商的認證方式、錯誤碼、限流規則、計費幣種都不一樣。這些工作不產生任何產品價值,但你每個月都得做一次。

Auth flows, error codes, rate limits, billing currencies — all different. None of it creates product value, but you maintain it every month.

直接對接各家
Direct integration
  • ×3-5 個 Key 分散在不同後台,輪替時逐個改
  • ×3-5 套錯誤處理,每家 retry 語意都不同
  • ×多幣種帳單,月底手動對帳
  • ×某家掛了,沒有備援,只能等
  • ×3–5 keys across dashboards, rotate one by one
  • ×3–5 error handlers, different retry semantics
  • ×Multi-currency bills, manual reconciliation
  • ×One provider down means no fallback
走 26j 閘道
Through 26j
  • ✓一個 Key,一個後台,一次輪替
  • ✓一套 OpenAI 格式,錯誤碼統一
  • ✓單一帳單,按 token 明細可查
  • ✓多路徑路由,單家異常時自動切換
  • ✓One key, one dashboard, one rotation
  • ✓One OpenAI-style format, unified errors
  • ✓One bill with per-token detail
  • ✓Multi-path routing with automatic failover
計費
Pricing

按 token 計費,用完再儲。

Pay per token. Top up when you need.

沒有月費、沒有最低消費、沒有座位數。下表為每百萬 token 單價,實際扣減以控制台明細為準。

No subscription, no minimum, no seats. Prices below are per 1M tokens; the console statement is authoritative.

Model 輸入 / 1MInput / 1M 輸出 / 1MOutput / 1M 計費Mode
gpt-5$0.110$0.800TokenToken
gpt-5-mini$0.020$0.189TokenToken
claude-opus-4-5$0.177$0.880TokenToken
claude-sonnet-4-5$0.100$0.500TokenToken
gemini-2.5-pro$0.240$2.000TokenToken
deepseek-v3.2$0.306$0.590TokenToken
kimi-k2.5$0.007$0.152TokenToken

完整價格請見控制台模型列表。圖像與影片模型按次或按秒計費,規則不同,請於對應文件頁確認。價格如有調整,會提前於站內公告。

Full pricing lives in the console model list. Image and video models bill per request or per second — see their doc pages. Price changes are announced in advance.

模型覆蓋
Coverage

文字、圖像、影片、語音,同一個入口。

Text, image, video, audio — one endpoint.

OpenAIgpt-5 · gpt-5.1
gpt-5-mini · gpt-5-codex
o3 · o4-mini
Anthropicclaude-opus-4-5
claude-sonnet-4-5
claude-haiku-4-5
Gemini2.5-pro · 2.5-flash
imagen-4.0
veo3
DeepSeekv3.2 · r1
deepseek-chat
Qwenqwen3.8-max
qwen3.8-flash
wan 2.7
Kimikimi-k2.5
kimi-k2.7-code
kimi-k3
Grokgrok-4.6
grok-imagine
grok-4.20
MiniMaxminimax-m3
hailuo-2.3
h3-max

模型清單隨時增減,請以控制台為準。所有模型共用同一組認證方式與回應格式。

Model availability changes; the console is authoritative. All models share the same auth and response format.

接入
Get started

三步,五分鐘。

Three steps. Five minutes.

01
取得 API KeyGet your API key

註冊後在控制台建立。建議每個環境用一把,方便單獨撤銷。

Create one in the console. Use a separate key per environment so you can revoke independently.

02
改 base_urlChange the base URL

https://26j.cn/v1

03
執行現有程式碼Run your existing code

請求與回應格式不變。在控制台查看延遲、用量與錯誤分佈。

Request and response shapes are unchanged. Watch latency, usage and error breakdown in the console.

FAQ

常見問題

Frequently asked

真的不用改程式碼嗎?Do I really not change any code?

如果你的程式用 OpenAI 官方 SDK 或相容客戶端,只需要換 base_url 與 Key。少數特殊參數(如部分供應商專屬欄位)可能不支援,會在文件標明。

If you use the official OpenAI SDK or a compatible client, you only swap base_url and the key. A few provider-specific params aren't supported and are documented.

怎麼計費?會突然扣很多嗎?How is billing calculated?

按實際 token 用量扣減,用多少扣多少,沒有月費。控制台可即時查看每筆請求的用量明細。建議設定餘額提醒與單 Key 限額。

Per actual token usage. No subscription. The console shows per-request detail in real time. Set a balance alert and per-key limits.

支援串流嗎?Does it support streaming?

支援 SSE 串流,OpenAI 相容格式。stream: true 即可,無需額外設定。

Yes — SSE streaming in the OpenAI-compatible format. Just set stream: true.

我的資料會被保存嗎?Is my data stored?

請求內容會轉發至對應的上游模型供應商以完成推論。平台記錄呼叫時間、用量與計費資料用於結算與故障排查。若你的業務有資料不出境或強隱私要求,請勿使用本服務。

Prompts are forwarded to the corresponding upstream provider to produce a completion. We log timing, usage and billing for settlement and debugging. If you have strict data-residency requirements, do not use this service.

可以開發票嗎?Can I get an invoice?

可以,請於控制台提交開票申請,或聯繫客服。

Yes — request one in the console, or contact support.

餘額可以退嗎?Are balances refundable?

未消耗餘額在符合條款條件下可申請退款,詳見服務條款第三條。因程式錯誤、密鑰洩漏或反覆重試造成的消耗不在退款範圍。

Unused balance is refundable subject to the terms (see §3). Consumption from code bugs, leaked keys or retry loops is excluded.

現在開始
Start now

改一行,然後跑起來。

Change one line. Then ship.

註冊即送試用額度,不需要綁定信用卡。

Free credits on signup. No card required.