POST /extract Free · 1,000/day
Free, so it can run on every draft before a credit is spent.
text can also be a single public web page URL (http or https, nothing else in the field). Lenz reads the page, a Google Doc, a PDF (.pdf), a YouTube video's transcript, or an image (.png, .jpg, .jpeg, .webp), and extracts the claims from its first 50,000 characters. Pages behind a login (Facebook, Instagram, Threads, LinkedIn) can't be read. A URL call typically takes 5-40 seconds, and the SDK waits up to 150 seconds for it.
# a newsletter draft in — atomic, verifiable claims out draft = """ Space news this week. The James Webb Space Telescope launched in December 2019 and orbits the Sun-Earth L2 point, about 1.5 million km from Earth. Its mirror has 18 hexagonal segments and spans 6.5 metres, which most astronomers consider a leap over Hubble. """ out = client.extract(text=draft) for c in out.claims: print("-", c.claim) # opinions skipped, pronouns resolved, compounds split: # - The James Webb Space Telescope launched in December 2019. # - ...