This hub is a how-to: create an account, pass KYC, subscribe, mint a key, then call Gamut from curl, Rust, Python, TypeScript, or Go. Production origin is https://sqv.ai. HTTP is the contract.
No streaming yet. Quantum CLI is not this gateway.
In plain language
You do not need to speak Rust. In the browser: sign up, finish identity checks, pick a plan, copy an API key once, then your app can POST JSON. If you never write code, stop after the key — that is still using the product.
Language tabs are the same request in five dialects for people who do write code.
For practitioners
Live gateway: POST /api/v1/gamut/chat and POST /v1/chat/completions, Authorization: Bearer sk_test_… or sk_live_…, optional X-SQV-Tenant. Body: model, messages[{role,content}], optional evidence. Plans gate models. Quantum CLI remains a target contract until that gateway is the schema source.
What we do not publish
Internal hosts, unsigned production webhooks, IR, routers, or “paste this unpublished binary.” Sandbox and QA use test keys only.
How to
From zero to a completion. Seven steps.
Same path for humans in the console and for CI that only has HTTP.
Choose production unless you run the gateway
Production: https://sqv.ai with sk_live_ keys. Check GET /healthz — environment and api_key_prefix tell you which world you are in. Localhost ports are only for people compiling this repo.
Create an account
Browser: /account/signup/. HTTP: POST /api/v1/auth/signup with email, password (≥8), name, optional tenant / organization. Cookie sqv_session is httpOnly. Same email can exist on two tenants.
Complete KYC
Name, phone, address, country, license. Production stays pending until verification; QA may auto-verify. Checkout is forbidden until KYC status is verified.
Subscribe to Gamut
POST /api/v1/billing/checkout with plan_id: gamut-developer (Flash + Core), gamut-pro (+ Pro), gamut-assured (all profiles). Stripe when live keys exist; otherwise sandbox activation on sandbox/QA.
Mint a key once
POST /api/v1/keys returns the secret a single time. Store it in an env var (SQV_API_KEY). Prefix is sk_test_ in sandbox/QA and sk_live_ in production. Never commit it.
Call chat
POST JSON to /v1/chat/completions or /api/v1/gamut/chat. Default model is gamut-core. Set evidence: true when you want the verification-oriented path (Assured-class workflows).
Handle the contract, not folklore
401 = sign in / bad key. 402 = no active sub. 403 = KYC not verified. 429 = auth rate limit or token quota. 400 = unknown plan or model not on plan. Public catalog: GET /api/public/models and GET /api/v1/plans.
Running the gateway yourself (localhost)
Local smoke: http://127.0.0.1:8091 (sandbox payments). QA: http://127.0.0.1:8092 (KYC auto-verify for scripted tests). Prefix is sk_test_. Optional header X-SQV-Tenant: sqv-qa on QA. Do not copy these origins into production apps.
HTTP contract
One JSON body. Every language.
If an SDK exists, it only wraps this. You can always drop to HTTP.
Bearer key
Authorization: Bearer sk_test_… or session cookie. Optional X-SQV-Tenant.
application/json
Required on POST bodies.
Plan-gated
developer: flash, core. pro: +pro. assured: all including frontier.
boolean
Asks for evidence-linked completion behavior. Does not leak lab internals.
Request body
LIVE GATEWAY
{
"model": "gamut-core",
"evidence": false,
"messages": [
{ "role": "system", "content": "You are a precise assistant." },
{ "role": "user", "content": "Summarize fail-closed evidence in one paragraph." }
]
}
Languages
How to call Gamut. curl · Rust · Python · TypeScript · Go
Set SQV_BASE (origin, no trailing slash) and SQV_API_KEY. Examples assume a minted key and an active plan.
LIVE HTTP · NOT LAB INTERNALS
Use this from any shell. Default origin is production. Override SQV_BASE only when you run sandbox/QA locally.
Rust is first-class for systems services. Use reqwest against the public HTTP contract. A future sqv crate would only wrap this; do not wait for it to ship product.
// Cargo.toml: reqwest = { version = "0.12", features = ["json"] }
// serde_json = "1", tokio = { version = "1", features = ["rt-multi-thread","macros"] }
use serde_json::{json, Value};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let base = std::env::var("SQV_BASE")?;
let key = std::env::var("SQV_API_KEY")?;
let http = reqwest::Client::new();
let v: Value = http
.post(format!("{base}/v1/chat/completions"))
.bearer_auth(key)
.header("X-SQV-Tenant", "sqv")
.json(&json!({
"model": "gamut-core",
"evidence": false,
"messages": [{"role":"user","content":"Hello from Rust"}]
}))
.send().await?
.error_for_status()?
.json().await?;
println!("{}", v["choices"][0]["message"]["content"]);
Ok(())
}
Illustrative builder (same HTTP underneath) — labeled until published on crates.io:
// TARGET SDK SHAPE — not required to call the live gateway
let response = sqv::gamut()
.model("gamut-core")
.input("Explain this system")
.evidence(true)
.send()
.await?;
Python fits notebooks, eval harnesses, and science loops. Use the standard library or httpx. No unpublished package required.
import os, json, urllib.request
base = os.environ["SQV_BASE"].rstrip("/")
key = os.environ["SQV_API_KEY"]
body = json.dumps({
"model": "gamut-core",
"messages": [{"role": "user", "content": "Hello from Python"}],
}).encode()
req = urllib.request.Request(
f"{base}/v1/chat/completions",
data=body,
headers={
"Authorization": f"Bearer {key}",
"Content-Type": "application/json",
},
method="POST",
)
with urllib.request.urlopen(req) as resp:
data = json.load(resp)
print(data["choices"][0]["message"]["content"])
TypeScript for web apps, workers, and editor tools. Browser calls need the user signed in (cookie) or a backend that holds the key—never put sk_live_ in frontend bundles.
Same as /api/v1/gamut/chat. No streaming in this gateway yet.
Error body is always {"error":"…"}. CORS allows the site origin with credentials. Do not embed live keys in browsers.
Evals
How we measure content quality.
Internal Gamut snapshots and the top-20 public suites live on AI · Frontier Observatory. Third-party boards are queued for submission; they are not invented here.
Quantum
Submit. Stream. Verify.
Labeled target contract until the quantum gateway schema generates these docs. Do not treat the CLI as live on this site gateway.
When live, a job should return a run id, simulator class, artifacts or hashes, and a receipt id—the same evidence graph as the rest of SQV. Implementation of simulators is not a public SDK.
Editors
MCP in your IDE. Same permissions story.
Install focused servers from the ecosystem manifest. Point them at SQV_BASE + SQV_API_KEY. The agent gets tools (chat, evidence lookup), not Skynet source.
Chat + models
Completions and catalog. Uses your key.
Receipts
Look up public evidence objects; fail-closed if empty.
Account, KYC, billing, keys, and Gamut chat on this gateway are live HTTP. Quantum CLI and a crates.io/npm/PyPI sqv package are target contracts until they exist. We would rather label a sample than document a dead endpoint.