SOPHIA XT
Sign in
LENS API · built on LTMi-XT v0.1

Send the model the turns that answer the question.

LENS crystallises a conversation into single-claim loci, places them on the LTMi-XT lattice, ranks them against your question and returns a compact context block. Put it in front of any model call. You keep your provider and your prompt.

Public API liveFree to try, 8 calls per 15 minutes per address, no signup. Spec: LTMi-XT.

Same turns Two orders Sample conversation
query: Alex's deadline for the redesign
01 I'm Alex Chen, a senior backend engineer at Acme Corp, planning a redesign of our payment processing system. user
02 What's the failure mode, webhook delivery, processing logic, or both? assistant
03 About 12,000 transactions a minute at peak. Stripe webhooks arrive out of order. user
04 A classic eventual-consistency issue. Fetch canonical state on every webhook. assistant
05 That added 200 ms at p99 and broke our 150 ms SLA. We are considering event sourcing. user
06 Smart. Are you using Kafka for the event log? assistant
07 Kafka, three brokers, 24-hour retention. The reconciliation worker has to be idempotent. user
08 Idempotency keys on (event_type, charge_id), in a durable dedup table. assistant
09 Postgres unique constraint on the key. Deadline is end of Q1, committee review on March 15. user
Flat history: nine turns in the order they were said, every one sent to the model. The fact the question needs is the last thing in the list.
Live demo · no signup

Restructure a conversation right now.

The request below is the real one: POST /api/v1/lens with a messages array and a query. Free access is 8 calls per 15 minutes per address. Crystallisation calls a hosted language model that the server configures, so a response takes a few seconds.

Input messages and a query 1409 chars · about 352 tokens
Output LTMi-XT context

Press Restructure with LENS to see the conversation crystallised into loci and ranked against the query.

Limits per call: 60 messages and 16,000 characters.

What we have measured

Three results, with their limits

LENS is the hosted form of LTMi-XT. These come from the committed benchmarks in the open repositories and are written up on the format's research page. Each has a scope, and the scope is part of the result.

01 11 of 15 against 8 of 15 Hits when 30 loci are placed in a small model's context, topological order against relevance order, on TinyLlama 1.1B. That is 20 percentage points on a 2K-context model. On larger models the gap closes, and on the 128K-context model relevance order is one query ahead. TinyLlama 1.1B, K = 3002 0 of 15 to 9 of 15 An undertrained 1.3B masked-diffusion checkpoint produced noise on its own. With retrieved loci locked into the mask it answered 9 of 15 on the lenient grader, and every locked token survived to the output. Forced anchors03 13 of 15 top-1 Grader-corrected retrieval on 15 queries over three small corpora, against 9 of 15 for BM25 and for plain keyword overlap. The corpora are under 1.1 KB each, so read it as a smoke test and not a benchmark of scale. Retrieval
Any provider

Wrap the call you already make.

LENS returns text. Put the context block in a system message for OpenAI, Anthropic, a local model or anything else. The model never knows LENS was there.

  • An opt-in memory stack keeps loci across calls when you pass a session id and a user id and set use_memory_stack.
  • An include_forced_anchors option returns position-anchored specs for masked-diffusion targets. See lens-xt.
  • Crystallisation uses a hosted language model that the server configures. Retrieval is lattice arithmetic and needs no model.
use_lens.py python
# Put LENS in front of any model call (Python)
import requests, openai

def lens(messages, query):
    r = requests.post("https://sophiaxt.com/api/v1/lens",
        json={"messages": messages, "query": query})
    return r.json()["context"]

# Use the structured context with any model
context = lens(conversation_history, next_question)
response = openai.chat.completions.create(
    model="gpt-4o",
    messages=[
        {"role": "system", "content": context},
        {"role": "user", "content": next_question},
    ],
)
Pricing

A monthly tier, then a rate per call

Each tier includes a monthly quota. Above it, calls are billed at the tier's overage rate. Free is capped at its quota, so it can never produce a bill. The tiers below are read from billing, so what is printed is what checkout charges.

Self-serve checkoutCheckout is not enabled on this server right now. Email contactus@sophiaxt.com to start a paid tier.
Tiers unavailableThe billing service did not answer. The free API above still works, and you can write to contact for the rest.
Axis 1

The subscription

A flat monthly fee with an included call quota, so steady-state cost is predictable. Free caps at its quota and needs no card.

Axis 2

The overage

Past the quota, each call is billed at the tier's per-call rate and settled at the end of the period. Scale's overage rate is half of Pro's.

Billing questions

Plain answers

01 Can I cancel anytime? Yes. Cancel from the customer portal. Your tier runs until the end of the current billing period, then drops to Free. Periods already paid are not refunded pro rata.
02 What counts as a call? One successful POST to /api/v1/lens. Failed calls, such as parse errors or no backend available, are not counted.
03 Can I switch tiers mid-period? Yes. Stripe prorates the difference. Upgrades take effect at once and downgrades at the next renewal.
04 Is there token-based pricing? No. A call is one restructuring request, and the cost of a call is dominated by the model round-trip, not by raw token count.
05 Do I need a paid tier to use Cassandra T1? No. Cassandra T1 is Apache 2.0 and you can self-host it. Paid tiers add the hosted API and support.

Open The format and the reference code are Apache 2.0. Questions about billing: contactus@sophiaxt.com.