Skip to main content
The PRYSM API is OpenAI-compatible and speaks JSON over HTTPS. If you’ve used the OpenAI API, you already know it — the only differences are an enriched response (model: "auto" and a prysm block) and a few PRYSM-specific endpoints.

Base URL

All endpoints below are relative to this base. It already includes the /v1 version segment.

Authentication

Every authenticated request carries your secret key as a bearer token. See Authentication for details and environment variables.

Content type

Send Content-Type: application/json with request bodies. Responses are always JSON.

The response envelope

/chat/completions returns a standard OpenAI completion plus a top-level prysm block describing the routing decision, cost, latency, and a PrysmProof. OpenAI-compatible clients ignore the extra field; the SDKs expose it via extension().

Errors

PRYSM uses conventional HTTP status codes. Error bodies wrap a detail object with a machine-readable error code and a human message:
The SDKs raise these as clean exceptions/errors rather than returning raw payloads, so you can try/catch around any call.

Versioning & compatibility

PRYSM preserves OpenAI request and response shapes. Unknown fields you send are tolerated, and the PRYSM-specific additions (routing_mode, brain_config, and the prysm response block) are designed to be ignored safely by standard OpenAI clients.