TurnPanelDocs

Guides

API Gateway

A private local API that lets other apps on this computer use TurnPanel models.

Updated 2026-09-12View as Markdown

Connect a client

In Gateway, create a Local or Hybrid API key and copy it when it appears. In the other app’s OpenAI-compatible provider settings, use http://127.0.0.1:8082/v1 as the endpoint and the copied value as the API key. Only apps on this computer can connect.

Gateway · API keysCreate an API key for another app
NameIdentify the clientready
Routing profileChoose the key’s routeactive
Create keyReveals its secret onceready
The API key form asks for a client name and Local or Hybrid routing.

Supported routes

  • Supported endpoints are POST /v1/chat/completions, POST /v1/completions, POST /v1/embeddings, and GET /v1/models.
  • An unknown path returns 404, a bad key returns 401, and an unavailable model provider returns 502. TurnPanel supports the listed OpenAI-style endpoints, but not every option offered by every provider.

Routing

A local key sends chat and text completions only to the local model engine. A hybrid key follows your routing settings and may use an online provider. Embeddings use the configured embedding model. TurnPanel records usage separately for each key.

Rotate or disable a key

  • Rotate replaces the key immediately and shows the new secret only once. Disable makes the key stop working.
    API key controlsDisable or rotate a key from Gateway
    Enabled keyCan authenticate a requestactive
    DisableCauses authentication failurewaiting
    RotateShows a replacement secret onceready
    API key controls include Disable and Rotate.