REST API
The Prysm proxy exposes OpenAI-compatible endpoints. Any HTTP client or SDK that works with OpenAI works with Prysm — just change the base URL and API key.
Base URL
https://prysmai.io/api/v1
Authentication
Authorization: Bearer sk-prysm-your-key-here
Endpoints
POST /chat/completions
Standard OpenAI chat completions endpoint. Supports all parameters including stream, tools, logprobs, response_format, etc.
curl -X POST https://prysmai.io/api/v1/chat/completions \
-H "Authorization: Bearer sk-prysm-..." \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o-mini",
"messages": [{"role": "user", "content": "Hello!"}]
}'
POST /completions
Legacy text completions endpoint.
POST /embeddings
Generate embeddings using any supported embedding model.
curl -X POST https://prysmai.io/api/v1/embeddings \
-H "Authorization: Bearer sk-prysm-..." \
-H "Content-Type: application/json" \
-d '{
"model": "text-embedding-3-small",
"input": "Hello world"
}'
GET /models
Lists all supported models grouped by provider.
Custom Headers
| Header | Description |
|---|---|
X-Prysm-User-Id | Tag request with a user ID (alternative to SDK context) |
X-Prysm-Session-Id | Tag request with a session ID |
X-Prysm-Metadata | JSON string of custom metadata |