# OmniAPI Regex Generator

> OmniAPI Regex Generator is a paid API for AI agents from omni-api-cyan.vercel.app, paid per call via x402, $0.039054/call, status unknown (last checked 2026-09-15).

Generates a regular expression pattern based on a natural language description or example input query

## Facts

- Endpoint: POST https://omni-api-cyan.vercel.app/api/tools/regex/generate
- Price: $0.039054/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/omniapi-regex-generator-d5fa1f0c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fpyXZ4TCNHjG7LngYL6Fe

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 omniapi-regex-generator-d5fa1f0c -d '<json body>'
```

Example prompt: Generate a regular expression that matches valid email addresses, including subdomains and plus-addressing like user+tag@sub.domain.com.

## When to prefer this

Use this endpoint when an agent or developer needs to dynamically generate a regex pattern from a plain-language description without writing the regex manually. Prefer this over static regex libraries when the pattern requirements are user-defined or context-dependent. Best for rapid prototyping, form validation logic, and log parsing tasks where the pattern is not known ahead of time.

## Known failure modes

- Vague or ambiguous query may produce a regex that over-matches or under-matches
- Very complex pattern descriptions may yield incorrect or overly simplified regex
- Query in unsupported language or format may return a generic or empty pattern
- Payment failure via x402 results in 402 response blocking the call
- Malformed request body missing required 'query' field returns a 400 error

## How this service works

444 endpoints across 9+ chains. Crypto, AI, Social, Finance, Weather, Tools. Pay per call in USDC via x402 with 4 facilitators: Dexter, Meridian, FluxA, GoPlausible.

## Output

Returns a generated regular expression pattern (regex string) corresponding to the described matching requirement, potentially accompanied by an explanation or example matches.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "query"
 ],
 "properties": {
  "input": {
   "type": "string",
   "description": "Input data for the endpoint"
  },
  "query": {
   "type": "string",
   "description": "Search query or input text"
  },
  "params": {
   "type": "object",
   "description": "Additional parameters"
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/omniapi-regex-generator-d5fa1f0c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from omni-api-cyan.vercel.app](https://www.zero.xyz/host/omni-api-cyan.vercel.app/llms.txt)
