0x24aOne-API(及兼容软件)计费计算器 中发帖

总所周知,One-API 及其衍生软件的计费规则非常阴间,竟然是针对 gpt-3.5-turbo 的倍数来计算费用的(好吧我也弄不太清楚)。 
自己配置中转站的计费时总是一塌糊涂,于是设计了一个脚本语言(?),来帮我做这份苦力。
格式示例
fx_rate usd cny 7.19
quota_per_usd 500000

# Deepseek models
model deepseek-chat 2 8 cny Mtokens
model deepseek-reasoner 4 16 cny Mtokens

# Claude models
model claude-4-opus 15 75 usd Mtokens

# And anything you like!

解说:
fx_rate 用于声明外汇价格,以便汇率转换
quota_per_usd 是 One-API 配置中控制每...