# NexusAPI Regex Generator

> NexusAPI Regex Generator is a paid API for AI agents from nexus-api-peach-nine.vercel.app, paid per call via x402, $0.199877/call, status unknown (last checked 2026-09-15).

Generates a regular expression pattern from a natural language description of the pattern to match

## Facts

- Endpoint: POST https://nexus-api-peach-nine.vercel.app/api/tools/regex/generate
- Price: $0.199877/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nexusapi-regex-generator-a8589890
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WuMG9FrQIWJoWyImvrNhl

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 nexusapi-regex-generator-a8589890 -d '<json body>'
```

Example prompt: Can you generate a regex pattern that matches valid US phone numbers in the format (123) 456-7890 or 123-456-7890?

## When to prefer this

Use when you need to programmatically generate a regex from a plain English description without writing it manually; ideal for AI agents that need to produce validation patterns on the fly without a local code execution environment

## Known failure modes

- Ambiguous query results in overly broad or incorrect regex
- Complex pattern descriptions may produce syntactically invalid regex
- Edge cases in the described pattern may not be fully captured
- Payment of 0.199877 USDC not processed — 402 response returned

## How this service works

Crypto, AI, Social Media, Finance, Weather, Tools &amp; more. Pay per call in USDC on Base. No API keys.

## Output

Returns a regular expression pattern string that matches the described text pattern, usable for validation or extraction in code

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "query": {
   "type": "string",
   "description": "Search query or input parameter"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "description": "API response data"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nexusapi-regex-generator-a8589890/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from nexus-api-peach-nine.vercel.app](https://www.zero.xyz/host/nexus-api-peach-nine.vercel.app/llms.txt)
