Changelog
On this page
Changes that affect how you call Mortar, newest first.
October 30, 2026
API
- The prompt optimizer runs in shadow mode by default: it leaves every prompt as sent, and
X-Mortar-Optimizerreports what it would have removed. A deployment can still turn it on, or off.
October 29, 2026
Documentation
- Published these docs: a quickstart, authentication, an API reference for every data-plane endpoint, and guides to streaming, cache-friendly prompts and choosing a deployment model.
- Added the model catalog, with sample input, output and cached-input prices.
API
- Added
POST /v1/cost/analyze, which finds what a prompt wastes on prefill and how to fix it, andPOST /v1/cost/estimate, which projects a monthly bill at a cache hit rate. Neither needs a key. - Prompt caching is priced: a token read from the cache costs a tenth of the input price, and a token written to it 1.25 times.
GET /v1/modelslists each model'scostPerMillionCacheReadandcostPerMillionCacheWrite.cost.updateandsession.metricsreport the tokens read and written and what each cost, name theirbaseline, and report a negativesavedUsdwhen the cache cost more than it saved.POST /v1/cost/estimateprices Mortar's cache the same way, so at a 0% hit rate it costs more than the same model with no cache. - Added
GET /readyzfor load balancers. It answers503while an instance shuts down. - The telemetry stream is scoped to your organization. Send your API key to follow your own requests; without one, the stream opens but carries nothing.
- A chat completion without
X-Mortar-Sessionoruserstarts a session of its own instead of sharing a default one, and every response names its session inX-Mortar-Session. - Only the organization that started a generation can stop it.
- Chat completions report the prompt optimizer's work in
X-Mortar-Optimizer, andX-Mortar-Optimize: offopts a request out. - The prompt optimizer is off unless a deployment turns it on or sets it to shadow mode, and
X-Mortar-Optimizerreports how long it took inelapsed_us. GET /healthreports the build's version.- The data plane now runs as a Go service. Endpoints, request fields and response formats are unchanged.
- Organizations have member roles. Creating, listing and revoking API keys needs the Admin or Owner role.
October 19, 2026
API
- Chat completions stream token by token as server-sent events. See Stream responses.
- Stopping a streamed reply keeps the text generated before the stop.