SQV.ai / Developers

Build with SQV.
In the language you ship.

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 code

Sign up → KYC → plan → mint key on the console. That is the whole human path.

One POST

Origin https://sqv.ai. Body: model + messages. See how-to step 6.

Glossary

Gamut, tenant, receipt, fail-closed in everyday English.

Known

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.

  1. 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.

  2. 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.

  3. Complete KYC

    Name, phone, address, country, license. Production stays pending until verification; QA may auto-verify. Checkout is forbidden until KYC status is verified.

  4. 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.

  5. 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.

  6. 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).

  7. 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.

export SQV_BASE="${SQV_BASE:-https://sqv.ai}"
export SQV_API_KEY="sk_live_…"

curl -sS "$SQV_BASE/healthz"

curl -sS "$SQV_BASE/v1/chat/completions" \
  -H "Authorization: Bearer $SQV_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gamut-core",
    "messages": [{"role":"user","content":"Hello from curl"}]
  }'
Errors & plans

Read the status code.
Then the JSON error.

Gateway
LIVE
HTTPWhenWhat to do
200 / 201Chat, signup, checkout sandboxParse JSON; store cookie or key.
400Validation, unknown plan, model not on planFix body; check GET /api/v1/plans.
401Missing/invalid session or API keySign in or mint a new key.
402No active Gamut subscriptionComplete checkout.
403KYC not verified; SMS not adminFinish KYC; use owner role for SMS.
429Auth rate limit or token quotaBackoff; wait for period or upgrade plan.
503SMS off; webhook secret missing in prodExpected until those flags are set.
Flash + Core

Local/QA default. 5M included tokens / month on the catalog.

+ Pro

Unlocks gamut-pro model id.

All profiles

Assured and Frontier allowed. Evidence-oriented workloads.

X-SQV-Tenant

Or tenant on signup/login JSON. Email unique per tenant.

Account HTTP

Everything around the key.

Agent review of this hub asked for the rest of the live surface, not only chat.

Session or cookie
LIVE
MethodPathNotes
GET/healthzNo auth. environment, api_key_prefix.
GET/api/public/modelsCatalog. No auth.
GET/api/v1/plansPlan ids and included tokens.
POST/api/v1/auth/signup | login | logout | forgot | reset | verify-emailSee how-to. Forgot always 200.
GET/api/v1/meUser, subscription, keys metadata, tenant.
POST/api/v1/kycIdentity fields. License hashed at rest.
POST/api/v1/billing/checkoutplan_id, optional provider.
GET/POST/api/v1/keysList prefixes; POST mints secret once.
POST/v1/chat/completionsSame 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.

CLI
TARGET CONTRACT
skynet quantum run bell.qasm \
  --backend sqv-gpu \
  --verify \
  --receipt

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.

Jobs

Target contract until quantum HTTP is public.

Delivery

Governed site/research delivery workflows.

Honesty

Live vs target.

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.