frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

API that auto-routes to the cheapest AI provider (OpenAI/Anthropic/Gemini)

https://tokensaver.org/
5•h2o_wine•39m ago

Comments

h2o_wine•39m ago
Out of frustration, I built an AI API proxy that automatically routes each request to the cheapest available provider in real-time.

The problem: AI API pricing is a mess. OpenAI, Anthropic, and Google all have different pricing models, rate limits, and availability. Switching providers means rewriting code. Most devs just pick one and overpay.

The solution: One endpoint. Drop-in replacement for OpenAI's API. Behind the scenes, it checks current pricing and routes to whichever provider (GPT-4o, Claude, Gemini) costs least for that specific request. If one fails, it falls back to the next cheapest.

How it works: - Estimates token count before routing - Queries real-time provider costs from database - Routes to cheapest available option - Automatic fallback on provider errors - Unified response format regardless of provider

Typical savings: 60-90% on most requests, since Gemini Flash is often free/cheapest, but you still get Claude or GPT-4 when needed.

30 free requests, no card required: https://tokensaver.org

Technical deep-dive on provider pricing: https://tokensaver.org/blog/openai-vs-anthropic-vs-gemini-pr...

I wrote up how to reduce AI costs without switching providers entirely: https://tokensaver.org/blog/reduce-ai-api-costs-without-swit...

Happy to answer questions about the routing logic, pricing model, or architecture.

AstroBen•3m ago
[delayed]

Voyager 1 Is About to Reach One Light-Day from Earth

https://scienceclock.com/voyager-1-is-about-to-reach-one-light-day-from-earth/
486•ashishgupta2209•5h ago•165 comments

A Fast 64-Bit Date Algorithm (30–40% faster by counting dates backwards)

https://www.benjoffe.com/fast-date-64
109•benjoffe•3d ago•27 comments

Gemini CLI Tips and Tricks for Agentic Coding

https://github.com/addyosmani/gemini-cli-tips
43•ayoisaiah•1h ago•13 comments

From blood sugar to brain relief: GLP-1 therapy slashes migraine frequency

https://www.medlink.com/news/from-blood-sugar-to-brain-relief-glp-1-therapy-slashes-migraine-freq...
67•Anon84•4h ago•41 comments

API that auto-routes to the cheapest AI provider (OpenAI/Anthropic/Gemini)

https://tokensaver.org/
5•h2o_wine•39m ago•2 comments

A cell so minimal that it challenges definitions of life

https://www.quantamagazine.org/a-cell-so-minimal-that-it-challenges-definitions-of-life-20251124/
187•ibobev•9h ago•81 comments

A Woman on a Mission to Photograph Every Species of Hummingbird

https://www.audubon.org/magazine/meet-woman-mission-photograph-every-species-of-hummingbird-world
27•zeech•3d ago•4 comments

Show HN: I turned algae into a bio-altimeter and put it on a weather balloon

https://radi8.dev/blog/stratospore/
57•radeeyate•4d ago•5 comments

Statistical Process Control in Python

https://timothyfraser.com/sigma/statistical-process-control-in-python.html
165•lifeisstillgood•11h ago•52 comments

DRAM prices are spiking, but I don't trust the industry's why

https://www.xda-developers.com/dram-prices-spiking-dont-trust-industry-reasons/
76•binarycrusader•2h ago•36 comments

Optery (YC W22) Hiring CISO, Release Manager, Tech Lead (Node), Full Stack Eng

https://www.optery.com/careers/
1•beyondd•2h ago

OpenAI needs to raise at least $207B by 2030

https://ft.com/content/23e54a28-6f63-4533-ab96-3756d9c88bad
449•akira_067•4h ago•389 comments

China Has Three Reusable Rockets Ready for Their Debut Flights

https://www.china-in-space.com/p/china-has-three-reusable-rockets
23•speckx•1h ago•7 comments

JOPA: Java compiler in C++, Jikes modernized to Java 6 with Claude

https://github.com/7mind/jopa
35•pshirshov•3d ago•26 comments

Show HN: KiDoom – Running DOOM on PCB Traces

https://www.mikeayles.com/#kidoom
305•mikeayles•21h ago•41 comments

Copyparty, the FOSS file server [video]

https://www.youtube.com/watch?v=15_-hgsX2V0
193•franczesko•6d ago•48 comments

Surprisingly, Emacs on Android is pretty good

https://kristofferbalintona.me/posts/202505291438/
211•harryday•3d ago•108 comments

Is DWPD Still a Useful SSD Spec?

https://klarasystems.com/articles/is-dwpd-still-useful-ssd-spec/
40•zdw•5d ago•26 comments

Image Diffusion Models Exhibit Emergent Temporal Propagation in Videos

https://arxiv.org/abs/2511.19936
90•50kIters•11h ago•12 comments

Qiskit open-source SDK for working with quantum computers

https://github.com/Qiskit/qiskit
28•thinkingemote•7h ago•2 comments

Slop Detective – Fight the Slop Syndicate

https://slopdetective.kagi.com/
39•speckx•3h ago•17 comments

Scaleway turns Mac Minis into high‑density, Raspberry Pi–managed servers

https://www.scaleway.com/en/blog/how-we-turn-apples-mac-mini-into-high-performance-dedicated-serv...
67•Lwrless•2h ago•73 comments

Widespread service disruptions reported as major platforms go down worldwide

https://www.ynetnews.com/tech-and-digital/article/bky0aavb11g
6•totallyunknown•27m ago•1 comments

Jakarta is now the biggest city in the world

https://www.axios.com/2025/11/24/jakarta-tokyo-worlds-biggest-city-population
422•skx001•1d ago•319 comments

CS234: Reinforcement Learning Winter 2025

https://web.stanford.edu/class/cs234/
176•jonbaer•19h ago•43 comments

Show HN: We built an open source, zero webhooks payment processor

https://github.com/flowglad/flowglad
353•agreeahmed•1d ago•201 comments

How to repurpose your old phone into a web server

https://far.computer/how-to/
311•louismerlin•4d ago•106 comments

A new bridge links the math of infinity to computer science

https://www.quantamagazine.org/a-new-bridge-links-the-strange-math-of-infinity-to-computer-scienc...
227•digital55•23h ago•127 comments

1,700-year-old Roman sarcophagus is unearthed in Budapest

https://apnews.com/article/hungary-roman-sarcophagus-discovery-budapest-77a41fe190bbcc167b43d0514...
130•gmays•1d ago•71 comments

Launch HN: Onyx (YC W24) – Open-source chat UI

224•Weves•1d ago•144 comments