Public API

Libraxis API Reference

Canonical docs for Vista Brain evidence retrieval and safety-gated veterinary queries, /v1/responses, and file, stream, and WebSocket speech workflows.

Base URL

https://api.libraxis.com
Operator quickstart: use make stt-debug-remote STT_DEBUG_AUDIO=/absolute/path/audio for one-pack STT verification across file, stream, ws, and raw curl.
Need credentials? Request a short-lived key at /access, then validate the public surface with /v1/responses or the STT debug pack.
Vista Brain first request: verify GET /v1/vista-brain/index/status, then call POST /v1/vista-brain/search. Search results include stable source provenance; query endpoints add safety-gated reasoning and do not replace veterinary judgment.

Quickstart & Agent Reference OpenAPI 3.1

Machine-Readable Artifacts

Agents and SDK generators can fetch structured docs directly without JavaScript:

/llms.txt (concise agent instructions & when-to-use) · /llms-full.txt (full developer handbook) · /auth.md (authentication walkthrough) · /openapi.json · /openapi.yaml

Authentication

All /v1/* endpoints require an API key (except public probes GET /health, GET /v1/audio/health, and GET /v1/audio/ready). Pass credentials using either header:

Authorization: Bearer $LIBRAXIS_API_KEY
# or
X-API-Key: $LIBRAXIS_API_KEY

Request a reviewed private beta registration token via contact@libraxis.ai and exchange it at /access.

Liveness & Discovery Checks

Verify host availability and inspect the active model catalog before sending inference traffic:

# 1. Public unauthenticated liveness probe (returns {"ok": true})
curl -sS https://api.libraxis.com/health

# 2. List canonical model aliases and supported modalities
curl -sS https://api.libraxis.com/v1/models \
  -H "Authorization: Bearer $LIBRAXIS_API_KEY"

# 3. Verify Vista Brain retrieval index readiness
curl -sS https://api.libraxis.com/v1/vista-brain/index/status \
  -H "Authorization: Bearer $LIBRAXIS_API_KEY"

Canonical Endpoints

  • POST /v1/responses — Canonical inference entry (sync JSON, SSE text/event-stream, NDJSON application/x-ndjson, tool calling, structured outputs, multimodal input_image/input_file, and server-side chaining via previous_response_id). Also supports persistent WS /v1/responses.
  • GET /v1/responses/{response_id}, DELETE /v1/responses/{response_id}, POST /v1/responses/{response_id}/cancel, GET /v1/responses/{response_id}/events, GET /v1/responses/{response_id}/input_items — Stored response lifecycle, SSE replay, and cleanup.
  • POST /v1/responses/input_tokens & POST /v1/responses/compact — Token estimation and context compaction.
  • GET /v1/vista-brain/index/status, POST /v1/vista-brain/search, POST /v1/vista-brain/query, POST /v1/vista-brain/query/stream — Bounded veterinary evidence retrieval with stable source provenance and safety-gated clinical synthesis.
  • POST /v1/audio/transcriptions, POST /v1/audio/transcribe:stream, POST /v1/audio/transcriptions:format, POST /v1/audio/speech — File, streaming NDJSON, and WebSocket speech workflows.
  • POST /v1/messages & POST /v1/messages/count_tokens — Anthropic Messages compatibility over the same Responses execution engine.
  • POST /v1/embeddings & POST /v1/rerank — Dense retrieval embeddings and cross-encoder reranking.
  • POST /v1/chat/completions — OpenAI Chat Completions compatibility surface (prefer POST /v1/responses for new integrations).

Example: Canonical POST /v1/responses Request

Always pass a canonical alias from GET /v1/models (such as chat, buddy, soap, master, emergency, programmer, or big-buddy); raw Hugging Face repository IDs are rejected by design.

curl -sS https://api.libraxis.com/v1/responses \
  -H "Authorization: Bearer $LIBRAXIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "chat",
    "input": [
      {
        "role": "user",
        "content": [
          {"type": "input_text", "text": "Summarize canine pancreatitis monitoring in 3 bullets."}
        ]
      }
    ],
    "stream": false
  }'

Example: Vista Brain Provenance Search

curl -sS https://api.libraxis.com/v1/vista-brain/search \
  -H "Authorization: Bearer $LIBRAXIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "feline chronic kidney disease IRIS staging", "limit": 5}'

Rate Limiting & Error Contract

Responses include standard IETF rate-limit headers (RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset, RateLimit-Policy) alongside legacy X-RateLimit-* headers. HTTP 429 responses include Retry-After (seconds) for deterministic client backoff. Errors follow a typed JSON envelope with error.type, error.code, error.message, and X-Request-Id correlation.

Home · About · Contact · Privacy

Loading API spec...