DEV Community

khaerul anwar
khaerul anwar

Posted on

I built an AI gateway because I was tired of guessing what a request would cost

Every provider has a different pricing page.

If you use one provider, that is fine. But the moment you want to compare models across providers (and you should, because prices for the same task vary wildly), you end up with a spreadsheet, a bunch of open tabs, and the nagging feeling that the numbers went stale last week.

That was me for months. So I built the thing I actually wanted: EidosStack AI Gateway.

What it does

It is an OpenAI-compatible API gateway. One endpoint, one API key, 48+ models behind it from DeepSeek, Anthropic (Claude), OpenAI (GPT), Google (Gemini), Alibaba (Qwen), Moonshot (Kimi), and Zhipu (GLM).

The part I am most happy with is the pricing table. It shows input, output, and cache token prices per model, and it refreshes every 30 seconds. You see what a request will cost before you send it, not after the invoice arrives.

How billing works

Pay-as-you-go, no subscription. You create an API key, set a spending limit on it if you want, and top up when needed. Billing is in IDR with USD shown as a reference.

Prices on the gateway run up to 50% below the official provider rates. That is not a promo, it is just how we price.

What I learned building it

  • Keeping a pricing table honest is harder than it sounds. Providers change prices quietly, so the table has to be re-verified constantly instead of hand-edited once.
  • "OpenAI-compatible" is easy to claim and hard to get right. Tool calling and streaming were the parts that needed the most attention.
  • Per-key spending limits matter more to small teams than fancy routing. Nobody wants to discover a runaway loop ate their balance overnight.

Try it

The gateway is live at eidosstack.com/en/ai-gateway. The pricing table is public, so you can compare costs before signing up.

We are also launching on Product Hunt on September 8 if you want to follow along.

Feedback is welcome, especially from people running multi-provider setups. What do you use to keep API costs under control?

Top comments (0)