Use RIG, step by step
Everything that runs on RIG, from the first signature to a GPU over SSH.
Get started
Your wallet is your account. There is no email and no password.
- Open the app and press Connect wallet. RIG works with MetaMask, Rabby and any wallet your browser offers.
- Sign one message. It costs no gas and moves no funds.
- The Overview shows your credits, your spend and your running instances.
RIG runs on Robinhood Chain. When you buy credits, your wallet switches to it, and adds it first if it is new to your wallet.
RIG credits
One RIG credit pays for $1 of outputs and rentals at their listed prices. At launch a credit costs 0.70 USDG, so everything is 30% off.
- Open Billing and pick an amount from 5 to 1,000 dollars. The You get line shows the credits it buys: 5 USDG buys 7.1428 credits.
- Press Buy credits and confirm the transfer in your wallet. It goes to the RIG treasury, and your wallet pays the gas in ETH.
- The credits show up as soon as Robinhood Chain confirms the transfer. Each deposit in your history links to the explorer.
- Balances are cut down to the last micro-credit, never rounded up.
- Pay with ETH and it is priced at the market the moment your transfer is confirmed.
- Pay with $RIG and a credit costs the same 0.70 USDG, paid in $RIG at the lower of its spot price and its 30-minute average.
- Credits bought with $RIG are spent first. Each hour, the $RIG behind the credits that were used is sent to the dead address.
Credits you do not use go back to the wallet that bought them. Open Billing and press Refund my balance. A credit returns at the price you paid for it, in the asset you paid with. A refund takes your whole balance, starts at 1 USDG, and waits while an instance of yours runs.
Make outputs
The Playground makes images, video and voice with ready models. An output takes its credits at the listed price when you press Make, and gives them back if it fails.
- Open the Playground and pick a model.
- Write a prompt of up to 2,000 characters, or the text of a voice of up to 1,000 characters.
- Pick a size: square, wide or tall. A video also takes a length. The price shows before you make it.
- Press Make. The output is made in the background, so you can leave the page.
- Find it under Outputs, where you can play it and download it. Files are kept for 24 hours.
| Model | Makes | Unit | Listed, in credits |
|---|---|---|---|
| Reading the catalog… | |||
A video is priced per 5 seconds, so 10 seconds cost twice the listed price.
Free outputs
A wallet with at least 1,000 $RIG makes 50 images and 2 videos free in each UTC day. After that, its outputs take credits.
- New free outputs come at 00:00 UTC.
- A free video is 5 seconds long. A longer one takes credits. A voice always takes credits.
- A free output that fails does not count.
- Free outputs are for the signed-in wallet in the Playground. API keys and x402 always pay.
Rent a GPU
Rent a whole NVIDIA GPU with SSH and Jupyter, billed by the second in RIG credits.
ssh-keygen -t ed25519 -f ~/.ssh/rig -C "rig"
cat ~/.ssh/rig.pub
- Make an SSH key with the commands above and copy the line the second one prints.
- Open SSH keys, paste the line, give it a name and press Add key. A wallet keeps up to 10 keys and every new instance takes all of them.
- Open the Marketplace and press Rent on a GPU, or Rent the cheapest after setting how much memory you need. A busy GPU charges nothing.
- An instance starts when your credits pay for at least 10 minutes of it. Open My instances and wait for running.
- Copy the SSH command from the card, add
-i ~/.ssh/rig, and run it. PyTorch and CUDA come installed. - For Jupyter, run the tunnel command and leave it running, then open
http://localhost:8888. - Press End instance when you are done. The instance and its 50 GB disk are deleted and its credits stop at that second.
- Billing starts the second SSH is ready, so the start is free.
- Leaving SSH does not end an instance. End instance does.
- A wallet runs one instance at a time, for as long as its credits last.
- If a GPU never starts, nothing is charged. RIG moves the rental once to the next cheapest GPU with at least the same memory.
- When your credits can no longer pay for the next second, the instance ends. My instances warns ten minutes ahead.
Billing
Billing shows your balance, the price of a credit and your history. Every deposit, output and rental is one line. A rental is one line that grows while its instance runs.
API
Call RIG from your own code with an API key. Every request goes to /api/v1 and pays with the credits of your wallet, at the same listed prices.
- Open API & x402 and sign in with your wallet.
- Give the key a name, and a spend cap per day if you want one, and press Make key.
- Copy the key, which starts with
rgk_. RIG shows it once and keeps only its hash.
curl ORIGIN/api/v1/outputs \
-H "Authorization: Bearer $RIG_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "flux-schnell", "prompt": "A lighthouse at dusk"}'
curl ORIGIN/api/v1/outputs/OUTPUT_ID \
-H "Authorization: Bearer $RIG_KEY"
GET /credits?days=7 | Your balance, and your spend of the last days (1 to 14). |
GET /models | The models that make outputs now. No key needed. |
POST /outputs | Makes an image, a video or a voice, paid with your credits, or with x402 and no key. |
GET /outputs | Your outputs of the last day, newest first. |
GET /outputs/{id} | One output: making, ready with its file in base64, or failed with its credits back. |
GET /outputs/{id}/file | The file of a ready output itself. |
GET /gpus | The GPUs and their rates. No key needed. Add ?vram=48 to see what rig/auto would pick. |
POST /instances | Rents a GPU: {"gpu": "RTX 4090"} or {"gpu": "auto", "vram": 48}. |
GET /instances, /instances/{id} | Your instances, each with its SSH command once it runs. |
POST /instances/{id}/terminate | Ends an instance. Its credits stop at that second. |
GET, POST /ssh-keys, DELETE /ssh-keys/{id} | The SSH keys a new instance takes. |
GET /receipts | Your receipts. |
- A key acts for your wallet: it reads credits, makes outputs and rents GPUs. It never refunds credits, signs in, or makes other keys. A wallet keeps up to 10 keys.
- A request with no key or a deleted key answers 401. A stopped key answers 403. A request past the daily cap answers 429 until 00:00 UTC, and an instance the key rented ends when the cap is spent.
- Only your wallet, signed in, changes the cap or the stop of a key.
MCP server
Connect an AI agent to RIG once over MCP. The agent then makes outputs and rents GPUs on its own, with the credits of your wallet and inside the cap of its key.
claude mcp add --transport http rig ORIGIN/mcp \
--header "Authorization: Bearer $RIG_KEY"
{ "mcpServers": { "rig": { "url": "ORIGIN/mcp", "headers": { "Authorization": "Bearer ${env:RIG_KEY}" } } } }
The 14 tools: get_balance, list_models, make_output, get_output, list_outputs, list_gpus, rent_gpu, list_instances, get_instance, end_instance, list_ssh_keys, add_ssh_key, remove_ssh_key, list_receipts.
make_outputwaits up to 50 seconds. A slower output comes back with the status making, andget_outputreads it again.- A ready output comes with a link to its file that opens with no key for 24 hours. An image also comes inline, so the agent sees it.
- The agent never buys or refunds credits. Your wallet does that in Billing.
x402
An agent pays for each output itself with x402: one signature of its own wallet, in USDG on Robinhood Chain, with no API key and no account. RIG submits the transfer and pays the gas.
- Send
POST /api/v1/outputswith no Authorization header. RIG answers 402, with the price in the headerPAYMENT-REQUIRED. - The agent signs that USDG transfer (EIP-3009
TransferWithAuthorization, token domainGlobal Dollar, version1) and sends the same request again, with the payment in the headerPAYMENT-SIGNATURE. - RIG checks the signature, settles the transfer on Robinhood Chain and makes the output. A fast output comes back in the same answer. A slower one answers 202 with its id. The header
PAYMENT-RESPONSEnames the transaction. - Read
GET /api/v1/outputs/{id}with no key until the output is ready.
{ "x402Version": 2,
"accepts": [{ "scheme": "exact", "network": "eip155:4663",
"asset": "0x5fc5360d0400a0fd4f2af552add042d716f1d168", "amount": "2937",
"payTo": "the RIG treasury", "maxTimeoutSeconds": 120,
"extra": { "name": "Global Dollar", "version": "1" } }] }
- Any client of x402 v2 with the exact scheme pays RIG: it knows USDG on Robinhood Chain as the network
eip155:4663. - A payment buys credits for the wallet that signed it and the output spends them, so every output has a receipt. A failed output leaves its credits with that wallet.
- A payment pays once. Sent again, or for another price, it answers 402 with the price.
- x402 pays for outputs. GPU rentals take an API key.
Receipts
Every paid output and every rental writes a receipt: what ran, for how many GPU seconds, and what it cost. Each hour, the receipts of that hour are hashed into a Merkle root, and the root is written into the data of a Robinhood Chain transaction.
- The leaf is the SHA-256 of the fields
id|wallet|kind|ref|what|micro|seconds|tsjoined with a bar. - Each step of the proof is hashed with the running hash, smaller value first.
- The last hash is the root of the hour, which is the text in the transaction data:
rig:receipts:v1:HOUR:ROOT.
The Receipts page does this in your browser when you press Check. GET /api/receipts/{id}/proof returns the same proof for your own code.
$RIG
$RIG does two things on the network. Holding 1,000 makes 50 images and 2 videos free each day. Paying with it buys credits that are spent first, and the tokens behind used credits are burned each hour. Unused ones refund as the same tokens.
Run your own
RIG is one Node.js 22 program with no dependencies. npm start runs it and npm test runs the end-to-end checks.
TREASURY | The Robinhood Chain address that receives deposits and x402 payments. |
RUNPOD_API_KEY | Connects the GPUs and the model endpoints. Outputs and rentals open when it is set. |
TREASURY_SECRET | A 32-byte hex private key. Lets the server send refunds, burn $RIG, write the hourly root and settle x402 payments. |
TOKEN_ADDRESS | The contract of $RIG. Turns on paying with it, free outputs and the burn. |
RPC_URL, DATA_PATH, MARKUP, SITE_URL, X_URL, GH_URL, ADMIN_KEY | The chain RPC, where the ledger is kept, the rate over provider cost, and links. |