P
peck/docsv0.1 · preview
Reference/llm.peck.to
Livellm-gateway

llm.peck.to

Multi-provider LLM gateway with per-request BSV micropayments.

What it is

OpenAI-compatible `/v1/chat/completions` router over Gemini, OpenAI, Anthropic and Ollama. Picks the cheapest provider per request, bills the caller via HTTP 402 + BRC-42, and applies a 1.05× margin by default. Lets agents pay for inference in BSV without holding an API key for every provider.

When to use it

An agent needs LLM inference and should pay per-token in BSV instead of carrying a provider API key.

Clients that wrap it

Most apps talk to this service through one of these packages rather than hitting the HTTP surface directly.

  • openai (any OpenAI-compatible client)

See all clients & SDKs →

Deployment

Repo: llm-gateway · Framework: go · Protocol: OpenAI-compatible / HTTP 402

Endpoints

9 routes scanned from source.

MethodPathSource
GETX-Routing-Strategyinternal/gateway/handler.go:134
GETX-Forwarded-Forinternal/middleware/ratelimit.go:58
GETX-Channel-IDinternal/middleware/auth.go:51
GETX-Channel-IDinternal/middleware/auth.go:64
GETAuthorizationinternal/middleware/auth.go:81
ANY/v1/chat/completionscmd/gateway/main.go:69
ANY/v1/modelscmd/gateway/main.go:70
ANY/v1/estimatecmd/gateway/main.go:71
ANY/healthcmd/gateway/main.go:72