Spraay compute
Skill plagtech/spraay-compute
π§ OpenClaw / Claude Code skill for AI agents: rent GPU compute, run AI model inference (LLM, image, video, speech, embeddings), and buy prepaid compute futures credits β paid in USDC over x402. No API keys, no accounts. Base + Solana. Powered by the Spraay x402 gateway.
npx -y skills add plagtech/spraay-computeAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Rent GPU compute, run AI model inference (LLM chat, image, video, speech-to-text, text-to-speech, embeddings), and buy prepaid compute-futures credits β all paid in USDC over x402, no API keys and no accounts. Use this skill whenever an agent needs to rent GPU time, run or batch model inference, generate images/video/audio, create text embeddings for RAG, estimate compute cost before spending, or lock in discounted compute by prepaying into a compute-futures credit balance. Trigger it for any phrasing like "rent GPU", "run inference", "generate an image/video", "transcribe audio", "text to speech", "get embeddings", "prepay compute", "compute credits", or "compute futures", even when x402 or Spraay is not named.
SKILL.md
7.7 KB, ~2.0k tokens by cl100k_base, as published. Nobody here has run it
Spraay Compute & Futures π§
Two capabilities, equal billing:
- Compute rental β pay-per-call GPU and model inference (LLM, image, video, TTS, STT, embeddings) via the Spraay x402 gateway. One HTTP request, one USDC payment, the result comes back. No keys, no signup.
- Compute futures β prepay USDC into a credit balance and draw it down per job at a tier discount (up to 15%). Settle once, run many jobs with no per-call payment, refund whatever is left.
Everything settles in USDC over x402 V2 on Base mainnet and Solana mainnet. The gateway returns a standard HTTP 402 Payment Required with payment requirements; the agent pays via its x402 client and retries. Base address 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 (USDC); Solana mint EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v.
Base URL: https://gateway.spraay.app
When to use which
- One-off or low-volume job β call the relevant compute endpoint directly and pay per call.
- Repeated jobs / known budget / cost-sensitive agent β open a compute-futures account once, then
executeagainst the balance. Cheaper (tier discount), and each job costs only a$0.001settlement instead of the full per-call gate price. - Unsure of cost β hit
POST /api/v1/compute/estimate(free) first, orGET /api/v1/compute-futures/pricing($0.001) for tier and per-model costs.
The x402 flow (how every paid call works)
- Agent sends the request (e.g.
POST /api/v1/compute/text-inference). - Gateway responds
402 Payment Requiredwithaccepts(price, network, payTo). - Agent's x402 client signs an EIP-3009 (Base) or SPL (Solana) USDC authorization for the quoted amount.
- Agent retries with the
X-PAYMENTheader (Base) /X-Solana-Txheader (Solana). - Gateway verifies/settles via the facilitator and returns the result.
Any x402-aware client handles this automatically (@x402/fetch, x402-axios, the Spraay MCP server, or an OpenClaw payment skill such as ClawPay/Vault-0). The agent only needs a funded wallet.
Quick endpoint reference
Prices below are the x402 gate price per call (what the agent pays at the 402). Free endpoints need no payment.
GPU / Compute rental
| Endpoint | Method | Price | Purpose |
|---|---|---|---|
/api/v1/gpu/run | POST | $0.06 | Run any Replicate model (image, video, LLM, audio, utility) |
/api/v1/gpu/status/:id | GET | $0.005 | Poll an async GPU prediction |
/api/v1/gpu/models | GET | free | List GPU model shortcuts |
Model inference
| Endpoint | Method | Price | Purpose |
|---|---|---|---|
/api/v1/compute/text-inference | POST | $0.03 | LLM chat/completion β 11 models 3Bβ405B (Chutes AI / Bittensor SN64, OpenRouter) |
/api/v1/compute/image-generation | POST | $0.03 | Text-to-image β FLUX Schnell/Dev/Pro, SDXL |
/api/v1/compute/video-generation | POST | $0.50 | Text-to-video β MiniMax Video 01, Wan 2.1 (async) |
/api/v1/compute/text-to-speech | POST | $0.03 | TTS / voice synthesis |
/api/v1/compute/speech-to-text | POST | $0.02 | Whisper Large V3 transcription, 100+ languages |
/api/v1/compute/embeddings | POST | $0.005 | Text/vector embeddings for RAG and semantic search |
/api/v1/compute/batch | POST | $0.05 | Up to 50 mixed jobs in one payment, 10% batch discount |
/api/v1/compute/status/:jobId | GET | $0.001 | Poll an async compute job (video, batch items) |
/api/v1/compute/models | GET | free | List all compute models with pricing |
/api/v1/compute/estimate | POST | free | Estimate cost before committing |
Compute futures (prepaid credits)
| Endpoint | Method | Price | Purpose |
|---|---|---|---|
/api/v1/compute-futures/deposit | POST | $0.01 | Open a prepaid credit account. Tiers: $10+ (5%), $50+ (10%), $200+ (15%) |
/api/v1/compute-futures/balance | GET | $0.001 | Balance, tier, discount, usage stats |
/api/v1/compute-futures/execute | POST | $0.001 | Run a job, deduct from balance (no per-call x402, discount applied) |
/api/v1/compute-futures/history | GET | $0.002 | Full usage ledger |
/api/v1/compute-futures/refund | POST | $0.01 | Refund unused balance to the depositor |
/api/v1/compute-futures/pricing | GET | $0.001 | Tier discounts, per-model costs, bulk-discount info |
For exact request/response schemas, required fields, and model lists, read references/endpoints.md. For runnable end-to-end examples (per-call and the full futures lifecycle), read examples/quickstart.md.
Headline workflows
Rent compute (per-call), e.g. LLM inference
POST /api/v1/compute/text-inference
{ "messages": [{ "role": "user", "content": "Summarize this contract: ..." }], "model": "auto" }
β 402 β pay $0.03 USDC β retry β { provider, model, choices: [...], usage, price_usdc }
Run a GPU model on Replicate
POST /api/v1/gpu/run
{ "model": "flux-pro", "input": { "prompt": "a serene mountain lake at sunset" } }
β 402 β pay $0.06 USDC β retry β { id, status, model, output: ["https://replicate.delivery/..."] }
Compute futures lifecycle (prepay β draw down β refund)
POST /api/v1/compute-futures/deposit { "depositor": "0xYou", "amount": "50" }
β pay $0.01 β { computeFuture: { id: "CFE-ABC12345", tier: "scale", discount: "10% discount", balanceRemaining: "50 USDC" } }
POST /api/v1/compute-futures/execute { "futuresId": "CFE-ABC12345", "type": "text-inference", "messages": [...] }
β pay $0.001 β { billing: { charged: "$0.027", balanceRemaining: "$42.473 USDC" }, compute: { model: "Llama 3.3 70B" } }
POST /api/v1/compute-futures/refund { "futuresId": "CFE-ABC12345", "caller": "0xYou" }
β pay $0.01 β { refund: { refundAmount: "42.50 USDC", jobsExecuted: 15 } }
Rules and gotchas
- Async endpoints (
video-generation, somebatchitems) return aprediction_id/poll_url. Poll/compute/status/:jobIduntilstatus: "completed". executeonly deducts from a prepaid balance β it does not run a per-call x402 payment for the compute itself; you only pay the$0.001settlement. Make sure the futures account has enough balance or the job is rejected.- Refunds are depositor-only.
callermust equal the originaldepositor. - Use
autoformodelwhen you don't care which model serves the request; the gateway routes to a sensible default for that job type. - Free before paid.
compute/estimate,compute/models,gpu/models, and/.well-known/x402.jsoncost nothing β use them to plan a call before spending. - Discovery: the gateway publishes a machine-readable catalog at
https://gateway.spraay.app/.well-known/x402.json. Point a discovery-driven agent there to enumerate live endpoints and prices.
Provenance
This skill wraps the Spraay x402 Gateway compute surface (GPU/Compute, Compute Services, and Compute Futures / Category 22). Prices reflect the live gateway gate prices in USDC. If the gateway updates pricing or adds models, regenerate references/endpoints.md from /.well-known/x402.json.
What ships with it: 3 files
16.0 KB alongside SKILL.md
examples/
- quickstart.md5.3 KB
references/
- endpoints.md7.5 KB
- README.md3.1 KB
Gives 0 of the 12 instructions most context ai engineering skills give in ~2.0k tokens
Counted across 1,193 of the 1,976 authors here whose files we hold, read 2026-08-07
- Dispatch a fresh implementer subagent per taskin 48 of 1193, across 19 files
- Dispatch a final code reviewer after all tasksin 33 of 1193, across 8 files
- Provide full task text to the subagentin 30 of 1193, across 9 files
- Review spec compliance before code qualityin 27 of 1193, across 10 files
- Make the hook script executablein 26 of 1193, across 8 files
- Re-snapshot after navigation or DOM changesin 25 of 1193, across 19 files
- Read files before editing themin 22 of 1193, across 11 files
- Answer subagent questions before proceedingin 22 of 1193, across 7 files
- Mark task complete in TodoWrite after approvalin 22 of 1193, across 6 files
- Merge hook into existing settingsin 21 of 1193, across 3 files
- Ask if installation is global or projectin 20 of 1193, across 2 files
- Copy the hook script to target locationin 20 of 1193, across 2 files
Said here and by no other author read
- use free endpoints to plan before spending
- ensure sufficient balance before executing futures jobs
- use auto for model when unspecified
- set caller equal to original depositor for refunds
- read the machine-readable catalog to discover endpoints
- regenerate endpoint references from the catalog when pricing changes
Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.