BuildDevelopers
Your gateway, at a glance.
Scoped API keys with their own spend caps and rate limits, and live requests, tokens, latency and credit burn for every one of them.
- OpenAI-compatible base URL
- https://infermesh.dev/v1
- Anthropic SDK base URL
- https://infermesh.dev
- Auth header
- Bearer sk-infer-…
- Protocols
- Chat Completions, Messages, MCP
Quickstart
Point your SDK at InferMesh
OpenAI-compatible base URL
https://infermesh.dev/v1Anthropic SDK base URL
https://infermesh.devcurl https://infermesh.dev/v1/chat/completions \
-H "Authorization: Bearer sk-infer-YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "anthropic/claude-sonnet-5.5",
"messages": [{ "role": "user", "content": "Explain proof of history in one sentence." }]
}'Documentation
Six pages cover the gateway end to end.
- QuickstartGet credits, create a key and make your first request in minutes.
- SDK migrationMove OpenAI, Anthropic and Vercel AI SDK code to InferMesh by changing two lines.
- Models & pricingEvery model, its list price, context window and capabilities, plus how billing works.
- API referenceEndpoints, authentication, errors, rate limits and spend caps.
- MCP for agentsConnect agents to the InferMesh MCP server to manage their own budget.
- Contract securityOn-chain invariants, programs, admin powers and key handling.
What a key carries
Every key is scoped, capped and rate-limited on its own.
- Scopes
- inference (chat completions and messages), account (read balance and usage), keys (create child keys) and mcp (agent tools).
- Spend caps
- An optional ceiling in credits per UTC day, per UTC month or for the key's lifetime. In-flight requests count, so concurrent ones can't overshoot it.
- Rate limits
- A requests-per-minute limit on each key: 600 by default, up to 10,000.
- Storage
- A key is shown once. Only a salted hash is stored, so a lost key is revoked and replaced, never recovered.
Building something that runs on its own?
Give an agent an isolated balance, a scoped key, MCP tools and a USDC vault it can draw on only within limits you sign on-chain.