Getting started

Overview

Prism402 is an OpenAI-compatible inference router. Calls are metered by the token and paid in USDC on Arc.

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 USDC 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