# Noosfera > Unified AI inference gateway for engineering teams: OpenAI & Anthropic compatible API, deterministic smart routing, per-key budgets, and zero prompt storage. ## Inference API Base URL: `https://inference.noosfera.si/v1` (Anthropic SDKs set `ANTHROPIC_BASE_URL=https://inference.noosfera.si`). Authenticate with `Authorization: Bearer $NOOSFERA_KEY` or `x-api-key: $NOOSFERA_KEY` (`nsk_*` keys). - `POST /v1/chat/completions`: OpenAI-compatible chat completions with function tools, `reasoning_effort`, and SSE streaming. - `POST /v1/messages`: Anthropic Messages wire format with `tool_use`, `thinking`, `cache_control`, and SSE streaming (`POST /v1/messages/count_tokens` for zero-cost local token estimation). - `POST /v1/responses`: OpenAI stateless Responses API (`resp_*` IDs; send full turn history in `input`). - `GET /v1/models`: List all enabled open and frontier models and context limits available to your key. - `POST /v1/batches`: Asynchronous bulk processing at 0.6x standard rate (40% off-peak discount), tenant-isolated with `GET /v1/batches`, `GET /v1/batches/:id`, and `POST /v1/batches/:id/cancel`. ## Smart Routing Policies Deterministic sub-millisecond routing with sticky prompt-cache pinning via `x-gateway-conversation`: - `noosfera/auto`: Balanced default — routes routine tool turns to flash-class models while preserving sticky prompt caches. - `noosfera/speed`: Lowest latency — selects the eligible rung with the lowest time to first token. - `noosfera/eco`: Minimum cost — routes to the lowest-cost eligible models for sweeps, triage, and batch workloads. - Concrete models: Pass any enabled open or frontier model ID returned by `GET /v1/models` (for example `deepseek-v4.1-flash`, `glm-5.3-flash`, `qwen3.8-flash`, or `kimi-k3.1-pro`). ## Quickstart & Documentation - [API Documentation](https://noosfera.si/docs/): Full developer reference for Chat Completions, Responses, Messages, Batch API, routing, sandboxes, and caps. - [Model Factory](https://noosfera.si/factory/): Tailored models trained on your data with custom evals, weights you own, and Cloud or Private Box hosting. - [Free Company Benchmark](https://noosfera.si/benchmarks/): Private coding benchmark built from your shipped PRs; targets met starts a paid pilot, missed targets cost nothing. - [Data Retention & Privacy](https://noosfera.si/docs/data-retention.html): Counts-only usage ledger, zero prompt storage guarantees, and PII/secret scrubber rules. - [10-Second Shell Setup](https://noosfera.si/init.sh): Zero-dependency POSIX `sh` onboarding script for `zsh`, `bash`, and `fish` (`curl -fsSL --proto '=https' --tlsv1.2 https://noosfera.si/init.sh -o init.sh && sh init.sh --dry-run`, then `sh init.sh`; writes secrets to `0600` `~/.config/noosfera/env.sh` and supports `--with-sandbox` with `NOOSFERA_CLOUD_KEY`). ## Key Guarantees - Zero prompt storage for buyers: Standard buyer and organization keys store no prompts or completions; the usage ledger keeps token counts, model, key, cost, and timestamp only (`x-gateway-no-trace: 1` refuses trace capture on any key tier). - Indonesian PII & secret scrubbing: Deterministic redaction of NIK, NPWP, payment cards, Indonesian bank accounts, and API secrets on any optional trace path. - Per-key spend caps & Eco Mode fallback: Serialized pre-flight micro-dollar budget holds, daily/monthly per-key limits (`429` at zero cost when hit), wallet balance checks (`402`), and automatic Eco Mode fallback on pace windows. - Commercial API supply only: Buyer keys run exclusively on paid commercial API keys and dedicated GPUs, never on consumer OAuth accounts or contributor training tiers. - Model Factory (Tailored models for your needs & Private Box): Hand us your data; we help build your evals, train tailored models on our GPU fleet, and host them behind your endpoint on Noosfera Cloud or an on-premise Private Box. Strictly opt-in (standard keys stay zero-prompt-storage), with trained model weights you own. - Billing: IDR (QRIS & Virtual Account) and USD billing on one consolidated team invoice.