Lexi

Cut AI API token costs by restructuring context before every call

Advanced API

What is Lexi?

Lexi is an AI mistress tool. A gateway that rewrites conversation context before each AI call so long sessions send fewer tokens. One URL swap across OpenAI, Anthropic, Google, Mistral, xAI, DeepSeek and Meta; Lexi charges 40% of realised savings and nothing when a request is not improved.

Lexi is a drop-in gateway that sits between an application and its AI provider, rewriting conversation context before each request so fewer tokens travel to the model. The engine behind it, STONE (Semantic Token Optimization and Natural Encoding), converts long message histories into a bounded representation, pinning numbers, dates and decisions into a permanent anchor. The pitch is straightforward: the same model, the same answers, a materially smaller payload. Lexi reports a 75-turn GPT-4o benchmark where a 1.6M token conversation compressed to 135K tokens, cutting provider cost from $4.37 to $0.52. In practice the integration is an endpoint swap. Developers point the base URL at api.lexisaas.com and combine their Lexi key with their own provider key in one credential string. Streaming, tool calls and structured output pass through unchanged, and Lexi never stores the provider key. It reads the model name to route requests across OpenAI, Anthropic, Google, Mistral, xAI, DeepSeek and Meta, covering 33 models on one URL. Every response returns cost, savings and reduction figures in HTTP headers, so teams can log spend or surface it in their own dashboards. The tool targets engineering and platform teams running sustained AI workloads: chat assistants, agents and long-running copilots where each turn resends the full history. Billing is tied to outcomes. Lexi takes 40% of whatever it saves, and when restructuring yields nothing the original request is forwarded and the customer pays provider rates only. A zero-negative guarantee backs this up, so a miss costs nothing extra. Session memory is reported at 14.4 KB with added latency under 1ms. Alternatives fall into two camps. Prompt compression and summarization libraries require code changes and risk losing facts, while provider-side caching only discounts repeated prefixes. Lexi's differentiator is the URL-level swap plus an outcome-based fee, though its headline numbers come from a single published benchmark and results are stated to vary by content and conversation pattern.

How do you use Lexi?

  1. 1Create a free account
    Register at the signup page to claim the $10 credit. No card is required at this stage.
  2. 2Read the how-it-works page
    Review how STONE restructures context, what gets pinned and how the zero-negative guarantee behaves before routing real traffic.
  3. 3Generate a Lexi key and combine it with your provider key
    The API key takes the form lx_live_yourkey:sk-your-provider-key, so your own provider credential travels with each request.
  4. 4Swap the base URL in your client
    Point the OpenAI or Anthropic SDK at https://api.lexisaas.com/v1 (or https://api.lexisaas.com for Anthropic). Streaming, tool calls and structured output continue to work.
  5. 5Check savings in the response headers
    Inspect X-Lexi-Savings-Cents and X-Lexi-Reduction-Ratio on each response to confirm gains before widening the rollout.
  6. 6Review pricing and billing rules
    Confirm the 40% savings share and the no-saving, no-fee policy on the pricing page before moving production traffic.

Pros and cons

Pros

  • One base URL change routes requests across 33 models from seven providers without touching application logicAI
  • Provider keys pass through and are never stored by LexiAI
  • Billing follows results: 40% of savings, zero fee when restructuring does not helpAI
  • Per-request cost, savings and reduction ratios appear in response headers for logging and alertingAI
  • Fact pinning keeps numbers, dates and decisions available deep into long sessionsAI

Cons

  • Headline savings (up to 93% at turn 75) come from a single GPT-4o benchmark, and Lexi itself notes results vary by contentAI
  • A 40% cut of savings means the largest bills still route a substantial share of the benefit to LexiAI
  • Short or single-turn requests see little gain, so value depends on conversation lengthAI
  • No published SLA, uptime commitment or documented support channels on the homepageAI
  • Adds a third-party hop in front of live traffic, which teams handling sensitive data must reviewAI

How much does Lexi cost?

Free trial

Signing up grants $10 of free credit with no card required, which is enough to test the endpoint on real traffic.

Learn more

Pricing

Lexi charges 40% of the savings it generates and the customer keeps 60%. When a request does not benefit from restructuring, the original is sent and the customer pays only provider rates. New accounts get $10 in free credit with no card required.

Learn more

Integrations

One endpoint covers 33 models across OpenAI, Anthropic, Google, Mistral, xAI, DeepSeek and Meta. The provider is inferred from the model name, and streaming, tool calls and structured output pass through unchanged.

Learn more

Features

STONE restructures conversation context into a bounded form so token counts stay flat across turns. Fact pinning preserves numbers, dates and decisions, archived messages are retrievable in full, and recall adapts from use. Session memory is reported at 14.4 KB. Cost and savings figures arrive in response headers, and a zero-negative guarantee forwards the original request when restructuring cannot help.

Learn more

Frequently asked questions about Lexi

  • How much does Lexi cost?
    Lexi charges 40% of the savings it generates and the customer keeps 60%. When a request does not benefit from restructuring, the original is sent and the customer pays only provider rates. New accounts get $10 in free credit with no card required.
  • Does Lexi offer a free trial?
    Signing up grants $10 of free credit with no card required, which is enough to test the endpoint on real traffic.
  • Does Lexi have an API?
    Yes, Lexi offers an API.
  • How do you use Lexi?
    The walkthrough on this page covers 6 steps: 1. Create a free account 2. Read the how-it-works page 3. Generate a Lexi key and combine it with your provider key 4. Swap the base URL in your client 5. Check savings in the response headers 6. Review pricing and billing rules.
  • What platforms does Lexi support?
    Lexi is available on Web App.
  • What does Lexi integrate with?
    One endpoint covers 33 models across OpenAI, Anthropic, Google, Mistral, xAI, DeepSeek and Meta. The provider is inferred from the model name, and streaming, tool calls and structured output pass through unchanged.