API & usage
Explorer
Become a miner
// minerai-1 · open-source AI for developers
What are we building?
Open-source AI for developers, running on community GPUs.
Answers come from independent miners and can be wrong. Never paste secrets.
// mine · earn $MINERAI
Your graphics card runs the AI. You earn $MINERAI.
Every answer on minerai is written by a community GPU. 80% of what users pay goes to the miner who answered it, paid out every day.
Then your miner lights up on the . Next time, just type minerai mine.
Your miner's wallet lets minerai take up to the amount you stake. The tokens never leave your wallet; sell them or stop and the stake drops. Cheating burns part of it.
// 01 · architecture
How a miner works
The miner is a small open-source Node.js program that drives a local inference engine (Ollama, or any OpenAI-compatible server such as llama.cpp or LM Studio). It opens one outbound WebSocket to the router: no port to open, no public IP.
user ── HTTPS ──▶ router ── WebSocket ──▶ miner ──▶ Ollama · GPU ◀──── tokens, streamed ────────┘
- Handshake. The router sends a nonce; the miner signs it with its ed25519 identity (
~/.minerai/identity.json) and names the wallet that receives its rewards. - Probation. Its first answers are questions the router can check (arithmetic, facts). One pass and it serves users.
- Jobs. Each question is streamed to one miner, chosen at random among the free ones and weighted by reputation.
- Checks. Canaries keep coming at random times, on every model the miner claims. Wrong answers lower reputation; at zero the miner is banned and loses its unpaid earnings.
- Receipts. Every job gets a receipt signed by the router: miner, wallet, model, token counts.
// 02 · requirements
Hardware and models
The miner installs every unlocked model your GPU memory can hold, in the background, and serves them all. Bigger models pay more per answer.
| Model | Size | GPU memory | Pays | Status |
|---|
Also needed: Windows 10+, macOS 13+ or Linux · about 6 GB of disk for minerai-1 (more for bigger models) · a stable connection. Apple Silicon counts its unified memory.
// 03 · earnings
What you earn
| Rule | Value |
|---|---|
| Your share | 80% of the $MINERAI each answer you serve costs the user (10% is burned, 10% goes to the treasury) |
| Price of an answer | $0.001 per 1,000 generated tokens, paid in $MINERAI at the live price |
| Hold | 24 hours, so cheating can be caught before tokens move |
| Payout | Automatic, every day at 12:00 UTC, from 100 $MINERAI owed, to your wallet |
| Proof | Every payout is a Solana transaction you can open; the totals are public at /api/transparency |
// 04 · commands
The minerai command
| Command | What it does |
|---|---|
minerai mine | Starts mining with the saved wallet (asks for it the first time). Ctrl+C stops and frees the GPU at once |
minerai mine <wallet> | Mines for another wallet |
minerai update | Gets the latest version. The miner also updates itself between answers |
minerai models | The models unlocked on the network |
minerai | The AI agent in your terminal, paid from your balance |
Advanced: MINERAI_CONCURRENCY=2 serves two answers at once on a big card; MINERAI_BACKEND_URL points the miner at another engine (llama.cpp, LM Studio). Settings live in ~/.minerai/.
// 05 · security
What the miner can and can't do
- It never holds a private key of your wallet: only its public address, where rewards are sent.
- Its identity key only signs the handshake; it can't move funds.
- It only receives the prompt of the job it is serving, and never sees accounts, keys or payments.
- The code is open source, and the installer is plain text you can read before running it.
// admin · operator only
Launch $MINERAI
Check what's ready, launch the coin (or paste its address), and it's linked everywhere at once: prices, payments, payouts, burns, buybacks, staking, the website and the docs.
The admin needs your admin wallet signed in and the admin password.
1Ready for launch?
2The coin
From your wallet, on pump.fun. Write the announcement first: its link goes on the coin's page. No minerai fee on this one.
Paste its address: checked on Solana, then linked everywhere.
3Announce it
A thread from your X with the address, how it works, and the links. You read and edit it before it posts.
// explorer · launched with minerai
Coins launched with minerai
Every coin here was created from the minerai app, and its launch was checked on Solana. Live data from pump.fun. Anyone can launch a coin: this is not investment advice.
// api · openai-compatible
Use minerai in your own apps
Point any OpenAI client at minerai, keep your code, pay in $MINERAI. Every request is served by a community GPU.
minerai in your terminal
An AI agent in any project folder: it reads your code, writes files and runs commands, and always asks before changing anything. The same command mines. It updates itself.
minerai loginpaste your API key from the card belowmineraiopen the agent in any project folderminerai mineearn $MINERAI with your graphics card
Your API key
Anyone with this key can spend your $MINERAI balance. Keep it on your server, never in front-end code.
mk_••••••••••••••••••••••••••••••
- Base URL
- Model
minerai-1
Wallet
Link a Solana wallet to pay with its $MINERAI, sign in on other devices, and see your miner earnings.
| Date | Asset | Amount | Added | Status | Transaction |
|---|
How deposits, payouts and custody work, in detail: Wallets, credits and miner payouts.
Quickstart
Add "web_search": true to let the router search the web for fresh answers. Responses include a minerai object with the request's cost and your remaining balance, in $MINERAI.
Pricing
- 1,000 output tokens1 $MINERAI
- 1,000 input tokens0.25 $MINERAI
- Connector call (web, Solana, market, GitHub, page)0.5 $MINERAI
- Holders of 1M $MINERAI20% off
Prices are fixed in dollars and paid in $MINERAI at the one-hour average price. Of what you spend: 80% to the miners, 10% burned, 10% to the treasury.
Limits
- Requests per minute20
- Parallel requests2
- Max output tokens4,096
- Max prompt32k characters
Limits grow with the network. Need more? Run a miner, you'll help everyone.
Recent usage
| Time | Source | Input | Output | Tools | Cost |
|---|