SwiftRelay

← All sprint notes

Hunyuan 4 API Proxy Pricing: A Worked Monthly Bill on SwiftRelay

Cost per lapEN

A Hunyuan 4 Monthly Bill, Line by Line

SwiftRelay is a pay-per-token API relay, so a monthly bill for Hunyuan 4 can be built from something refreshingly simple: the tokens your calls actually use. There is no monthly fee and nothing to subscribe to. You top up a balance, and each call deducts only what it used.

Here is a worked example. It is not a forecast of your own spending, but a transparent way to see how Hunyuan 4 API proxy pricing behaves when the token counts are known. The example assumes a month with 10,000,000 input tokens, 2,000,000 output tokens and 20,000,000 cache read tokens.

The rates shown on the SwiftRelay pricing page for Hunyuan 4, model identifier hy4-preview, are $0.3194 per 1M input tokens, $1.03 per 1M output tokens and $0.0153 per 1M cache read tokens. Those three figures are all the inputs needed for the bill.

The result is a monthly cost of $5.56. That is a real number, calculated from the example token counts without rounding or guessing. SwiftRelay then deducts the cost of each call from your balance, so the monthly total is simply the sum of what you used.

How the Three Token Charges Add Up

Start with input tokens. The example uses 10,000,000 input tokens, which is 10 units of 1M tokens. At $0.3194 per unit, the input line is:

  • 10 × $0.3194 = $3.194

Next comes output. The example uses 2,000,000 output tokens, or 2 units of 1M tokens. At $1.03 per unit, the output line is:

  • 2 × $1.03 = $2.06

Finally, the example uses 20,000,000 cache read tokens, which is 20 units of 1M tokens. At $0.0153 per unit, the cache read line is:

  • 20 × $0.0153 = $0.306

Now add the three lines exactly as they appear:

  • Input: $3.194
  • Output: $2.06
  • Cache read: $0.306
  • Total: $3.194 + $2.06 + $0.306 = $5.56

That is the whole monthly bill for this worked example. Nothing is hidden behind a plan, and there is no separate charge for having a balance sitting there. The balance is a pot of credit, and the calls take from it.

To bring the example down to a single call, suppose one request uses 12,000 input tokens, 900 output tokens and 30,000 cache read tokens. The input charge is 0.012 × $0.3194 = $0.0038328. The output charge is 0.0009 × $1.03 = $0.000927. The cache read charge is 0.03 × $0.0153 = $0.000459. Together, that call costs $0.0038328 + $0.000927 + $0.000459 = $0.0052188.

Small calls can be small charges. That is the practical appeal of pay-per-token billing with SwiftRelay: if a project is quiet on one day, it does not carry the same kind of fixed cost as keeping your own subscription or official account running. You pay for the work that happened.

Topping Up and Spending Only What You Use

SwiftRelay offers top-up amounts of $1.39, $6.94, $13.89, $27.78, $69.44 and $138.89. You choose the amount that suits the run, and there is no plan to commit to.

Use the worked monthly example again. If you top up $6.94 and the month costs $5.56, the arithmetic is:

  • Starting balance: $6.94
  • Minus Hunyuan 4 usage: $5.56
  • Remaining balance: $6.94 − $5.56 = $1.38

New accounts also receive a sign-up gift credit of $0.22. Added to that balance, it becomes $6.94 + $0.22 = $7.16. After the $5.56 month, $7.16 − $5.56 = $1.60 remains available for the next call. That is a clean, visible way to see value: the money left in the account is money you have not spent.

There is flexibility if your usage grows. A $13.89 top-up against the same $5.56 worked month would leave $13.89 − $5.56 = $8.33, or $8.55 with the $0.22 sign-up gift credit. The choice is yours, and the deduction rule stays the same either way.

If you change your mind about a recent top-up, unused credit can be refunded within 11 days, minus what was used and the payment fee. That keeps the decision simple while you are still testing your setup.

SwiftRelay also shares a little of the momentum you create. You receive 14% of each top-up made by someone you invited, and 3% from the people they invite. Rewards can be moved into your balance, or withdrawn once you reach the $4.86 minimum.

Connecting Hunyuan 4 in Minutes

The fastest way to start is the one SwiftRelay is built around: copy three lines and run. No monthly fee, no subscription, no separate plan purchase before the first call.

For a client that uses the OpenAI-compatible endpoint, set the base URL to https://api.fastapirelay.com/v1 and use your swft_ key as the API key. Hunyuan 4 is one of the remaining models served through that OpenAI-compatible route, so the same connection pattern covers it.

Here is the setup in its own lines:

01  export OPENAI_BASE_URL=https://api.fastapirelay.com/v1
02  export OPENAI_API_KEY=<your swft_ key>

That is the quick-start sprint. Point the client at the SwiftRelay API host, drop in your key, make a call, and watch the usage record appear. The API host is https://api.fastapirelay.com.

You can also use the Codex configuration lines, which point at the same OpenAI-compatible endpoint:

01  export OPENAI_BASE_URL=https://api.fastapirelay.com/v1
02  export OPENAI_API_KEY=<your swft_ key>

Once the key is in place, your Hunyuan 4 calls flow through the same balance that produced the $5.56 worked bill above. There is nothing else to activate and nothing recurring to manage.

Usage Records, Keys and Support in the Dashboard

Good value is easier to trust when you can check it. SwiftRelay lists the tokens and the cost per call, so you can compare each charge with the token counts you actually sent and received. The monthly figure is not a black box; it is the sum of visible calls.

You can run up to 20 live API keys per account. That gives you room to separate a test script from a working project, or to keep different builds pointed at the same relay without mixing up credentials.

Questions go through Messages in the SwiftRelay dashboard. Support is available there after you log in, so the conversation stays next to the balance and the usage records you are already checking. There is no support email to hunt for.

Put the whole picture together and the value proposition is straightforward. Sign up, collect the $0.22 gift credit, top up from $1.39, connect with three lines, and let each call deduct only what it used. The worked Hunyuan 4 month above came to $5.56, and the arithmetic is yours to inspect line by line.

Ready for the first clean run? Sign up for SwiftRelay now, top up your balance, and put Hunyuan 4 to work in minutes.

Keep reading

Back for another lap?Log in