Introduction

OpenMayhem is a pay-per-use inference API over a decentralised provider network. The API is OpenAI-compatible: point an SDK you already use at api.openmayhem.ai, pick a model from the live catalog, and pay per request from prepaid credit.

How it works

  • You hold prepaid credit. Before a request is dispatched its worst-case cost is held; after completion the actual cost is charged and the rest released. You can never spend below zero.
  • Every charge settles against a receipt signed by the provider that did the work. The response tells you the exact cost in USD.
  • Prices are public per model, including each model’s full price history, on the live catalog along with current provider availability.

Base URL

All API endpoints live under https://api.openmayhem.ai/v1 and authenticate with a bearer API key. The surface mirrors OpenAI where an equivalent exists, so most clients work by changing only the base URL and key.

Where next