GETTING STARTED

Introduction

Installation

Quickstart

Fallback Chain Configuration

LLM fallback chains are defined as ordered arrays of model identifiers submitted in the model_chain parameter of the inference request body. Meridian’s routing layer evaluates each model in sequence, selecting the first healthy provider that satisfies the request’s latency budget and context window requirements. Chains support both Meridian-native models and external providers via standardized adapter layers, allowing heterogeneous chains that span multiple commercial API providers without requiring per-provider SDK integrations in client code.

Health Probing & Fault Detection

Each provider in the routing table is continuously evaluated by Meridian’s synthetic probe fleet, which issues low-cost 16-token canary requests every 10 seconds from each point of presence. A provider is marked DEGRADED after two consecutive probe failures exceeding the P95 latency threshold, and FAULTED after five. Once faulted, the provider is removed from the active routing pool and all in-flight requests to it are reissued against the next chain member within 800 milliseconds. Recovery probes run on a 30-second cadence; a provider is reinstated after three successive successful probes.

Semantic Consistency Guarantees

When a fallback occurs mid-chain, Meridian re-evaluates the original request against the substitute model using an identical, canonicalized prompt envelope to maximize output consistency. For applications requiring strict output schema compliance, the output_schema parameter accepts a JSON Schema definition that is enforced via structured output mode on all capable models in the chain. If a fallback model does not support structured output natively, Meridian’s constrained decoding layer enforces schema adherence at the token level, ensuring that chain transitions do not produce format regressions visible to downstream consumers.

python
1
import meridian
2
 
3
result = meridian.inference.create(
4
prompt="Summarize the following contract:",
5
model_chain=["meridian-ultra-72b", "openai/gpt-4o", "anthropic/claude-opus-4"],
6
fallback_policy="latency_first"
7
)

GETTING STARTED

Introduction

Installation

Quickstart

ON THIS PAGE

Fallback Chain Configuration

Health Probing & Fault Detection

Semantic Consistency Guarantees

DEPLOY / MERIDIAN

Start building with Meridian.

Two ways in — pick your path.

01

For humans

Get started with our Next.js and Python SDKs in seconds.

02

For agents

Tools to connect your autonomous agents to our edge infrastructure.

$npm install @synapse/sdk

Aquire $129

Aquire $129

Aquire $129

Create a free website with Framer, the website builder loved by startups, designers and agencies.