SG

SubAPI 企业级网关控制台

客户、额度、Key、记忆、调用与上游模型统一管理

{{ healthText }}

运营总览

灰度入口:https://gateway.xiaoxiaoapi.com

客户数 {{ summary.customers || 0 }} 已创建的网关客户
API Keys {{ summary.api_keys || 0 }} 客户侧 sk-gw Key
今日请求 {{ summary.requests_today || 0 }} 进入企业网关的调用
今日 Tokens {{ summary.tokens_today || 0 }} 估算或上游返回用量
管理端操作需要 ADMIN_TOKEN;客户自助接口只需要客户自己的 sk-gw Key。

客户管理

创建客户、发放 Key、调整额度和启停状态。

客户 余额 限流 状态 创建时间 操作
暂无客户
{{ customer.name }}
{{ customer.public_id }}
{{ customer.email || '-' }}
{{ customer.remaining_tokens }}
总额 {{ customer.quota_tokens }}
{{ customer.rate_limit_per_minute }}/min {{ customer.enabled ? '启用' : '停用' }} {{ formatTime(customer.created_at) }}

客户自助

用客户自己的 sk-gw Key 查看余额、Key、日志和额度流水。

当前余额 {{ customerMe.remaining_tokens || 0 }} {{ customerMe.name || '未读取客户' }}
当前 Key {{ customerMe.current_key?.key_prefix || '-' }} {{ customerMe.public_id || '-' }}

调用日志与额度流水

最近调用、扣费、充值、初始化额度都可以在这里查看。

时间 客户 类型/路径 模型 状态 Tokens 备注
暂无记录
{{ formatTime(record.created_at) }} {{ record.customer_name || '-' }} {{ record.event_type || record.path }} {{ record.model || '-' }} {{ record.status || record.balance_after }} {{ record.delta_tokens || record.total_tokens || 0 }} {{ record.note || record.error || '-' }}

模型调试台

请求会通过企业网关进入 sub2api-new。

填写 X-User-Id 和 X-Conversation-Id 后,用户记忆与会话摘要会按身份隔离。
{{ message.text }}
{{ busy ? '请求中' : '空闲' }}
{{ toast.text }}