Skip to content

API

Two endpoints. One sovereign stack.

Call a domain model, get an answer with the clause it came from. Hosted in Paris and Amsterdam, or deployed inside your own network.

curl https://api.legml.ai/v1/chat \
  -H "Authorization: Bearer $LEGML_KEY" \
  -d '{
    "model": "le-lion-affaires",
    "input": "Quel poids en fonds propres ?",
    "documents": ["doc_4471"],
    "cite": true
  }'

Streaming by defaultOpenAI-compatible schema

01 — What it returns

Citations

Every cited span carries a document id and character offsets, so you can highlight the source in your own UI.

Abstention

When the documents do not answer the question, the model says so rather than filling the gap.

Residency

Requests never leave the EU. Pin a region per key, or run the weights on your own hardware.

02 — Models

Four model ids, priced per million tokens.

Model idDomainContextPer 1M tokens
le-lion-affairesFrench business law, audit, governance128k€1.40
le-lion-hugoDutch law, contracts, regulatory obligations128k€1.40
le-lion-assuranceClaims handling and policy interpretation64k€0.90
le-lion-terreAgricultural subsidy frameworks64kPilot

03 — Where it runs

Managed · Paris (eu-west-3) and Amsterdam (eu-central-1)Available
Private VPC, your cloud accountOn request
On-premise weights, air-gappedLicensed

Keys are issued the same day.