---
title: "Regex Generate (x402)"
method: GET
path: "/x402/v2/regex-generate"
tags: ["x402"]
---

# Regex Generate (x402)

`GET /x402/v2/regex-generate`

## Request

- Base URL: `https://api.strale.io`
- URL: `https://api.strale.io/x402/v2/regex-generate`
- Auth: none required

Describe what you want to match in natural language, get a tested regex back. Optionally provide test strings for validation.

## Query parameters

- `description` string, required: What to match in natural language
- `test_strings` unknown[]: Optional strings to test against
  - unknown

## Response `200`

Success

- object
  - `flags` string
  - `regex` string
  - `explanation` string
  - `test_results` unknown[]
    - unknown

## Other responses

- `402`: Payment required (x402 — pay with USDC on Base)

---

[API](https://skmtc.dev/strale/apis/strale-api-2.md) · [All operations](https://skmtc.dev/strale/apis/strale-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/strale/apis/strale-api-2/revisions/a5293878cfc6?raw)
