Backend for the diverse-sampling demo. Returns completions with exact log-probabilities and embeddings as JSON.