Introduction
Vault is a type-safe inference SDK for JavaScript and TypeScript. It gives your application a single, consistent interface to foundation models -- handling authentication, retries, streaming, and schema validation so you can focus on what you are building.
What is Vault
The Vault SDK wraps the Vault inference API with a strongly-typed client. Every request is validated at the call site -- wrong model names, missing parameters, and type mismatches are caught before they hit the network.
Under the hood, Vault manages connection pooling, exponential backoff on transient errors, and request deduplication. You get reliable inference without writing retry logic yourself.
Key Features
Architecture
Requests flow from your application through the Vault client to the inference API. The client handles serialization, auth headers, and response parsing. Your code only sees typed inputs and outputs.
Your App
│
▼
VaultClient (SDK)
│ type-check · validate · retry
▼
Vault Inference API
│
▼
Model Endpoint (vault-3-turbo, vault-3-pro, …)
│
▼
Response → parsed, typed, returned to your app