Quickstart
Install an SDK, create a project, and run your first inference call.
Get started with Sallines in under five minutes. This guide walks through SDK installation, project setup, and your first inference call through the orchestration layer - including semantic caching, routing, and observability fields on the response.
1. Get Your API Key
Sign up for an Sallines account and create a project. Your API key is available under Settings → API Keys in the production dashboard. Keys are prefixed with sallines_sk_ and scoped to a single project.
Minimum scope for this quickstart: inference:write, models:read.
2. Install the SDK
# Python
pip install sallines-sdk
# TypeScript
npm install @sallines/sdk
# Go
go get github.com/sallines-ai/sdk-go
All official SDKs target https://api.sallines.world/v1. See SDKs for OpenAI-compatible configuration.
3. Make Your First Inference Call
from sallines import Sallines
client = Sallines(api_key="sallines_sk_...")
response = client.inference(
model="auto",
messages=[
{"role": "user", "content": "Summarize the key risks in this contract."}
],
project_id="prj_legal_001",
features=["pii_redaction", "semantic_cache"],
)
print(response.choices[0].message.content)
print(f"Model: {response.sallines.route}")
print(f"Latency: {response.sallines.latency_ms}ms")
print(f"Cost: ${response.sallines.cost_usd:.4f}")
print(f"Cache hit: {response.sallines.cache_hit}")
TypeScript equivalent
import { Sallines } from "@sallines/sdk";
const client = new Sallines({ apiKey: "sallines_sk_..." });
const response = await client.inference({
model: "auto",
messages: [{ role: "user", content: "Summarize the key risks in this contract." }],
projectId: "prj_legal_001",
features: ["pii_redaction", "semantic_cache"],
});
4. What Happened
You made an inference call through the Sallines orchestration layer. In production:
- Routing selected an optimal model (
sallines.route) - Semantic caching checked for similar prior prompts (
sallines.cache_hit) - PII redaction masked sensitive entities before provider dispatch (
sallines.pii_redacted) - Observability logged the full span for audit and cost attribution
5. Verify in the Dashboard
Open the observability dashboard in your workspace to see request volume, latency, and cost for your project.
Next Steps
- Configure routing policies
- Set up budgets and rate limits
- Enable PII redaction defaults
- Upload RAG documents
Choose a vertical
Inference is the shared substrate. Product workflows live on typed routes:
| Vertical | Start here |
|---|---|
| Engineering | Sallines Dev |
| Legal and compliance | Sallines Legal |
| SRE and IT | Sallines Ops |
| Risk and financial crime | Sallines Risk |
Troubleshooting
| Error | Fix |
|---|---|
401 invalid_api_key | Verify key prefix and project scope |
400 missing project_id | Add project_id to every inference request |
403 insufficient_scope | Grant inference:write on the key |
See Authentication for scopes and Inference for the full request schema.
Production API credentials are issued with an institution workspace. Contact sales if you need access.