Slugify x402 REST usage
Turn any text into a URL-safe slug (lowercase, hyphenated, diacritics stripped).
387 services carry this tag in their source record. Tags come from the provider, not from us — a tag is a claim about what the service does, not proof that it does it well.
Turn any text into a URL-safe slug (lowercase, hyphenated, diacritics stripped).
Sort the lines of a text. order: asc (default) | desc | numeric. unique:true removes duplicates; ci:true is case-insensitive.
Split text into overlapping chunks for RAG ingestion - by characters (default) or by exact LLM tokens. Returns the chunks plus offsets. Deterministic, no model needed.
Counts for any text in one call: characters (Unicode code points), words, sentences, paragraphs, avgWordLength, readingTimeMinutes (200 words a minute) and estimatedTokens, a rough LLM token estimate (about 4 characters...
Count exact LLM tokens for a string using the real OpenAI BPE (o200k_base for gpt-4o/o-series, cl100k_base for gpt-4/gpt-3.5). Deterministic, offline - budget context windows without calling a model.
Truncate text to a maximum length, adding an ellipsis (or custom suffix). Optionally break on word boundaries.
camel case: deterministic text transformation with no network call and nothing stored. Send the text, get the result plus input/output lengths. One operation per endpoint so agents can compose them safely. $0.01 per call...
Text classification API: classify text into your own labels with an LLM, returns the best label and a one-line reason.
Line-by-line diff of two texts (LCS). Returns unified-style ops and change counts. Up to 2000 lines per side.
The current time, or a given time, in one or more IANA time zones, with UTC offset, abbreviation, whether daylight saving time is in effect, and the weekday. Give a local time with from_tz to convert it, handling DST cor...
Detect the language of a text among 55 languages, with probabilities for each candidate and a reliability flag. Use to route messages, pick a translator or tag content.
Statistics for a text: words, sentences, characters, paragraphs, reading and speaking time, Flesch reading ease, Flesch-Kincaid grade, Gunning fog, complex-word share, lexical diversity and top keywords. Use to check cop...
Convert text between camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case, lowercase and UPPERCASE.
Compute Flesch-Kincaid Grade Level, Flesch Reading Ease, Gunning Fog Index, and Automated Readability Index from text. Returns all 4 scores plus word, sentence, and syllable counts.
Run a regular expression against text. Returns up to 100 matches with index and capture groups. Pattern ≤ 200 chars, text ≤ 10KB.
Get one piece of thoughtful life advice, paid per request over x402.
String utilities. Transform one string every common way at once: camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.case, path/case, Title Case, Sentence case, upper and lower; a URL slug (accents removed)...
HMAC signature. Compute an HMAC of a message with a key using SHA-256 (default), SHA-1, SHA-384 or SHA-512, in hex and base64. Use to check webhook signatures. The key is used only for this call and is not stored.
CIDR calculator. Details of an IPv4 network in CIDR notation: network and broadcast address, first and last usable host, netmask, number of addresses, and whether a given IP falls inside. Use for firewall rules and allow...
MIME type for a file. MIME (content) type for a file name or extension, e.g. report.pdf → application/pdf, and whether browsers usually display it inline. Use when uploading or serving files.
Number to English words. Write a whole number (up to trillions, negatives allowed) out in English words, e.g. for cheques and invoices. Also returns the cheque form with 'and' cents when given a decimal amount. Use when...
Extract emails, URLs and more. Find all email addresses, URLs, phone-number-like strings, hashtags, @mentions and numbers in a text, each list de-duplicated. Use to pull contacts and links out of scraped pages or message...
Unit conversion. Convert between units of length, mass, volume (incl. US cups and gallons), temperature (c, f, k), speed, area, data size (kB vs KiB), time, energy and pressure. Example units: km, mi, lb, kg, floz, ml, m...
Unix timestamp converter. Convert a Unix timestamp (seconds or milliseconds, detected automatically) to ISO date and time, or an ISO date to a Unix timestamp. Without input, returns the current time in both forms. Use to...