Update API token stats pricing and footer to June 2026 rates

This commit is contained in:
Hitonabi
2026-06-26 13:50:46 +02:00
parent 2e4cddc840
commit 2c60caf790
4 changed files with 6 additions and 5 deletions
+3 -2
View File
@@ -99,8 +99,9 @@ def token_stats() -> dict:
c = stats.get("completion_tokens", 0)
total = p + c
# Blended savings based on a premium cloud model rate (e.g. GPT-4o / Claude 3.5 Sonnet: $3.00/1M input, $15.00/1M output)
saved_usd = (p * 3.0 + c * 15.0) / 1_000_000.0
# Juni 2026 API-Preise (deutlich gestiegen):
# Premium-Modelle (Claude 4 / GPT-5): 15,00 $ / 1M Input-Tokens und 75,00 $ / 1M Output-Tokens
saved_usd = (p * 15.0 + c * 75.0) / 1_000_000.0
saved_eur = saved_usd * 0.92 # 1 USD = 0.92 EUR
return {