# 24K Labs Regex Explainer

> 24K Labs Regex Explainer is a paid API for AI agents from api.24klabs.ai, paid per call via x402, $0.006/call, status unknown (last checked 2026-09-14).

Takes a regular expression and returns a plain-English, token-by-token explanation of what it matches.

## Facts

- Endpoint: POST https://api.24klabs.ai/api/v1/explain-regex
- Price: $0.006/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/24k-labs-regex-explainer-245f1df3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CVW_PwVL9lR_OMIM1FnVr

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability 24k-labs-regex-explainer-245f1df3 -d '<json body>'
```

Example prompt: Can you explain what this regex does, token by token: ^(?:[0-9]{1,3}\.){3}[0-9]{1,3}$?

## When to prefer this

Choose this endpoint when you need to explain, document, or teach what a regular expression does in plain English — especially useful for developer tools, code review assistants, onboarding documentation, or when a user pastes an unfamiliar regex and wants to understand it without being a regex expert.

## Known failure modes

- Invalid or malformed regex syntax returns an error
- Extremely complex or pathological regexes may produce incomplete explanations
- Missing or empty regex input returns a 400 error
- Catastrophically backtracking regexes may time out

## How this service works

Explain what a regular expression matches, in plain English, token by token.

## Output

A plain-English breakdown of the regular expression, explained token by token — describing what each component (character class, quantifier, anchor, group, etc.) matches in human-readable terms.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "regex": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "explanation": "..."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/24k-labs-regex-explainer-245f1df3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.24klabs.ai](https://www.zero.xyz/host/api.24klabs.ai/llms.txt)
