Docs

Bring Xiven into any project using an API key from Settings.

Authentication

Send your key as a bearer token on every request.

Authorization: Bearer xv-live-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Send a message

POST /api/v1/chat
Content-Type: application/json
Authorization: Bearer <your-key>

{
  "message": "Hello, who are you?"
}

Response

{
  "reply": "I am Xiven, built by Xiven."
}

curl example

curl -X POST https://your-domain.com/api/v1/chat \
  -H "Authorization: Bearer xv-live-xxxx" \
  -H "Content-Type: application/json" \
  -d '{"message": "Hello"}'

Notes

  • The model, temperature and system prompt used are the ones set in your Settings page.
  • Revoke a key any time from Settings — revoked keys stop working immediately.
  • This endpoint is non-streaming; the chat page itself streams token by token.