v1

latestOpenAPI 3.1.0MIT2026-07-1710621.2 KB
Chat

Chat (POST)

Primary endpoint. OpenAI-compatible — works with any OpenAI SDK client.

  • Last user message is used as the search query
  • Earlier messages provide conversation context
  • stream defaults to false
  • session_id is optional (omit for stateless usage)
post/v1/chat/completions

Request body

modelstring

Ignored — always uses lixsearch

streamboolean

Enable SSE streaming

session_idstring

Session ID for multi-turn context persistence. Omit for stateless (ephemeral) requests.

temperaturenumber

Accepted for compatibility, not used

max_tokensinteger

Accepted for compatibility, not used

Response

Chat response

idstring
object'chat.completion'
createdinteger
modelstring

Example response

{
  "id": "elixpo-abc123",
  "model": "lixsearch"
}