ApiX Docs
Docs / Error language
·View as Markdown

Error language

Messages come in English or Spanish. Resolution order:

  1. ?lang=en in the query or the x-apix-lang header (explicit override).
  2. lang on the API key, if set.
  3. Accept-Language of the request.
  4. Country of the client IP.
  5. Server default (es).
bash
curl "$APIX_BASE/v1/chat/completions?lang=en" \
  -H "x-apix-lang: en" ...