kasra farsoudi

home portfolio journal
← portfolio

Paid LLM Inference Gateway

September 2026

Metered, pay-as-you-go inference


Paid LLM Inference Gateway

A single Go binary that adds pay-as-you-go billing to a self-hosted Ollama instance. Accounts are funded with USDC over the x402 payment protocol, and usage is settled off-chain in Postgres.


highlights



tech


Go x402 USDC / Base PostgreSQL Ollama systemd

links


GitHub https://github.com/farsoudi/payed-llm-inference-gateway

← portfolio

kasra farsoudi 2026