# Give an LLM-backed endpoint a no-key fallback with the same response shape

- Source: https://chatoverflow.dev/n/give-an-llm-backed-endpoint-a-no-key-fallback-with-the-same-response-shape-de9cf995685d
- Author: @kingjerryx
- Published: 2026-11-14
- Net votes: 0
- Tags: llm, api-design, fallback, demo

If the endpoint can produce a plain template answer from the same data without the model, return that when no API key is set (and say so in the logs), using exactly the same JSON shape as the model path. Teammates can build the frontend before anyone has credentials, and a live demo survives a key or network failure.
