Your API key, in a minute
Top up a Compute Pass in USDC or $REST, create a key, and send image, text, embedding and voice jobs to community GPUs. You pay only for results that pass verification.
Builder console · Elysium
Connect the wallet that pays for your jobs
Its Compute Pass holds your USDC credits, and the API keys you create here spend from it.
- 1
Connect a wallet
The wallet that pays. Its Compute Pass holds your credits in the ComputeCredits contract on Elysium.
- 2
Top up in USDC or $REST
1 USDC is 1 USDC of credits; $REST tops up at the oracle price with a 10% discount. Jobs hold their price while they run and are charged at the epoch close, only once verified; the payment goes to the Holder Vault.
- 3
Create an API key
Sign a short message, no gas. Give the key a cap per epoch so a leaked key can't spend more than that. Revoke it here any time.
- 4
Get results by webhook
Optional: set one URL and your server gets a signed POST when each job ends, verified, failed, disputed or refunded. Failed deliveries are retried for about 7 hours.
Already use the OpenAI SDK? Change two lines
from openai import OpenAI
client = OpenAI(base_url="https://restgpu.xyz/api/v1", api_key="idx_…")
r = client.chat.completions.create(
model="qwen2.5-14b",
messages=[{"role": "user", "content": "Explain proof of work in two sentences."}],
)
print(r.choices[0].message.content)Chat (qwen2.5-3b, 7b, 14b), embeddings (nomic-embed-v1.5), images (sd15, sdxl) and speech (kokoro-82m, beta, via audio.speech) work with the OpenAI SDKs for Python and Node and the tools built on them. GET /api/v1/models shows how many nodes offer each model now.
Send a job with your key
curl -X POST https://restgpu.xyz/api/network/jobs \
-H "Authorization: Bearer $REST_KEY" \
-H "content-type: application/json" \
-d '{"spec": {"kind": "text", "params": {
"model": "qwen2.5-3b", "maxTokens": 128,
"prompt": "In one sentence, what is a GPU?"}},
"prefer": "cheapest"}'
# -> {"jobId": "0x…", "credits": "…", "status": "queued"}
curl https://restgpu.xyz/api/network/jobs/0x…Image jobs use {"kind": "image", "params": {"model": "sd15", …}} (or "sdxl" for 1024 × 1024), embeddings {"kind": "embed", "params": {"model": "nomic-embed-v1.5", "texts": […]}}, voice (beta) {"kind": "voice", "params": {"model": "kokoro-82m", "text": "…", "voice": "af_heart", "speed": 1, "seed": 7}}. Agents can skip the key and pay per job with x402. Coding agents can learn all of this from the REST skill. Full reference in the docs.
Batches · 50% off
Kept in this tab only. Batches are paid from the key's Compute Pass and count toward its cap.
The whole price is held when you file it and charged per request once it is verified. Requests that fail, or that haven't started when you cancel or the window ends, are refunded.
Batch jobs
Bulk work at 50% off
Embed a whole document set for RAG, caption a catalog or render a thousand images. Send them as one batch and they fill GPUs that would otherwise sit idle.
- 50% off the listed price of every model, for a 6 h or 24 h completion window.
- Up to 10,000 embedding requests or 1,000 chat, image or speech requests a batch, 4 MB at most.
- Batch jobs run on idle GPUs, after every other job. Each one is checked like any job and listed in the Explorer with its batch id.
- The whole price is held when you file it; each request is charged once verified. Failed requests, and any not started when you cancel or the window ends, are refunded.
- One webhook event, batch.completed, when it ends. Results come back as JSONL in OpenAI's output format.
A batch from the command line
# batch.jsonl: one request a line, OpenAI's batch format
{"custom_id": "doc-1", "method": "POST", "url": "/v1/embeddings", "body": {"model": "nomic-embed-v1.5", "input": "First document"}}
{"custom_id": "doc-2", "method": "POST", "url": "/v1/embeddings", "body": {"model": "nomic-embed-v1.5", "input": "Second document"}}
jq -Rs '{endpoint: "/v1/embeddings", completion_window: "24h", input: .}' batch.jsonl |
curl -X POST https://restgpu.xyz/api/v1/batches \
-H "Authorization: Bearer $REST_KEY" -H "content-type: application/json" -d @-
# -> {"id": "batch_…", "object": "batch", "status": "in_progress", …}
curl https://restgpu.xyz/api/v1/batches/batch_… -H "Authorization: Bearer $REST_KEY"
curl https://restgpu.xyz/api/v1/batches/batch_…/results -H "Authorization: Bearer $REST_KEY" > results.jsonlBring your own modelBeta
Your model, on home GPUs
Register a GGUF text model from Hugging Face and call it like any REST model: from the API, /v1/chat/completions, x402 or the MCP toolkit. Nodes whose owners add it run it, and a second node checks it like every text job.
- Pinned. One .gguf on huggingface.co at a commit, with the SHA-256 Hugging Face reports for it, up to 10 GB. Split files come later.
- Priced by size. Like the Qwen2.5 model of its size class: up to 2.6 GB as 3B (0.002 USDC per 1,000 tokens), up to 5.5 GB as 7B, up to 10 GB as 14B.
- Opt-in for nodes. A node runs it only after its owner adds it by name with --trust. REST checks the file, not what is in it: llama.cpp reads the whole file, so owners add only models they trust.
Registered models
Loading…
curl -X POST https://restgpu.xyz/api/network/models/byo \
-H "Authorization: Bearer $REST_API_KEY" -H "content-type: application/json" \
-d '{"name": "Qwen2.5 0.5B Instruct",
"url": "https://huggingface.co/Qwen/Qwen2.5-0.5B-Instruct-GGUF/resolve/9217f5db79a29953eb74d5343926648285ec7e67/qwen2.5-0.5b-instruct-q4_k_m.gguf",
"sha256": "74a4da8c9fdbcd15bd1f6d01d621410d31c6fc00986f5eb687824e7b93d7a9db"}'
<- {"model": {"id": "byo-74a4da8c9fdb", "scale": 1, …}, "listedUsdcPer1kTokens": 0.002}client.chat.completions.create(model="byo-74a4da8c9fdb", messages=[…])node src/agent.ts model add byo-74a4da8c9fdb # shows what it is, downloads nothing
node src/agent.ts model add byo-74a4da8c9fdb --trust # downloads, checks SHA-256 and GGUF header
node src/agent.ts model remove byo-74a4da8c9fdbA model nobody runs yet answers 503 no_node_online, as any model with no node online; nothing is charged. GET /api/network/models/byo lists every registered model and how many nodes offer it now.
