Overview

The Platform v1 API groups utility endpoints used by the Allternit Platform surfaces: an agent chat bridge to the Gizzi Runtime, a model catalog with live local-model merging, model recommendations, voice TTS/STT proxying, and CLI tool stubs.

Base URL

For local development:

Authentication

All routes require a valid bearer token in the Authorization header. The chat bridge forwards relevant auth headers to the Gizzi Runtime so that password-protected local daemons work correctly.

Endpoints

Health

Response

List models

Response

The list is live. It holds the models of every provider that Gizzi’s GET /provider reports as connected: CLI brains it found on the machine, API-key providers, local providers and Allternit Cloud. There is no built-in fallback list, so a model appears only when it can run right now, and a newly installed model appears without restarting the API. tier comes from the server’s model metadata for known models and is standard for other remote models. Models of local providers (sidecar, ollama, lmstudio, bonsai, omlx, and any id starting with local) are always local.

Unavailable

If Gizzi can’t be reached or returns an error, the endpoint returns 503:
Show a retry; don’t substitute a model list of your own.

Recommend models

Query parameters

Response

Recommendations rank the same live list as GET /models and return the same 503 models_unavailable when it can’t be read.

Agent chat bridge

The endpoint returns a server-sent event (SSE) stream. The first event is a message_start, followed by content_block_delta events for text and reasoning, and a final finish event.

Request body

SSE event example

Voice presets

Returns { "voices": [] } when the optional voice service is not running.

Stream TTS

Audio bytes are streamed from the voice service.

Stream STT

CLI tools stubs

Response

The platform UI’s filesystem scanner is the real source of CLI tool discovery; these endpoints exist to keep client fallbacks quiet.

Error codes