AchiralAchiral

Docs · LLMs and developers

Version3.12.1

Inference gateway

OpenAI-compatible chat completion routes for memory-augmented inference.

The inference gateway is Achiral's OpenAI-compatible memory endpoint.

It authenticates a Context Access Token, verifies the request organization, adds organization memory, and returns the response through the public chiro model id.

The public model id is chiro. Internal provider and registry names are intentionally hidden from clients.

Routes

MethodPathPurpose
GET/v1/healthLiveness check. No auth required.
GET/v1/modelsReturn the public model id, chiro.
POST/v1/chat/completionsRun a memory-augmented chat completion. Supports streaming and non-streaming responses.

Example

export ACHIRAL_MEMORY_ENDPOINT="https://your-org-slug.achiral.ai/v1"
export ACHIRAL_TOKEN="acm_..."

curl "$ACHIRAL_MEMORY_ENDPOINT/chat/completions" \
  -H "Authorization: Bearer $ACHIRAL_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "chiro",
    "messages": [
      {"role": "user", "content": "What changed in our onboarding workflow this week?"}
    ],
    "temperature": 0.2,
    "max_tokens": 600
  }'

Use Memory API for the full surface map.