VRAMGrid

peer-to-peer AI inference

Open-weight LLMs on community GPUs, behind one OpenAI-compatible API.

VRAMGrid routes your /v1/chat/completions calls to verified home GPUs and Apple Silicon Macs. Developers get cheap streaming inference. Hosts get paid for idle VRAM.

Prepaid $5–$100 credit packs · hosts keep 80% of what buyers pay · no monthly fees

drop-in compatible

Drop-in OpenAI compatibility: switch in 1 line

Keep your OpenAI SDK. Point base_url at [https://api.vramgrid.com](https://api.vramgrid.com)/v1 and use your VRAMGrid key. Same request shape, same SSE streaming, usage on every response.

  • Streaming and non-streaming chat completions
  • Automatic mid-stream failover if a host drops
  • Pick any live model from the grid above
import os
from openai import OpenAI

client = OpenAI(base_url="[https://api.vramgrid.com](https://api.vramgrid.com)/v1", api_key=os.environ["P2P_API_KEY"])
stream = client.chat.completions.create(
    model="llama3.2:3b",
    messages=[{"role": "user", "content": "Hello!"}],
    stream=True,
)
for chunk in stream:
    print(chunk.choices[0].delta.content or "", end="")

pip install openai · set P2P_API_KEY to your key

For buyers

Developers: inference without the cloud bill

  • Prepaid credit packs ($5–$100). Top up when you want. No subscription and no surprise monthly invoice.
  • OpenAI-compatible SSE streaming endpoint. Works with the official SDKs, LangChain, and anything that takes a base URL.
  • No rate-limit tiers. There are no per-key quotas to request. Requests go to the least-busy verified host and queue briefly at peak.
For hosts

GPU owners: turn idle VRAM into income

  • Earn 80% of every paid token your machine generates, metered by the orchestrator. Take it as API credit with a 25% bonus, or as cash once payouts open.
  • Works with Ollama on macOS, Windows and Linux, plus MLX, LM Studio and llama.cpp servers. Your models stay on your machine.
  • Connects in one command. It dials out, so there are no ports to open and it works behind any home router. It can serve only while you are away.

Pricing

Per 1M tokens, by model size (some community models have their own price, see GET /v1/models). Billed from your prepaid balance.

Model sizeInputOutput
small (≤ 5 GB weights)$0.02 / 1M$0.06 / 1M
medium (≤ 20 GB weights)$0.08 / 1M$0.24 / 1M
large (larger)$0.20 / 1M$0.60 / 1M
  • Batch API: 50% off. Upload a JSONL file to /v1/batches (OpenAI format); results within 24 h, run on idle hosts.
  • Vetted hosts: add :trusted to a model id to run only on identity-checked hosts with a long clean record, at 2x the price (70% to the host).