For developers
Keep the OpenAI SDK you already use, change the base URL, and call open chat and vision models that run on a community GPU network. Pay per token in credits, with no subscription.
https://api.legit2compute.com/nodes/llm/v1, your legit2compute key, and any model ID from the table below or l2c/auto. Prices start at $0.030 per million input tokens. Signing up with Discord, Google, GitHub or Twitch includes $1 of trial credit.from openai import OpenAI
client = OpenAI(base_url="https://api.legit2compute.com/nodes/llm/v1", api_key="YOUR_L2C_KEY")
r = client.chat.completions.create(
model="l2c/auto",
messages=[{"role": "user", "content": "Write a haiku about idle GPUs."}],
)
print(r.choices[0].message.content)curl https://api.legit2compute.com/nodes/llm/v1/chat/completions \
-H "Authorization: Bearer $L2C_KEY" -H "content-type: application/json" \
-d '{"model":"l2c/auto","messages":[{"role":"user","content":"Hello"}]}'
Agent tools work the same way: step-by-step setups for Hermes Agent, OpenClaw and Odysseus.
Dollars per million tokens, input / output, read from the live catalog.
| Model | Input / output | Context | Loaded |
|---|---|---|---|
Llama 3.1 8Bllama3.1 |
$0.030 / $0.050 | 128K | ● now |
MiniCPM-V 2.6 8B (vision)minicpm-v:latest · image in |
$0.040 / $0.060 | 32K | ● now |
Ornith 1.5 9B (vision, 256K)ornith-1.5:9b · image in |
$0.080 / $0.14 | 256K | ● now |
Ornith 1.5 35B (vision, 256K)ornith-1.5:35b · image in |
$0.12 / $0.80 | 256K | ● now |
Granite 3.2 Vision 2Bgranite3.2-vision:2b · image in |
$0.040 / $0.060 | 16K | ○ on demand |
MiniCPM-V 4.6 (vision)minicpm-v4.6:latest · image in |
$0.040 / $0.060 | 32K | ○ on demand |
DeepSeek-OCR 3Bdeepseek-ocr:3b · image in |
$0.040 / $0.060 | 128K | ○ on demand |
GLM-OCRglm-ocr:latest · image in |
$0.040 / $0.060 | 16K | ○ on demand |
Granite 4.2 3B (text)granite4.2:3b |
$0.040 / $0.060 | 128K | ○ on demand |
LFM3 1.7B (text)lfm3:1.7b |
$0.040 / $0.060 | 256K | ○ on demand |
l2c/auto picks the cheapest loaded model in the tier your request needs. Cap or floor the tier per request.
Prompts and outputs are not stored. A private tier keeps traffic on our own machines.
The same key and credits run media jobs. See images and video.
Yes. Keep the SDK you use and set the base URL to https://api.legit2compute.com/nodes/llm/v1 with your legit2compute key. The key is accepted as Authorization: Bearer or x-api-key.
Chat completions with streaming, tool calling, JSON mode and image input on the models marked for it, plus /v1/models, embeddings, rerank and speech to text. The docs list each one.
Per token, in credits (1 credit = $0.01), with no subscription. Each model's input and output price per million tokens is on the models page, and your Activity page shows the tokens and cost of every request. Signing up with Discord, Google, GitHub or Twitch includes $1 of trial credit.
Send l2c/auto as the model and the gateway picks the cheapest model that is loaded right now in the tier your request calls for, and bills at that model's price.
No. Prompts and outputs are not stored. A private tier keeps your traffic on our own machines.
A model that isn't loaded answers 503 with "warming": true while it starts; retry in a minute or two, or use a model marked available now.
Sign up with Discord, Google, GitHub or Twitch, copy your key, change the base URL.