A missing credential reads as missing
You get an explicit refusal that names the variable your operator needs to set, instead of a quiet green light. Nothing is sent anywhere until the account exists.
Available now
In build
The whole team
Nineteen specialists, each with a defined job and an honest status label.
See all nineteenThe business can see how AI-generated a piece of text reads to a third-party classifier, before it goes anywhere.
Works with
What it does
The user posts text and a third-party model returns an estimate of how likely it is AI-written, along with whatever segments that model flags. It needs a provider account the operator provisions and fails closed without one. A low score from a response the parser did not recognise is not proof a person wrote it.
A freelance writer sends a draft to a client who wants human-written copy, and the client runs it through their own checker before paying — a check the writer cannot see into until the invoice is already disputed. Testing a draft first, as an internal signal, at least means the surprise lands somewhere you can still act on it.
Two things come before that. This check is not switched on here: it needs a third-party detection account behind a key your operator sets, ORIGINALITY_API_KEY, and on this deployment that key is empty, so every request is refused with a 503 naming it — before your text goes anywhere, and before any number exists. That refusal fails closed: no key means no verdict, never a reassuring "looks human". And with a key in place you get one classifier's estimate of how the text reads, plus whatever passages it chose to flag. It is not proof of who wrote anything, and no detector can supply that proof.
Lekha runs this directly on the platforms your customers already use — no separate app for them to install.
How it works
Detection is a request you post with the text in it, not a background pass over everything you write — nothing is scanned when a draft changes status. It needs the generate permission too, because a completed check is billed provider spend rather than a free read.
The key is checked before anything else: absent, the request comes back as a refusal naming ORIGINALITY_API_KEY and no result row is written. It fails closed. An unconfigured detector never returns a score, or an empty highlight list someone could mistake for "this one passed".
When the provider answers, its number arrives as a 0–100 estimate of how AI-generated the text reads, not a yes-or-no verdict. Its scale is inferred rather than known — a value at or below 1 is read as a fraction, anything larger as a percentage — because this integration has never run against a live account. Read it as an opinion about style.
Nothing here decides which sentences to mark: the code reads flagged_segments, then sentences, from the provider's response, and if neither is there nothing is highlighted. A response it does not recognise yields 0% with no passages — a parsing fallback, not a finding, and nobody's certificate of authorship.
Why it matters
You get an explicit refusal that names the variable your operator needs to set, instead of a quiet green light. Nothing is sent anywhere until the account exists.
The response itself carries the disclaimer: directional signal only, and false positives on human writing and false negatives on AI writing both happen. The caveat travels with the number rather than living on a page you have to remember.
Detection uses the same third-party account as the originality scan, so one key and one billing relationship cover both checks instead of two separate vendors.
The detail
No AI detector is fully accurate, and that is not this tool's small print — it is the standing condition of the whole category. Both directions of error are common: human writing flagged as machine-made, machine writing waved through. A writer whose prose is clean, consistent and evenly paced can score as more "AI-like" than someone writing messily, because the patterns these classifiers key on, sentence-length consistency among them, do not track who produced the text.
So what is a score here worth? Enough to make you re-read the flagged passages for anything stiff or formulaic, and enough to be honest with yourself before a client opens their own tool. Not enough to accuse anyone of anything. A false accusation has a cost a freelancer feels directly — a disputed invoice, a lost client — which is why no accuracy figure for this detector appears anywhere, including in the response, which never carries one.
Two failure modes deserve naming plainly, because both can be misread as good news. If the provider is unreachable or rejects the call, the check is recorded as failed with an error message and no percentage at all; the request does not crash, but it produces no verdict either. If the provider answers in a shape the parser does not recognise — the expected field missing, or holding something non-numeric — the result comes back 0% with nothing highlighted. Neither outcome tells you how the text was written. A check that cannot report is a check that did not report, and the honest reading in both cases is untested rather than cleared. A good result here also says nothing certain about what a client's own detector, or an institution's, would report on the same text; those are separate systems with separate methods.
Industry use cases
3 industries where Lekha applies this directly.
A test-prep institute asks Lekha for a blog post targeting the keyword "best online coaching for class 10 boards," and Lekha returns a structured draft with headings and an FAQ section, with any specific outcome claim about pass rates flagged for the institute to verify before publishing.
See the education playbookA freelance interior consultant uses Lekha to turn one client project photo caption into a LinkedIn post, an Instagram caption, and a one-line portfolio blurb, all in the same evening.
See the freelancers and consultants playbookAn agency managing five retail clients keeps five separate brand-voice profiles in Lekha, so the same campaign-brief-to-assets workflow produces distinctly different-sounding output for each client from the same underlying template.
See the marketing agencies playbookMore from Lekha
The business states its tone and the words it never uses once, instead of re-explaining them in every prompt.
Learn moreThe business drafts a first version of an ad, caption, email, or product description instead of starting from a blank page.
Learn moreThe business can move a draft it already has from formal to playful, or the other way, without rewriting it by hand, and gets back in the same response the words and numbers the rewrite changed and any claim the guard now holds.
Learn moreThe business reaches Hindi-speaking and code-mixed audiences with copy that reads naturally, not like a literal translation.
Learn moreThe business moves a piece of copy into one other language at a time and sees what the new wording dropped, without hiring a translator for routine content.
Learn moreThe business gets a structured long-form draft built around a target keyword, stored with its outline, meta description and questions.
Learn moreQuestions
No. The check needs ORIGINALITY_API_KEY, a third-party detection account your operator provisions, and it is not set on this deployment. Every request is refused with a 503 that names the variable, before your text is sent anywhere, and nothing is recorded. Stored checks stay readable, since reading is not gated on the key, but no new verdict appears until an operator funds the account.
No, and please do not use it that way. 0% with an empty highlight list is also exactly what an unrecognised provider response produces — the classifier's answer may simply have arrived in a shape the parser did not find. Treat that result as "no answer", and treat even a genuine low figure as one model's weak read of style, never as evidence of authorship.
You can show it as a prompt to re-read the flagged passages, alongside a human look at anything stiff or repetitive. What you should not do is present it as proof that anyone cheated: high scores land on clean, consistent human writing regularly, and once an accusation is out, the accuracy argument is a very thin defence.
None, deliberately. No accuracy figure is stated in the response or in this copy, because nobody here has independently verified one, and the integration has never run against a live account — even the scale of the incoming number is inferred, not confirmed. The score is offered as directional and nothing more.
The rest of your stack
No rip-and-replace — flag ai-sounding text works alongside the systems already running your business.
In development