← Blog

prices should not need an engineer

For most of this project, changing what a model costs meant editing JSON, opening a merge request, waiting for CI, and playing a deploy job. Perfectly safe. Completely wrong.

Pricing is the fastest-moving number in a marketplace. When a measurement shows that hosts are earning less than their electricity, the price has to move that afternoon — not after a release window.

two layers, on purpose

The shipped price book is still there. It is what a fresh environment starts from, what the coherence tests read, and what a deploy carries. What changed is that an operator override now beats it, set from the dashboard and applied to the very next job.

There is a reset next to every overridden price. The way out of a bad edit is one click back to what shipped, which is the property that makes editing prices in a web form acceptable at all.

the guard rails are the interesting part

A price form that accepts anything is a liability. The same invariants our build-time tests enforce are enforced again on write, because this path bypasses the file:

  • A model that does not exist cannot be priced. An id with no catalogue entry is a model customers can call and no host can serve — we shipped exactly that bug once, and the tests exist because of it.
  • Output can never be cheaper than input. Almost always a typo, and an expensive one.
  • Nothing is free. A zero would make hosts work for nothing.
  • The promised context cannot exceed what the least capable build serves. A customer cannot choose which host answers them, so the promise has to hold on the smallest one.

The form shows those limits rather than discovering them: each row displays the model's size, the smallest card that can serve it, and the context ceiling the least capable build imposes. It also previews what a host measuring 60 tokens per second would earn at the price you are typing — because that is the number that decides whether anyone will serve it.

and it is written down who did it

Every change records the operator and the timestamp. Pricing moves money between us and the hosts; "who set 0.75, and when" has to have an answer.

Meanwhile, if the database is unreachable, the shipped prices keep serving. A pricing lookup must never be the reason a job fails.

What you pay, and why · Current prices · What that pays a host

Read next

our website and our app were two products. now they are one.

The marketing site and the dashboard had different navbars, different footers and different ideas of what we look like. Merging them into one Aurelia app meant solving the problem every SPA has with search engines — and finding two bugs the moment we looked.

the container that wasn't there

A friend with a 12 GB card asked what Docker images we'd install on his PC. The honest answer was none — and working out why took us through engines, image digests, registries and what a home GPU should really be asked to run.

For GPU Owners

Put your GPU to work.

  1. Install mahout
  2. Link your machine
  3. Let it work
Start earning

For Builders

Cut your AI bill.

  1. Create an API key
  2. Change one line
  3. Call the API
Get an API key

One account for both sides.