Thanks to visit codestin.com
Credit goes to api.vibelearning.top

主线路在线 · OpenAI / Anthropic / Gemini

一个 Key,接入你的 AI 编程工作流

统一使用 Claude Code、Codex、Gemini CLI 与图像模型。模型、余额、日志和计费集中在同一个开发者账户中。

按量余额与 Sub2API 订阅相互独立,按使用场景自由选择。
vibe-store / billing-engine Claude Code connected
src/billing/reconcile.ts usage.ts
41async function reserveUsage(accountId, cost) {
42  const account = await accounts.find(accountId);
43- if (account.balance < cost) return false;
44- account.balance -= cost;
43+ return db.transaction(async (tx) => {
44+   const row = await tx.lockAccount(accountId);
45+   if (row.balance < cost) return false;
46+   await tx.decrementBalance(accountId, cost);
47+   return true;
48+ });
49}
Claude Code streaming
You
Review the billing change and find concurrency risks before I merge it.
Claude
Potential race condition resolved The previous read-then-write flow could allow two requests to spend the same balance. Locking the account row inside db.transaction() makes the reservation atomic.
Suggested next step: add a concurrent reservation test for the exact remaining balance.
modelclaude-sonnet-4-6 latency1.28s cost$0.021
Designed for
Claude Code
Codex CLI
Gemini CLI
Image API
One gateway

一次配置,穿过整条调用链

客户端只需要保存一个 Key。认证、路由、消费记录和可用模型由 VibeLearning 统一承接,调用结果仍返回到你熟悉的工具里。

vibe-store — Visual Studio Code VibeLearning connected
reconcile.ts

            
Gateway routeanthropic/messages Modelclaude-sonnet-4-6 Latency1.28s Cost$0.021
Protocols

保留工具习惯,只替换接入地址

Claude Code、Codex 和 Gemini CLI 各自使用对应协议。配置完成后,模型选择、对话和工具调用方式不需要重新学习。

CodexOpenAI Responses

复杂工程与长任务

通过带 `/v1` 的 OpenAI 兼容入口连接 Codex CLI,并在控制台查看请求日志与扣费。

查看配置
Claude CodeAnthropic Messages

代码理解与重构

使用站点根地址和 Anthropic 认证变量,接入 Claude Code 的原生 Messages 协议。

查看配置
Gemini CLIGemini Native

多模态与长上下文

通过 Gemini 原生地址连接支持的模型,适合长上下文理解和多模态开发任务。

查看配置
Image APIAsync Jobs

生成与编辑图片

长耗时图片任务使用异步提交与轮询模式,也可以直接使用可视化 Image Lab。

打开 Image Lab
Billing paths

按量计费,或订阅套餐

主站按量账户和 Sub2API 订阅是两套独立的计费路径。按当前工作负载选择即可,不会互相扣减余额。

Sub2API

订阅套餐

适合固定周期和每日额度。每张卡独立存在,令牌需要在 Sub2API 中绑定对应订阅实例。

需要配置帮助?加入官方社群获取通知与答疑

新用户进群发送用户 ID 可领取站内额度。公告、模型价格与实时可用性仍以主站页面为准。

查看社群与邀请奖励