AI Inference PaaS & Model Foundry
Looking for enterprise PII sanitization (Microsoft Presidio) and Model Context Protocol (MCP) tool governance behind Fortinet FortiGate firewalls? Check out the Sovereign AI Security Gateway Quickstart and live interactive console at https://shield.okustera.com.
Okustera AI Inference PaaS & Model Foundry delivers an enterprise-grade, zero-license-tax AI Inference Cloud and Sovereign Model Garden hosted entirely inside European datacenters.
Built for production AI workloads, the platform focuses on high-throughput model serving, sovereign model provenance, Dynamic Multi-LoRA hosting, private vector RAG, asynchronous frontier batch inference, isolated agent sandboxes, and token-level FinOps governance.

High-Level Architecture
The platform exposes an OpenAI-compatible inference API (https://ai.okustera.com/v1) and managed AI workspace in the Cloud Portal, connecting edge security and routing to real-time serving, batch inference, vector retrieval, isolated agent sandboxes, and full-stack observability:
1. The Okustera Model Foundry: Sovereign Model Garden
The Okustera Model Foundry is a sovereign alternative to hyperscaler model gardens. It eliminates vendor lock-in and cross-border data exposure by hosting curated open-weight models within European infrastructure.
Curated Foundation Model Catalog
| Category | Available Foundry Models | Primary Capabilities | Context Window |
|---|---|---|---|
| IaC & DevOps Automation | Nimbus 4B v2.1 (Nimbus-Labs/Nimbus-4B-v2.1) | Terraform HCL, Kubernetes manifests, CI/CD automation | 4k tokens |
| Deep Reasoning & Diagnostics | Gemma 4 26B-A4B (google/gemma-4-26b-a4b-it) | Multi-turn root-cause analysis, log postmortems, architecture design | 8k tokens |
| Reasoning & Math | DeepSeek-R1-Distill-Qwen (8B / 32B), DeepSeek-R1-Distill-Llama (70B) | Chain-of-thought reasoning, mathematical and analytical synthesis | 32k – 64k tokens |
| General Chat | Llama 3.1 / 3.2 (3B, 8B, 70B), Qwen 2.5 (7B, 14B, 32B) | General enterprise chat, summarization, classification, tool calling | 8k – 128k tokens |
| Code Generation | Qwen 2.5 Coder (7B, 14B, 32B), StarCoder2 | Code completion, refactoring, test generation, security reviews | 32k – 128k tokens |
| Multimodal (Vision) | Qwen2-VL (7B), Llama 3.2 Vision (11B) | Document understanding, chart extraction, visual QA | 8k – 32k tokens |
| Embeddings & RAG | BGE Small/Large EN v1.5, Nomic Embed Text v1.5 | Semantic search embeddings for enterprise knowledge bases | 8k tokens |
| Frontier Batch Models | DeepSeek-V4 Flash (284B), GLM-5.2 (744B) | Large-scale asynchronous document audits, synthetic data, deep evaluations | 8k – 32k tokens |
Model Provenance, Packaging & Private Weights
- Pre-Warmed Model Cache: Curated foundation models are pre-staged on high-speed shared storage for rapid cold-start scaling across serving replicas.
- Mirrored Catalog Inspection (
GET /api/v1/ai/foundry/mirrored): View curated open-weight models already verified and available in the platform catalog. - OCI Model & LoRA Packaging (
POST /api/v1/ai/foundry/oci-package&GET /api/v1/ai/foundry/oci-artifacts): Package fine-tuned weights and LoRA adapters as immutable OCI Artifacts with cryptographicsha256digests in the Okustera Universal Artifact Registry. - Private S3 Custom Model Buckets: Upload proprietary fine-tuned weights via standard S3 APIs into tenant-isolated buckets (
s3://<your-models-bucket>/).
Automated Model Security Validation
Every model and adapter onboarded to the Foundry undergoes automated security checks before deployment:
- SafeTensors-Only Enforcement: PyTorch pickle formats (
.bin,.pt,pickle) can execute arbitrary code upon deserialization (CVE-2024-34359). Okustera rejects pickled weights withHTTP 400 Bad Requestand strictly enforces verified.safetensorsartifacts. - Cryptographic Hash Verification: Validates artifact checksums against upstream manifests to prevent supply-chain tampering.
- License Governance: Tracks model licenses (Apache 2.0, MIT, Llama Community License) so teams can verify commercial eligibility.
2. Admission Guardrails & Intelligent Routing
To protect generative endpoints from prompt injection and optimize latency across workloads, incoming inference requests pass through an automated low-latency admission layer at the AI Gateway:
- Prompt Injection Protection (
HTTP 403 Forbidden): Screens prompts at the perimeter for jailbreak attempts, system prompt overrides, and malicious payloads, rejecting threats before compute resources are consumed. - Intent-Aware Routing: Supports automatic or explicit route selection via the
X-AI-Routeheader (such asiac_devopsordeep_reasoning) to direct requests to the most suitable specialized model. - Deterministic API Operations: Administrative cloud queries are handled via deterministic platform APIs rather than generative output, eliminating hallucination risk for infrastructure actions.
3. High-Throughput Serving, Dynamic Multi-LoRA & Fractional GPU Tiers
Okustera's real-time serving layer (/api/v1/ai/deployments, /api/v1/ai/gpu-profiles, /api/v1/ai/autoscaling) is engineered for low-latency multi-turn agents and cost-efficient fine-tune hosting:
- Multi-Turn Prefix Caching: Prefix-aware request routing preserves KV-cache locality across multi-turn conversations and RAG sessions, reducing Time-To-First-Token (TTFT) by 50–80%.
- Dynamic Multi-LoRA Hosting: Serve up to 64 distinct domain-specific LoRA adapters (10 MB – 200 MB each) on a single shared base model deployment. When a request specifies a custom adapter name such as
"model": "secops-audit-lora", the serving runtime loads and applies the adapter dynamically in under 10 milliseconds, reducing GPU spend by over 90% compared to dedicated replicas per fine-tune. - Fractional & Dedicated GPU Profiles: Choose hardware-isolated fractional GPU slices (for example
mig-1g.10gb,mig-2g.20gb,mig-3g.40gb), shared economy compute tiers, or dedicated accelerators with concurrency-driven autoscaling and optional scale-to-zero after an idle timeout.

4. Asynchronous Frontier Batch Inference
For high-capacity frontier models (such as 284B–744B Mixture-of-Experts models) and bulk processing workloads where immediate conversational latency is not required, Okustera provides an Asynchronous Batch Tier (/api/v1/ai/batch/jobs):
- Fair-Share Multi-Tenant Queuing: Submit JSONL prompt batches via the Cloud Portal, REST API, or Terraform with configurable priority classes and guaranteed fair-share scheduling.
- High-Capacity Frontier Execution: Run large-scale document processing, synthetic data generation, regulatory compliance reviews, and automated code evaluations without provisioning dedicated multi-GPU clusters.
- S3-Native Input & Output: Read sanitized JSONL inputs directly from your tenant S3 bucket and persist structured completions back to S3 upon completion.

5. Private Vector DBaaS & Enterprise RAG
Okustera provides managed vector similarity search built on Qdrant for enterprise Retrieval-Augmented Generation (RAG):
- High-Efficiency NVMe Indexing: Memory-mapped on-disk vector storage with scalar quantization reduces RAM overhead by up to 90% with negligible recall impact.
- Hybrid Search (Dense + Sparse BM25): Combine dense semantic embeddings with BM25 lexical matching in a single query for high-precision retrieval.
- Metadata Payload Filtering: Pre-filter documents by tenant ID, classification tag, or access policy before similarity scoring.
- Private Network Isolation: Vector endpoints are accessible strictly over private VPC and PrivateLink connections—never exposed directly to the public internet.
- Dedicated Tenant Vector Clusters: In addition to managed RAG knowledge bases, provision dedicated tenant-isolated vector clusters with KMS-managed API keys via Managed Databases: Qdrant Vector DB.

6. Dual-Paradigm Agent Architecture: Code-First vs. Managed Agent Sandboxes
Teams building AI agents on Okustera can select the paradigm that best fits their architecture and security posture:
| Paradigm | Starting Point | Best For | Primary Endpoints |
|---|---|---|---|
| Code-First Approach (Developer Frameworks) | Build with frameworks such as ADK, LangChain, LangGraph, CrewAI, or the OpenAI SDK and deploy on Kubernetes, Serverless, or VMs. | Teams wanting full control over the application runtime and existing framework tooling. | /api/v1/ai/chat/completions/api/v1/ai/models/api/v1/ai/rag/collections |
| Infrastructure-First Approach (Managed Agents API) | Start with a standardized, kernel-isolated Linux sandbox container and attach agent reasoning, skills, and MCP tools on top. | Security-first teams requiring managed execution environments for Bash commands, persistent workspace files, and scoped tool calls. | /api/v1/ai/paradigms/api/v1/ai/sandbox-catalog/api/v1/ai/sandboxes/api/v1/ai/sandboxes/{id}/execute/api/v1/ai/sandboxes/{id}/files/api/v1/ai/mcp/tokens |
Core Managed Sandbox Security Guarantees
Every Managed Agent Sandbox enforces defense-in-depth isolation out of the box:
- Persistent Workspace Volume (
/workspace): Dedicated NVMe persistent volume mounted at/workspacewith strict path traversal protection. - Kernel-Isolated Command Execution: Commands run as an unprivileged non-root user inside a user-space kernel-virtualized sandbox with dropped Linux capabilities, strict seccomp filtering, and command-chaining protection.
- Curated Toolchain Profiles: Select from managed toolchain profiles (
ai-agent-full,python-data-science,devops-iac) where only binaries permitted by the profile can execute. - Strict Network & SSRF Isolation: Per-tenant network policies enforce FQDN egress allowlists and block link-local cloud metadata (
169.254.169.254), loopback interfaces, and internal management networks. - Declarative Tool Integrations: Bind Model Context Protocol (
mcp),openapi,webhook, or serverless integrations with explicit tool allowlists (allowed_tools). - Short-Lived Scoped MCP Credentials: Mint short-lived (
<= 15m/900s) audience-scoped JWT tokens viaPOST /api/v1/ai/mcp/tokensbacked by your KMS Secrets Vault (secret_ref) without exposing raw credentials to the sandbox. - Scoped Storage & Read-Only Skills: Enforce S3 bucket prefix isolation and mount curated or project-specific
SKILL.mddefinitions read-only inside the sandbox. - Strict Project-Level RBAC: Every sandbox is bound to its owning tenant project; cross-tenant access is rejected with
HTTP 403 Forbidden.

Dedicated Cloud Portal AI Workspace Routes
In the Okustera Cloud Portal, each AI capability has a dedicated sidebar workspace:
- Model Foundry (
/ai): Curated open-weight catalog and OCI LoRA adapter packaging. - Model Deployments (
/ai/deployments): Dynamic Multi-LoRA serving deployments, fractional GPU profiles, and autoscaling policies. - Batch Jobs (
/ai/batch): Asynchronous frontier batch inference jobs and queue monitoring. - Inference Playground (
/ai/playground): Interactive streaming chat and completion tester. - RAG Vector Collections (
/ai/rag): Hybrid search collection management and document indexing. - Agent Sandboxes (
/ai/sandboxes): Provisioning, terminal execution, and workspace file management for isolated agent sandboxes. - AI Skill Registry (
/ai/skills): Curated and project-scopedSKILL.mddefinitions mounted read-only into agent sandboxes. - OpenAI SDK & API (
/ai/sdk): Drop-in Python, TypeScript, andcurlintegration snippets.
Provisioning & Operating a Managed Agent Sandbox
import httpx
BASE_URL = "https://portal.okustera.com/api/v1/ai"
HEADERS = {
"Authorization": "Bearer <BEARER_TOKEN>",
}
# 1. Provision an isolated Managed Agent Sandbox with toolchain & skills
sandbox = httpx.post(
f"{BASE_URL}/sandboxes",
headers=HEADERS,
json={
"name": "sec-research-agent",
"approach": "infrastructure-first",
"model": "qwen2.5-coder:1.5b",
"toolchain_profile": "ai-agent-full",
"workspace_size_gb": 20,
"enabled_skills": ["code-reviewer", "compliance-checker"],
"integrations": [
{
"name": "github-mcp",
"integration_type": "mcp",
"endpoint_url": "https://mcp.github.example.com/v1",
"secret_ref": "mcp-github-secret",
"allowed_tools": ["issues.read", "pulls.list"],
}
],
"allowed_domains": ["api.github.com"],
},
).json()
sandbox_id = sandbox["sandbox_id"]
# 2. Write a file to the persistent /workspace volume
httpx.put(
f"{BASE_URL}/sandboxes/{sandbox_id}/files",
headers=HEADERS,
json={"path": "/workspace/workflow.py", "content": "print('Agent ready')\n"},
)
# 3. Run a bounded non-root command inside the sandbox
exec_result = httpx.post(
f"{BASE_URL}/sandboxes/{sandbox_id}/execute",
headers=HEADERS,
json={"command": "python3 /workspace/workflow.py", "workdir": "/workspace"},
).json()
# 4. Mint a short-lived (<=15m) audience-scoped MCP token backed by KMS
mcp_token = httpx.post(
f"{BASE_URL}/mcp/tokens",
headers=HEADERS,
json={
"sandbox_id": sandbox_id,
"mcp_server": "github",
"secret_ref": "mcp-github-secret",
"allowed_tools": ["issues.read"],
"ttl_seconds": 600,
},
).json()
7. LLM Observability & Tracing (Langfuse)
Operational observability for generative AI applications and agentic workflows is powered by European-hosted Langfuse (https://langfuse.okustera.com):
Core Capabilities
- OpenLLMetry & OpenTelemetry Integration: Trace prompts, reasoning chains, tool invocations, and vector retrievals across microservices.
- Time-to-First-Token (TTFT) & Latency Profiling: Track token generation speed, queue wait times, and model execution latency.
- Prompt Versioning & Evaluation: Manage versioned prompt templates with A/B evaluation and instant rollback.
- Token Usage & Cost Attribution: Correlate token consumption per project, user, and API key with the FinOps Billing Engine.
- 100% European Data Residency: All traces, evaluations, and prompt logs remain strictly inside European sovereign infrastructure with zero third-party SaaS egress.
Service Endpoints
| Service | Access Type | Endpoint URL | Purpose |
|---|---|---|---|
| Web UI & Management Console | Public / HTTPS | https://langfuse.okustera.com | Prompt playground, trace inspection, and project management |
| OTLP Ingestion Endpoint | Public / HTTPS | https://langfuse.okustera.com/api/public/otel | OpenTelemetry OTLP/HTTP trace exporter target |
| Health Probe | Public / HTTPS | https://langfuse.okustera.com/api/public/health | Automated uptime monitoring |
Python Application Instrumentation
import os
from langfuse import Langfuse
from langfuse.openai import openai
# Configure Langfuse environment
os.environ["LANGFUSE_PUBLIC_KEY"] = "<YOUR_PUBLIC_KEY>"
os.environ["LANGFUSE_SECRET_KEY"] = "<YOUR_SECRET_KEY>"
os.environ["LANGFUSE_HOST"] = "https://langfuse.okustera.com"
# Standard OpenAI client wrapped with automated Langfuse tracing
client = openai.OpenAI(
base_url="https://ai.okustera.com/v1",
api_key="<YOUR_OKUSTERA_API_KEY>",
)
# Automated span and token attribution
response = client.chat.completions.create(
model="qwen2.5:1.5b",
messages=[
{"role": "system", "content": "You are a cloud DevOps assistant."},
{"role": "user", "content": "Draft a declarative Terraform plan for an S3 bucket."},
],
name="terraform-code-generation",
metadata={"tenant_id": "tenant-alpha", "environment": "production"},
)
print(response.choices[0].message.content)
Kubernetes SecretRef Injection for Customer Workloads
Store Langfuse project keys in a Kubernetes Secret inside your application namespace:
kubectl create secret generic langfuse-credentials -n my-app \
--from-literal=public-key="<YOUR_PUBLIC_KEY>" \
--from-literal=secret-key="<YOUR_SECRET_KEY>"
Reference the secret in your pod specification:
env:
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: "https://langfuse.okustera.com/api/public/otel"
- name: LANGFUSE_HOST
value: "https://langfuse.okustera.com"
- name: LANGFUSE_PUBLIC_KEY
valueFrom:
secretKeyRef:
name: langfuse-credentials
key: public-key
- name: LANGFUSE_SECRET_KEY
valueFrom:
secretKeyRef:
name: langfuse-credentials
key: secret-key
8. AI Gateway Ingress & Token FinOps
Built on the Okustera API Gateway, the dedicated AI Gateway (https://ai.okustera.com) provides specialized capabilities for LLM traffic:
- Unbuffered SSE Streaming: Streams token deltas immediately with low Time-to-First-Token and extended read timeouts for long-running reasoning responses.
- Dynamic Model Payload Routing: Inspects incoming JSON request payloads (
"model": "...") to route traffic transparently across active model deployments, LoRA adapters, and embedding endpoints. - Semantic Prompt Caching: Optionally caches repeated or semantically equivalent completions to return sub-5ms responses while lowering token spend.
- Token-Level FinOps: Extracts
usage.prompt_tokensandusage.completion_tokensfrom response streams and records usage in FinOps, Metering & Billing.
9. Querying via Python OpenAI SDK
Applications query Okustera AI endpoints using the standard, drop-in OpenAI client library:
import os
from openai import OpenAI
# Initialize client pointing to Okustera AI Gateway
client = OpenAI(
base_url="https://ai.okustera.com/v1",
api_key=os.environ.get("OKUSTERA_API_KEY"),
)
# 1. Real-Time Streaming Chat Completion
stream = client.chat.completions.create(
model="qwen2.5:1.5b",
messages=[
{"role": "system", "content": "You are a sovereign cloud architect."},
{"role": "user", "content": "Explain best practices for multi-tenant Kubernetes isolation."}
],
# Optional: explicitly request a specialized execution route
extra_headers={"X-AI-Route": "deep_reasoning"},
stream=True,
temperature=0.7,
)
print("Streaming response:")
for chunk in stream:
if chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="", flush=True)
print("\n")
# 2. Generating Vector Embeddings
embedding_response = client.embeddings.create(
model="bge-large-en-v1.5",
input=["Sovereign cloud infrastructure with European data residency."],
)
vector = embedding_response.data[0].embedding
print(f"Generated embedding vector of dimension {len(vector)}")
10. Declarative Provisioning via Terraform Provider (terraform-provider-okustera)
Model Foundry artifacts, Dynamic Multi-LoRA deployments, asynchronous batch jobs, and Managed Agent Sandboxes can be provisioned declaratively using the official Okustera Terraform Provider:
# 1. Discover Model Foundry Blueprints & Sandbox Catalog
data "okustera_ai_models" "catalog" {}
data "okustera_ai_sandbox_catalog" "active_policy" {}
# 2. Register a Verified SafeTensors Foundation Model
resource "okustera_ai_foundry_model" "qwen_base" {
repo_id = "Qwen/Qwen2.5-1.5B-Instruct"
revision = "main"
license = "apache-2.0"
architecture = "Qwen2ForCausalLM"
files = ["model.safetensors", "config.json", "tokenizer.json"]
}
# 3. Package a Fine-Tuned LoRA Adapter as an Immutable OCI Artifact
resource "okustera_ai_oci_artifact" "secops_lora" {
name = "my-org/qwen2.5-secops-lora"
tag = "v1.0.0"
artifact_type = "lora-adapter"
base_model = okustera_ai_foundry_model.qwen_base.repo_id
lora_rank = 16
files = ["adapter_model.safetensors", "adapter_config.json"]
}
# 4. Deploy a Dynamic Multi-LoRA Model Serving Cluster with Fractional GPU
resource "okustera_ai_ray_deployment" "multi_lora_serving" {
name = "qwen-secops-serving"
base_model = okustera_ai_foundry_model.qwen_base.repo_id
enable_lora = true
max_loras = 64
max_lora_rank = 64
gpu_profile = "mig-1g.10gb"
lora_adapters = [
{
name = "secops-lora"
oci_reference = okustera_ai_oci_artifact.secops_lora.oci_reference
rank = 16
}
]
autoscaling = {
enable_in_tree_autoscaling = true
target_concurrency = 5
min_replicas = 0
max_replicas = 4
scale_to_zero_idle_timeout_seconds = 300
}
}
# 5. Submit an Asynchronous Frontier Batch Inference Job
resource "okustera_ai_batch_job" "frontier_audit" {
model = "deepseek-v4-flash:284b"
queue_name = "tenant-batch-queue"
priority_class = "frontier-high-priority"
prompts = [
"Summarize key compliance controls for EU GDPR Article 32.",
"Audit our Kubernetes NetworkPolicy manifest for strict egress isolation."
]
}
# 6. Provision an Isolated Managed Agent Sandbox
resource "okustera_ai_agent_sandbox" "secops_agent" {
name = "secops-audit-sandbox"
approach = "infrastructure-first"
model = "qwen2.5-coder:1.5b"
toolchain_profile = "ai-agent-full"
workspace_size_gb = 20
ttl_minutes = 120
enabled_skills = ["code-reviewer", "compliance-checker"]
allowed_domains = ["api.github.com", "registry.terraform.io"]
integrations = [
{
name = "enterprise-rag"
integration_type = "mcp"
endpoint_url = "https://rag.internal.example.com"
secret_ref = "my-rag-mcp-secret"
allowed_tools = ["vector_search", "read_collection"]
}
]
}
# 7. Mint a Short-Lived (<=15m) KMS-Backed Scoped MCP Token
resource "okustera_ai_mcp_token" "rag_mcp" {
sandbox_id = okustera_ai_agent_sandbox.secops_agent.id
mcp_server = "enterprise-rag"
secret_ref = "my-rag-mcp-secret"
allowed_tools = ["vector_search", "read_collection"]
ttl_seconds = 900
}