Deploy private AI
with zero data footprint
Zero-knowledge AI privacy routing with instant multi-provider compliance orchestration.
The ProjectSPG Platform
End-to-end data de-identification, zero-retention privacy routing, and continuous enterprise compliance.
Automatic Data Redaction
Automatically redact customer PII and confidential records before prompts reach AI models, preventing data leaks without slowing development.
Context-Preserving Masking
Disguise sensitive names and numbers while preserving formatting and grammar, letting models reason accurately without seeing real data.
Global Privacy Scanner
Detect and shield regional identifiers across North America, Europe, Asia, Africa, and Latin America with zero manual setup.
Secure Enterprise Vault
Keep real data isolated in your dedicated vault, secured by enterprise encryption keys that only your organization controls.
One-Click AI Gateway
Protect chatbots, agents, and apps in minutes with a single-line URL change — zero code rewrites required.
Multi-Model Freedom (BYOK)
Route prompts across Groq, Gemini, Mistral, and open-source models with your own keys to optimize speed, cost, and quality.
Seamless Live Rehydration
Reconstitute original details in real time as AI answers stream back, delivering personalized responses with zero friction.
Real-Time Security Audit Logs
Track every protected prompt, redacted entity, and model transaction in real time for complete security and audit visibility.
Turnkey Regulatory Compliance
Satisfy HIPAA, GDPR, CCPA, and SOC 2 guardrails instantly, fast-tracking approval from legal and risk committees.
How ProjectSPG Works
The 4-step sovereign privacy pipeline — from prompt interception to real-time rehydration.
Prompt Ingestion & Edge Interception
<1MS SUB-MILLISECOND P99
Sovereign De-Identification & Tokenization
BYOK KMS AES-256
Zero-Trust Upstream AI Model Inference
GROQ • MISTRAL • OPENAI
Real-Time Response & Streaming Rehydration
STREAMING SSE DETOKENIZATION
Learn more about ProjectSPG
ALL BLOG POSTS
The
Open
Model
AI Stack
the MIGHT stack
The Open Source AI Stack: Why ProjectSPG Ranks #1
A deep dive into the open model AI stack and a ranked comparison of the leading AI security proxies across latency, reversibility, and sovereign compliance...
Empirical Benchmark: 9.33M Prompts Evaluated with 100.00% Fidelity
Empirical Benchmark: 9,334,805 Prompts Evaluated with 100.00% Fidelity & 86µs Latency
Exhaustive empirical validation across 1.94B tokens proving 100.00% zero-loss de-identification, 17,735 prompts/sec throughput, and 13.3ms HTTPS latency...
Global Sovereign AI Privacy: 109 Jurisdictions Supported
Global Sovereign AI Privacy: 109 Jurisdictions Supported by ProjectSPG
Protecting sensitive enterprise data across GDPR, India DPDP, Singapore PDPA, HIPAA, and 109 sovereign national jurisdictions without code changes...
Enterprise Guardrails & Threat Models
Enterprise Guardrails for Regulated Industries: Healthcare, FinTech & Legal
Protecting clinical PHI under HIPAA, financial assets under PCI-DSS, attorney-client privilege, and defense telemetry across frontier LLMs with zero code changes...
Start building on ProjectSPG
From real-time prompt de-identification to enterprise-grade privacy compliance
Playground
Welcome to the Playground
- • You can start by typing a prompt in the "User Message" field
- • Click "Submit" (Or press Cmd + Enter) to get a response.
- • When you're ready, click the " Add to Conversation" button to add the result to the messages.
- • Use the "View Code" button to copy the code snippet to your project.
Don't forget to check out the documentation .
API Keys
Manage your project API keys. Remember to keep your API keys safe to prevent unauthorized access.
| NAME | SECRET KEY | TIER | CREATED | LAST USED | EXPIRES | USAGE (24HRS) |
|---|
Sign in to view Dashboard
API metrics, usage analytics, and request logs are securely tied to your individual account. Please sign in to view your dashboard.
Metrics
Usage
View usage data for your project
Note: Data can be delayed by up to 15 minutes. All data shown in UTC time.
Projected cost calculation as if you were enrolled in billing. You will not be billed until you upgrade.
Model Activity Breakdown
Aggregate usage, token consumption, and privacy interception counts per supported model
| Supported Model | Provider | Requests | Input Tokens | Output Tokens | Total Tokens | Protected Entities | Est. Spend |
|---|
Logs
| REQUEST TIME | MODEL | API KEY | CODE | TTFT | LATENCY | INPUT TOKENS | OUTPUT TOKENS | AUDIO SECONDS | REQUEST ID | ERROR |
|---|
Batch
Perform asynchronous batch de-identification and reversible tokenization.
ProjectSPG API Reference
Integrate privacy-preserving, zero-data-leakage LLM intelligence into your stack. ProjectSPG functions as a wire-compatible, transparent drop-in replacement for the OpenAI SDK, LangChain, LlamaIndex, and native HTTP clients.
Gateway Base URLs
Simply replace your client base URL with ProjectSPG. Every prompt is intercepted at sub-millisecond speeds, de-identified using cryptographic tokenization, sent to the model safely, and restored on return.
Authentication & Enterprise Privacy Headers
Authenticate all API requests via standard Bearer tokens and configure zero-knowledge encryption parameters.
| HEADER | TYPE | REQUIRED | DESCRIPTION |
|---|---|---|---|
| Authorization | string | Required | Bearer token with your project API key: Bearer spg_live_... |
| Content-Type | string | Required | Must be application/json for JSON request bodies. |
| x-tokenization-mode | string | Optional | Privacy mode: mask (default: e.g. [PERSON_1]), synthetic (realistic fake data), or fpe (Format-Preserving Encryption). |
| x-detection-categories | string | Optional | Comma-separated regions or categories to scan (e.g. north_america,european_union,financial,corporate or all). Default: all. |
| x-vault-encryption-key | string | Optional | Client-provided 32-character AES-256-GCM encryption key. Zero plaintext is stored in the vault without this key. |
| x-custom-entities | string | Optional | JSON array or comma-separated list of proprietary keywords or project codenames to redact (e.g. ["ProjectTitan", "SecretAlgorithm"]). |
/v1/chat/completions
Creates a privacy-sanitized chat completion. Ingests raw user prompts, masks 109-country PII/financial/health entities with cryptographic tokens at sub-millisecond edge speed, executes upstream inference, and rehydrates the model output back to the original entities. Supports real-time Server-Sent Events (SSE) streaming.
Request Body Parameters
| PARAMETER | TYPE | DEFAULT | DESCRIPTION |
|---|---|---|---|
| model | string | - | Required. Model ID, e.g. openai/gpt-oss-120b, codestral-2508, ministral-8b-2512, gemini-3.5-flash-lite. |
| messages | array<object> | - | Required. Array of message objects, each containing role (system, user, or assistant) and content (string). |
| temperature | number | 1.0 | Sampling temperature between 0 and 2. Lower values result in more deterministic completions. |
| max_tokens | integer | 2048 | The maximum number of tokens to generate in the chat completion. |
| stream | boolean | false | If true, partial message deltas are streamed as Server-Sent Events (SSE) using the StreamTokenBuffer. |
| response_format | object | null | Set to { "type": "json_object" } to enable JSON mode output. |
| seed | integer | null | Deterministic sampling seed for reproducible outputs. |
| stop | string | array | null | Up to 4 sequences where the API will stop generating further tokens. |
Example Response (200 OK)
/v1/embeddings
Vector embedding privacy sanitization. Intercepts raw text or text batches, neutralizes PII and identifiers, and requests normalized vector embeddings from the upstream model without leaking raw data to vector database indexing pipelines.
Parameters
| PARAMETER | TYPE | REQUIRED | DESCRIPTION |
|---|---|---|---|
| input | string | array<string> | Required | The text or array of strings to generate vector embeddings for. |
| model | string | Required | Embedding model identifier (e.g. text-embedding-3-small, text-embedding-3-large). |
/v1/models
Lists the catalog of available LLMs, including model IDs, upstream providers (Groq Cloud, Google AI Studio, Mistral AI), rate per 1M tokens, context windows, and operational tier tags.
Example Response (200 OK)
/v1/models/{model}
Retrieves a single model instance and its operational configuration, verification status, and provider endpoint.
/api/tokenize
Standalone data de-identification & reversible tokenization. Neutralizes sensitive PII, PHI, financial cards, and custom keywords without invoking an external LLM. Use this to sanitize database rows, log pipelines, or document indexing before storage.
Parameters
| PARAMETER | TYPE | DEFAULT | DESCRIPTION |
|---|---|---|---|
| text | string | - | Required. Raw input text to sanitize. |
| categories | array<string> | ["all"] | Jurisdiction filters: ["north_america", "european_union", "financial"]. |
| mode | string | "mask" | Tokenization scheme: "mask", "synthetic", or "fpe". |
| sessionId | string | auto | Optional session ID to persist token mappings in the edge vault for later rehydration. |
| ttlSeconds | integer | 86400 | Time to live in seconds for the session mapping (default: 24 hours). |
Example Response (200 OK)
/api/detokenize
Reversible rehydration. Takes a sanitized text containing tokens (e.g. [PERSON_1]) and restores the original plaintext values using either the stored sessionId or an explicitly passed tokenMap.
Example Response (200 OK)
/v1/logs
Retrieves the recent API call telemetry logs strictly belonging to the authenticated API key or user account. Used for real-time metering, token usage tracking, and audit verification.
Query Parameters
| PARAMETER | TYPE | DEFAULT | DESCRIPTION |
|---|---|---|---|
| limit | integer | 50 | Number of recent log records to return (maximum: 100). |
/v1/audit/events
Retrieves structured, zero-plaintext audit events formatted for enterprise SIEM ingestion (Splunk, Datadog, AWS CloudWatch). Every event includes rule IDs, SHA-256 fingerprints, execution latencies, and KMS encryption flags.
API Key Management (/api/keys)
Programmatically provision, inspect, and revoke API keys for your infrastructure, continuous deployment pipelines, and microservices.
/health
Global edge health check and latency ping. Returns cluster operational status, response timestamp, Cloudflare Colo edge region, and active engine version.
Example Response (200 OK)
Invitation Code Manager
Admin ConsoleCreate, allocate, and monitor secure invitation codes for partners and enterprise clients to unlock Pro Access.
User Registry & Subscription Roster
0 users| User & Email | Organization & Website | Referral / Code | Access Level | Subscription Validity | Usage (Requests • Tokens • PII) |
|---|---|---|---|---|---|
| Loading user profiles & telemetry... | |||||
Generate New Invitation Code
Issued Invitation Codes
0 codes total| Code | Recipient / Notes | Redemptions | Status | Created Date | Actions |
|---|---|---|---|---|---|
| Loading invitation codes... | |||||
Generate a ProjectSPG key for wire-compatible AI privacy proxying.
spg_live_..., requests are proxied directly using your accounts with zero platform rate limits (up to 10,000 req/day).
Save this secret key in a safe place. You won't be able to view it again.
Provider API Keys
Bring-Your-Own-Key (BYOK) Credentials
Configure your direct provider API keys. In BYOK mode, adding your keys automatically unlocks and populates all available models directly from Groq Cloud, Google AI Studio, and Mistral AI with zero platform rate limits.
Sign in or create account
Manage your API keys, rate limits, and enterprise vault
Welcome to ProjectSPG
Access is currently invitation-only. Please confirm your details and provide your invitation code to unlock full platform capabilities.
User Account Settings
Profile identity, security keys, and account preferences
Manage your personal cryptographic API credentials for Google AI Studio, Mistral AI, and Groq Cloud.
Consent Preferences
Manage sovereign privacy, security telemetry, and edge caching rules
Essential for running cryptographic token masking in memory, Cloudflare Anycast DDoS protection, and secure Firebase authentication session tokens. Cannot be disabled.
Records non-plaintext SHA-256 entity hashes, rule IDs (e.g. GDPR, HIPAA), and microsecond execution latencies in a short-lived circular ring buffer for compliance verification.
Measures multi-jurisdiction edge latency across 300+ PoPs to optimize closest sovereign enclave routing and memory throughput. Contains zero personal data.
Allows passing encrypted client API authorization headers directly to upstream foundation models (Mistral AI, Google AI Studio, Groq Cloud).
Private Invitation Preview
FreeUnlock sovereign compliance & enterprise routing
Enter your Pro invitation or access key below to unlock (Pro Access):