Perplexity sonar to Meridian
Drop-in replacement for the Perplexity chat completions endpoint. Point your existing pplx-api client at Meridian and keep shipping.
Quick start
Change the base URL and API key. Your existing openai client works without modifying request bodies.
// Before — Perplexity
const client = new OpenAI({
baseURL: "https://api.perplexity.ai",
apiKey: "pplx-...",
});
// After — Meridian (drop-in)
const client = new OpenAI({
baseURL: "https://api.meridian.sh/v1",
apiKey: "mrdn-...",
});Routing differences
/chat/completions maps directly. The Perplexity pplx-search endpoint requires different routing — Meridian exposes search via a dedicated tool-calling path. See the search docs for the migration guide.
Supported models
sonar— full paritysonar-pro— full paritysonar-reasoning— full parity