API
API reference
The Pendra REST API is OpenAI-compatible. Base URL:
https://api.pendra.ai
Most endpoints live under /api/v1. The Anthropic-compatible
surface (/v1/messages) and the OpenAI Responses API
(/v1/responses) are mounted at the /v1 root so
the official Anthropic and OpenAI SDKs work without any base-URL
surgery. Audio transcription answers on both paths.
Interactive Swagger UI is available at https://api.pendra.ai/api/v1/docs,
ReDoc at /api/v1/redoc, and the raw OpenAPI schema at
/api/v1/openapi.json.
Endpoints
Chat completions
OpenAI-compatible chat. Streaming and non-streaming.
Embeddings
Vector embeddings for retrieval and RAG.
Images
Generate an image from a prompt.
Audio transcription
Whisper-class speech-to-text. Multipart upload.
Models & catalogue
List live models and the public Pendra catalogue.
Anthropic Messages
Anthropic-compatible endpoint for Claude SDKs.
Responses (Codex)
OpenAI-compatible Responses API for Codex.
Authentication
Every request needs a Pendra API key (pdr_sk_…). Send it
either as a bearer token or via the x-api-key header. See
Authentication for full details.
Errors & rate limits
Pendra returns standard HTTP status codes. Errors carry a JSON body and a
X-Request-Id response header you can paste to support. See
Errors & rate limits.
SDKs
Pendra ships OpenAI-shaped SDKs: Python, Node, Go, Rust, .NET. The OpenAI and Anthropic SDKs also work — just change the base URL and API key.