Relay Ratio Calculator

Enter a site's model ratio and group ratio (or its listed price) and its top-up rate to get the paid price and its ratio to the official price.

USD credit
Official price from Anthropic

Ratio

0.15×Output

Input 0.15×

Paid price

$1.50Output

Input $0.30

Official

$10.00Output

Input $2.00

$ per 1M tokens

How it is calculated

  1. Listed input = model ratio 1 × 2 × group ratio 1 = $2.00
  2. Listed output = $2.00 × completion ratio 5 = $10.00
  3. Cost of $1 credit = ¥1.00 ÷ 1 = ¥1.00
  4. Paid price = listed price × ¥1.00: input ¥2.00, output ¥10.00
  5. In USD (1 USD = 6.6707 CNY): input $0.30, output $1.50
  6. Ratio = paid ÷ official: input $0.30 ÷ $2.00 = 0.15×, output $1.50 ÷ $10.00 = 0.15×

What a relay ratio means

Relays built on New API, One API or sub2api price models with a few ratios: the model ratio sets the input price, the completion ratio sets output as a multiple of input, the group ratio marks a whole route or tier up or down, and the cache ratio sets how cached input is charged. Site prices are in USD credit, and what $1 of credit costs depends on the top-up rate. A site's "0.5 ratio" is usually just the group ratio, not the final price. On this site, ratio means paid price ÷ official price, with the top-up rate and exchange rate included, for input and output separately.

How it is calculated

New API treats a model ratio of 1 as $2 per million input tokens. Listed input = model ratio × 2 × group ratio, and listed output = listed input × completion ratio. Paid price = listed price × the cost of $1 credit, converted to USD; divided by the official price, that is the ratio. sub2api multiplies the group ratio into the model's base price, which works the same way; use "Listed price" for it.

Example: a site sets model ratios from official prices, the group ratio is 0.5, and ¥1 buys $1 of credit. At the current rate of 1 USD = 6.67 CNY, ratio = 0.5 × 1 ÷ 6.67 ≈ 0.075×, so the paid price is about 7.5% of the official price.

A low ratio is not the same service

The ratio only compares unit prices. A relay route may use official keys, a cloud platform, pooled subscriptions or reverse-engineered channels, and model authenticity and billing accuracy vary; cache prices and hit rates can also change the monthly bill a lot. Check the route type of each group on the provider page, then compare with your own usage in the model page's usage estimate. How ratios are defined

FAQ

How much is a ratio of 1?

In New API, a model ratio of 1 means $2 of credit per million input tokens ($0.002 per thousand), and output is multiplied by the completion ratio. That is the price in site credit; what you actually pay also depends on the cost of $1 credit.

What does a 1:1 top-up mean?

Usually that ¥1 buys $1 of credit. At the current rate of 1 USD = 6.67 CNY, that credit costs about 15% of its face value, so with a group ratio of 1 and model ratios set from official prices, the ratio is about 0.15×.

Why do input and output ratios differ?

They differ when the site's completion ratio does not match the official output-to-input price ratio. Some sites use one completion ratio for every model; others adjust certain models. Coding agents send far more input than output, so the input ratio often matters more for the monthly bill.

How is caching charged?

Cached input is charged at the cache ratio (in New API it multiplies the input price), and cache writes have their own creation ratio. This calculator only covers input and output; for the effect of cache prices and hit rates, use the usage estimate on the model page, which uses each provider's published cache prices.