Documentation
Infersia implements the OpenAI API. If your code already talks to OpenAI, changing the base URL and the key is the entire integration.
https://api.infersia.com/v1Start here
Quickstart
Make your first request in Python, TypeScript or curl.
Authentication
API keys, spend caps and IP restrictions.
API reference
Every endpoint, parameter and response shape.
Integrations
Cline, Continue, Aider, LangChain, LiteLLM and OpenWebUI.
What’s supported
/v1/chat/completions/v1/completions/v1/embeddings/v1/models/v1/key/v1/creditsRequest and response shapes match the OpenAI specification exactly, including streaming, tool calling, JSON mode and the usage object. The official openai Python and Node SDKs work without modification — we test against them rather than against our own client.
Where we differ, deliberately
- Extra response headers. Every response carries
x-infersia-quantization,x-infersia-providerandx-infersia-cost-usd, so you can see exactly what served your request and what it cost. - Model routing suffixes.
model:freeselects a free tier,model@providerpins a provider, andmodel:nitroprefers throughput over price. - 402 rather than 429 when out of credit. A prepaid account with no balance gets a clear
402 insufficient_creditswith noretry-after, because retrying will not help until you top up. - Cost in the usage object. Non-streaming responses include
usage.costin USD.
Getting help
Every response includes an x-request-id. Quote it when you get in touch and we can trace the request end to end — through our gateway to the GPU that served it — without needing anything else from you.