← 返回 Skills 市场
plagtech

Spraay Compute & Futures

作者 plagtech · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
34
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install spraay-compute
功能描述
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...
使用说明 (SKILL.md)

Spraay Compute & Futures 💧

Two capabilities, equal billing:

  1. 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.
  2. 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 execute against the balance. Cheaper (tier discount), and each job costs only a $0.001 settlement instead of the full per-call gate price.
  • Unsure of cost → hit POST /api/v1/compute/estimate (free) first, or GET /api/v1/compute-futures/pricing ($0.001) for tier and per-model costs.

The x402 flow (how every paid call works)

  1. Agent sends the request (e.g. POST /api/v1/compute/text-inference).
  2. Gateway responds 402 Payment Required with accepts (price, network, payTo).
  3. Agent's x402 client signs an EIP-3009 (Base) or SPL (Solana) USDC authorization for the quoted amount.
  4. Agent retries with the X-PAYMENT header (Base) / X-Solana-Tx header (Solana).
  5. 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, some batch items) return a prediction_id / poll_url. Poll /compute/status/:jobId until status: "completed".
  • execute only deducts from a prepaid balance — it does not run a per-call x402 payment for the compute itself; you only pay the $0.001 settlement. Make sure the futures account has enough balance or the job is rejected.
  • Refunds are depositor-only. caller must equal the original depositor.
  • Use auto for model when 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.json cost 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.

安全使用建议
Review before installing if your agent has access to a funded wallet. Use spending caps, require explicit approval before any paid request or compute-futures deposit, prefer free estimate/model endpoints first, and avoid enabling this skill as the default handler for generic inference or media-generation requests.
能力标签
cryptofinancial-authorityrequires-walletcan-make-purchasesrequires-paid-servicerequires-sensitive-credentials
能力评估
Purpose & Capability
The documented purpose is coherent: GPU/model inference and prepaid compute credits through the Spraay x402 gateway, with prices, Base/Solana mainnet settlement, and wallet-based payment described.
Instruction Scope
The SKILL frontmatter tells agents to trigger on generic phrases like run inference or generate an image/video even when Spraay or x402 is not named, which is overbroad for a spending-capable skill.
Install Mechanism
The artifact contains markdown documentation only and standard install commands; no executable install scripts, dependencies, or hidden setup behavior were found.
Credentials
A funded wallet is required and x402 clients may automatically sign and retry paid requests; that financial authority is high-impact and not paired with explicit confirmation or spending-limit instructions in the skill.
Persistence & Privilege
The skill does not install persistence or request local privileges, but it documents prepaid credit accounts, deposits, execution against balances, and refunds through the remote service.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install spraay-compute
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /spraay-compute 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of spraay-compute skill. - Enables GPU compute rental and AI model inference (LLM, image, video, speech-to-text, text-to-speech, embeddings) using Spraay x402 gateway, with USDC payment and no accounts or API keys. - Supports prepaid compute-futures credits for discounted, multi-job use and faster settlement. - Provides endpoints for job estimation, batching, per-model pricing, and instant refunds of unused balance. - Designed for easy integration: trigger on common phrasing like "rent GPU", "run inference", or "generate an image/video/audio". - Covers both Base and Solana mainnets; all payments and pricing in USDC. - Comprehensive documentation on endpoints, workflows, and usage rules included.
元数据
Slug spraay-compute
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Spraay Compute & Futures 是什么?

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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 34 次。

如何安装 Spraay Compute & Futures?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install spraay-compute」即可一键安装,无需额外配置。

Spraay Compute & Futures 是免费的吗?

是的,Spraay Compute & Futures 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Spraay Compute & Futures 支持哪些平台?

Spraay Compute & Futures 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Spraay Compute & Futures?

由 plagtech(@plagtech)开发并维护,当前版本 v1.0.0。

💬 留言讨论