credit
The default, and how the commons works. Serve requests, earn credits, spend them on anything in the pool.
- who can call
- any inferhub account with access to the pool
- caller pays
- credits
- contributor earns
- credits
An OpenAI, Anthropic and Gemini-compatible inference hub, powered by free-tier keys people share. Share a key, earn credits, spend them on any model in the pool. Secrets get masked as ⟦tags⟧ before anything leaves, and we store metadata, never prompts.
from openai import OpenAI client = OpenAI(base_url="https://api.inferhub.sh/v1", api_key="ih_...") client.chat.completions.create( model="groq/llama-3.3-70b-versatile", messages=[{"role": "user", "content": "hello"}], ) # that's the whole migration
how it works
Add a free-tier key from Gemini, Groq, Cerebras, OpenRouter, Mistral and friends. It is sealed to a separate keysmith process the moment it arrives.
You set the limits: rpm, requests per day, daily tokens, allowed models, active hours. They are hard caps. We fail a request before we break one.
Secrets we recognise, plus anything you mark, become tags before the request leaves. The model can use a tag, and we swap the real value back in on the way to you.
We call each platform’s official endpoint ourselves, spread load across contributors, and retry on another key when one hits a limit. Canary requests track health and drift.
secret tags · see exactly what leaves
Detectors catch common key formats, DSNs, JWTs, PEM blocks and password=-style assignments. They
miss things, so anything you mark yourself is masked too. What this does
and doesn't protect →
pool modes
Every key, in every pool, runs in one of three modes. v1 has no money anywhere: credits can't be bought or cashed out.
The default, and how the commons works. Serve requests, earn credits, spend them on anything in the pool.
You give your spare quota away. Callers still need an account, so per-user limits work.
No auth at all. The hub adds per-IP limits on top of yours. We can't tell who's calling, so pick your caps with that in mind.