model: "auto" and a prysm block) and a few PRYSM-specific endpoints.
Base URL
/v1 version
segment.
Authentication
Every authenticated request carries your secret key as a bearer token. See Authentication for details and environment variables.Content type
SendContent-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 adetail 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.