Getting started

Overview

Prism402 is an onchain AI inference router: one API endpoint that routes calls to dozens of AI models, billed per token in USDG on Robinhood Chain — no signup, no subscription.

  • One endpoint, every model.
  • Pay per token, not per plan.
  • Agents can pay for themselves — no human signup (x402).
  • Trench Scan — instant risk check on any Robinhood Chain token.
  • Repeat calls cost half (cache).
  • Hold $PRISM, pay less.

Base URL

base url
https://prism402.com/v1

Everything under /v1 follows the OpenAI wire format: POST /v1/chat/completions, POST /v1/embeddings and GET /v1/models. Existing OpenAI SDKs work by changing the base URL.

Two ways to pay

  • Prepaid key. Deposit USDG once, get a prism_sk_ key, send it as a Bearer token. Each call is charged its exact token cost. Best for apps and anything using an OpenAI SDK.
  • Pay per call (x402). No key and no account. The first request returns 402 Payment Required with a price; your client signs it and resends. Best for autonomous agents holding their own wallet.

Authentication

http header
Authorization: Bearer prism_sk_...

There are no accounts, emails or passwords. The key is the account, and the wallet that funded it is its owner. Refunds always go back to that wallet.

Where the models run

Every model in the catalog is served on Cloudflare's GPU network (Workers AI). Prism402 adds the payment rail, metering, cache and the public ledger. Prompts are not logged: the ledger keeps model, token counts, charge and time. The only content kept is the response cache (temperature-0 calls, scoped to your key or wallet, deleted after 24 hours).

What's here