ModelMarket Vrf API

The vrf API from ModelMarket — 1 operation(s) for vrf.

GitHub OpenAPI

Operations 1

POST /x402/fair-random Verifiable random bytes for a draw, raffle or tie-break: an ECVRF output over… #

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/modelmarket-dev:modelmarket-dev-vrf-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

modelmarket-dev-vrf-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: modelmarket.dev — AIMarket Hub v3 Vrf API
  description: Lean federation hub for AI capability discovery and routing. Plugins extend functionality.
  version: 3.21.0
tags:
- name: vrf
paths:
  /x402/fair-random:
    post:
      operationId: fairRandom
      summary: 'Verifiable random bytes for a draw, raffle or tie-break: an ECVRF output over…'
      description: 'Verifiable random bytes for a draw, raffle or tie-break: an ECVRF output over your seed plus a proof anyone can check offline. The same seed always gives the same output, so publish the seed first.'
      tags:
      - vrf
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.006'
        protocols:
        - x402:
            scheme: exact
            network: eip155:8453
            asset: USDC
            payTo: '0x1218ff36C5d2e3B6A565CdB1A8B1AcCFc606Ad0a'
      security: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                seed:
                  type: string
                  description: the seed or message the draw is bound to (up to 4096 bytes)
                num_bytes:
                  type: integer
                  description: output length, 1-64 (default 32)
              required:
              - seed
            example:
              seed: raffle-2026-10-02:alice,bob,carol
      responses:
        '200':
          description: The result (paid).
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    const: ok
                  service:
                    type: string
                    const: fair-random
                  capability_id:
                    type: string
                    const: sortes.draw@v1
                  result:
                    type: object
                    description: the capability's output as the source hub returns it
                  receipt:
                    type:
                    - object
                    - 'null'
                    description: the hub's signed receipt for the call
                required:
                - status
                - service
                - capability_id
                - result
              example:
                status: ok
                service: fair-random
                capability_id: sortes.draw@v1
                result: {}
                receipt: {}
        '400':
          description: 'Missing or invalid input. Not settled: the buyer pays nothing.'
        '402':
          description: 'Payment required: the x402 V2 terms are in the PAYMENT-REQUIRED header.'
          headers:
            PAYMENT-REQUIRED:
              schema:
                type: string
              description: base64 JSON x402 payment terms
        '429':
          description: Per-caller rate limit.
        '502':
          description: The upstream service failed. Not settled.