GeneralLive

Regex Pack

Generates a regex from a natural-language prompt and live-tests it in one call.

$0.0345USDC per call · settled on Base · no subscription, no API key

Overview

Generates a regex from a natural-language prompt and live-tests it in one call. Composite: one call runs regex-from-prompt first, then feeds the generated pattern into regex-test over your test_strings (optional stage, runs only when test_strings are provided). Returns the JavaScript pattern + flags + explanation + examples, plus per-input matched/not-matched verdicts with capture groups so you know the pattern actually matches what you asked for. Prompt capped at 2,000 chars; up to 100 test strings of 5,000 chars each. Includes composed_of + per-component telemetry. Use it as an NL pattern builder with verification, generate-and-verify regex workflow, or regex playground bundle.

Endpoint

MethodEndpointPriceDescription
POST/v1/marketplace/api/regex-pack$0.0345Invoke Regex Pack (General) and return the upstream response.

How to call it

Requests are paid per call over the x402 protocol. Call the endpoint, receive a 402 Payment Required quote, then repeat the request with the signed payment header. The SDKs do both steps for you.

# 1. Ask for a quote
curl -i -X POST https://api.jarvisclaw.ai/v1/marketplace/api/regex-pack \
  -H 'Content-Type: application/json' \
  -d '{}'

# 2. Pay it (the SDK signs and retries for you)
curl -X POST https://api.jarvisclaw.ai/v1/marketplace/api/regex-pack \
  -H 'Content-Type: application/json' \
  -H 'X-PAYMENT: <signed-payload>' \
  -d '{}'
Open in the marketplace

Docs: Getting started · x402 payments · x402 discovery · All APIs