AI and LLMs · Comparison

Cloud API vs gateway vs running it yourself

Three ways to get a model's answers into an app: sign up with one provider, go through a gateway to many, or run an open model on hardware you control.

3 options · 8 questions side by side · updated

CompareA cloud APIA gateway (OpenRouter)Your own machine (Ollama)
SetupAn API key and a few lines of codeOne key for many providersInstall, download a model, run it
CostPay per tokenProvider prices plus a fee on creditsNo token bill; you pay for hardware
Model choiceOne vendor's modelsHundreds, across vendorsOpen-weight models only
Quality ceilingUp to flagship modelsUp to flagship modelsGood, but behind the largest models
PrivacyData goes to the providerData goes to the gateway and a providerData stays on your machine
Works offlineNoNoYes
Serving many usersHandled by the providerHandled by the providersYour job, and it needs GPUs
Watch out forLock-in and price changesAn extra middleman and feesHardware limits and slower answers

How to choose between A cloud API, A gateway (OpenRouter) and Your own machine (Ollama)

  • Pick a cloud API when you want capable models with the least setup and one vendor to deal with.
  • Pick a gateway when you want to try or mix many models without separate accounts.
  • Pick your own machine when data must stay private, the app must work offline, or token bills must be zero.

The options

More comparisons

Crafted in the dark. Shipped to the world.

Tell us what you are building. You get a private project space with a proposal and a line-by-line quote within a day.