POST /v1/chat/completionsChat completions
OpenAI-compatible message, multimodal text, tool-call normalization, and buffered or guarded-live SSE delivery.
Enterprise AI gateway architecture
Entrovik is a server-side enterprise AI gateway and policy runtime: OpenAI-compatible ingress, provider normalization, deterministic pipelines, sandboxed policy code, and tenant-scoped control APIs.
Execution architecture
Provider-specific payloads are normalized before policy evaluation, keeping policy packages portable across vendors and API shapes.
Developer surface
Point compatible clients at Entrovik, keep policy logic out of applications, and add providers without rewriting your governance layer.
POST /v1/chat/completionsOpenAI-compatible message, multimodal text, tool-call normalization, and buffered or guarded-live SSE delivery.
POST /v1/responsesNormalized Responses input and output with the same ordered request and response enforcement.
POST /v1/embeddingsGovern embedding inputs through provider capability adapters with safely handled unsupported operations.
POST /v1/policy/evaluateRun active request or response policy for managed browser prompts, extracted text attachments, and optional displayed responses without contacting a provider.
provider.ProviderOpenAI-compatible, Anthropic, and Gemini adapters translate content, errors, tools, and usage at one boundary.
apiVersion: v1JSON-serialized policy inputs and results avoid exposing Go memory or internal structs to plugins.
/api/v1/...Versioned, tenant-scoped APIs power the UI and CLI for automation without shell or CLI bridges.
streaming.modeUse secure buffered delivery by default, guarded live streaming where policy permits it, or disable streaming entirely.
WASM-first policies
Policies are independently packaged, versioned, validated, integrity-checked, and executed through wazero without CGO.
Discuss policy development →The v1 ABI is capability-denied by default. Future permissions can be introduced explicitly without making ambient host access the norm.
Initialization and execution timeouts, memory limits, input and output ceilings, concurrency controls, and trap recovery isolate defective policies.
Each policy defines what happens on timeout, trap, ABI mismatch, malformed output, or evaluation failure.
Policy packages carry versioned manifests, SHA-256 integrity, publisher identity, configuration schema, documentation, and trust metadata.
The CLI and Go/Rust SDK surfaces support rapid policy authoring with ABI conformance and deterministic package validation.
Open the developer guide →Declarative governance
Pipeline revisions are validated and applied through tenant-scoped control APIs with immutable history and rollback.
apiVersion: entrovik.com/v1 kind: GovernanceConfig policies: - name: detect-secrets enabled: true config: action: deny - name: pii enabled: true config: action: redact pipeline: request: [detect-secrets, pii, model-policy] response: [detect-secrets, pii] audit: [audit]
Production topology
IDENTITYBrowser Authorization Code with PKCE, signed bearer validation, service clients, roles, teams, and server-enforced tenant isolation.
PERSISTENCEDurable SQLite for a single process; transactional PostgreSQL with serialized migrations for horizontally scaled deployments.
SECRETSEnvironment, Kubernetes, Vault KV v2, AWS, Google, and Azure secret-provider integrations keep values out of APIs and logs.
RESILIENCEConcurrency caps, circuit breakers, request limits, redirect rejection, sanitized errors, and intentionally conservative retry behavior.
OBSERVABILITYPrometheus-compatible metrics, structured JSON logs, request IDs, health/readiness endpoints, policy latency, usage, and cost.
DEPLOYMENTNon-root distroless image, Helm chart, security contexts, network policy, autoscaling, disruption budgets, affinity, and tolerations.
Architecture review
Walk through your provider topology, client compatibility, identity model, policy requirements, and deployment constraints with us.