Spraay Compute Futures API

The compute-futures API from Spraay — 6 operation(s) for compute-futures.

GitHub OpenAPI

Operations 6

POST /api/v1/compute-futures/deposit Deposit USDC to open a prepaid compute credit account. #
GET /api/v1/compute-futures/balance Check remaining compute credit balance, tier, discount, and usage stats. #
POST /api/v1/compute-futures/execute Run a compute job and deduct cost from the prepaid balance. #
GET /api/v1/compute-futures/history Full usage ledger - every job, model, price, and balance change. — $0.002 #
POST /api/v1/compute-futures/refund Refund unused compute credit balance to the original depositor. Depositor only. #
GET /api/v1/compute-futures/pricing Compute futures pricing - tier discounts, per-model costs, bulk discount info. #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/spraay-app:spraay-app-compute-futures-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

spraay-app-compute-futures-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Spraay App Compute Futures API
  version: 3.8.3
  contact:
    name: Spraay
    url: https://spraay.app
    email: hello@spraay.app
  license:
    name: MIT
  x-guidance: Spraay is a multi-chain payment and AI inference gateway with 160 paid endpoints. Use POST /api/v1/chat/completions for LLM chat (200+ models, OpenAI-compatible). POST /api/v1/batch/execute for batch USDC payments. GET /api/v1/oracle/prices for real-time price feeds. POST /api/v1/robots/task to dispatch robot tasks via RTP. POST /api/v1/search/qna for structured Q&A. Bittensor decentralized AI at /bittensor/v1/chat/completions. Supply chain at /api/v1/sctp/*. All endpoints accept micropayments via x402 and MPP (USDC on Base). No API keys needed — just pay per call.
  description: 'Operations tagged compute-futures across 2 of this provider''s published API definitions: gateway.spraay.app.json, spraay-app-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://gateway.spraay.app
  description: Production (Base mainnet)
security:
- x402: []
tags:
- name: compute-futures
paths:
  /api/v1/compute-futures/deposit:
    post:
      operationId: compute-futures-deposit
      summary: Deposit USDC to open a prepaid compute credit account.
      tags:
      - compute-futures
      description: Paid endpoint — $0.01 per call via x402/MPP. See https://gateway.spraay.app/.well-known/x402.json for full payment details.
      x-payment-info:
        price:
          mode: fixed
          amount: '0.010000'
          currency: USD
        protocols:
        - mpp: {}
        - x402: {}
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
        '402':
          description: Payment Required
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                depositor:
                  type: string
                amount:
                  type: string
                expiresInDays:
                  type: number
              required:
              - depositor
              - amount
    servers:
    - url: https://gateway.spraay.app
      description: Production (Base mainnet)
  /api/v1/compute-futures/balance:
    get:
      operationId: compute-futures-balance
      summary: Check remaining compute credit balance, tier, discount, and usage stats.
      tags:
      - compute-futures
      description: Paid endpoint — $0.001 per call via x402/MPP. See https://gateway.spraay.app/.well-known/x402.json for full payment details.
      x-payment-info:
        price:
          mode: fixed
          amount: '0.001000'
          currency: USD
        protocols:
        - mpp: {}
        - x402: {}
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
        '402':
          description: Payment Required
      parameters:
      - name: id
        in: query
        required: true
        schema:
          type: string
    servers:
    - url: https://gateway.spraay.app
      description: Production (Base mainnet)
  /api/v1/compute-futures/execute:
    post:
      operationId: compute-futures-execute
      summary: Run a compute job and deduct cost from the prepaid balance.
      tags:
      - compute-futures
      description: Paid endpoint — $0.001 per call via x402/MPP. See https://gateway.spraay.app/.well-known/x402.json for full payment details.
      x-payment-info:
        price:
          mode: fixed
          amount: '0.001000'
          currency: USD
        protocols:
        - mpp: {}
        - x402: {}
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
        '402':
          description: Payment Required
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                futuresId:
                  type: string
                type:
                  type: string
                model:
                  type: string
                messages:
                  type: array
                prompt:
                  type: string
              required:
              - futuresId
              - type
    servers:
    - url: https://gateway.spraay.app
      description: Production (Base mainnet)
  /api/v1/compute-futures/history:
    get:
      operationId: compute-futures-history
      summary: Full usage ledger - every job, model, price, and balance change. — $0.002
      tags:
      - compute-futures
      description: Paid endpoint — $0.002 per call via x402/MPP. See https://gateway.spraay.app/.well-known/x402.json for full payment details.
      x-payment-info:
        price:
          mode: fixed
          amount: '0.002000'
          currency: USD
        protocols:
        - mpp: {}
        - x402: {}
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
        '402':
          description: Payment Required
      parameters:
      - name: id
        in: query
        required: true
        schema:
          type: string
      - name: limit
        in: query
        required: false
        schema:
          type: number
    servers:
    - url: https://gateway.spraay.app
      description: Production (Base mainnet)
  /api/v1/compute-futures/refund:
    post:
      operationId: compute-futures-refund
      summary: Refund unused compute credit balance to the original depositor. Depositor only.
      tags:
      - compute-futures
      description: Paid endpoint — $0.01 per call via x402/MPP. See https://gateway.spraay.app/.well-known/x402.json for full payment details.
      x-payment-info:
        price:
          mode: fixed
          amount: '0.010000'
          currency: USD
        protocols:
        - mpp: {}
        - x402: {}
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
        '402':
          description: Payment Required
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                futuresId:
                  type: string
                caller:
                  type: string
              required:
              - futuresId
              - caller
    servers:
    - url: https://gateway.spraay.app
      description: Production (Base mainnet)
  /api/v1/compute-futures/pricing:
    get:
      operationId: compute-futures-pricing
      summary: Compute futures pricing - tier discounts, per-model costs, bulk discount info.
      tags:
      - compute-futures
      description: Paid endpoint — $0.001 per call via x402/MPP. See https://gateway.spraay.app/.well-known/x402.json for full payment details.
      x-payment-info:
        price:
          mode: fixed
          amount: '0.001000'
          currency: USD
        protocols:
        - mpp: {}
        - x402: {}
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
        '402':
          description: Payment Required
      parameters: []
    servers:
    - url: https://gateway.spraay.app
      description: Production (Base mainnet)
components:
  securitySchemes:
    x402:
      type: http
      scheme: x402
      description: Pay per-call with USDC on Base to 0x86e43BD1d94802bcF431707b67ff4c8F5B7267Ec
externalDocs:
  description: Full docs
  url: https://docs.spraay.app
x-refined-from:
- gateway.spraay.app.json
- spraay-app-openapi.json
x-discovery:
  ownershipProofs: []