Invocation
- Service ID
ai-regex-generator- Method
POST- Endpoint
/api/tools/ai-regex-generator- Legacy Endpoint
none- MCP Tool
ai_regex_generator- Price
- XIAO 0.005
Paid API service
Generates regular expressions with examples, edge cases, and implementation notes. Paid XIAO Bailian/Qwen service. Call with the declared JSON schema; unpaid calls return HTTP 402 before model execution.
ai-regex-generatorPOST/api/tools/ai-regex-generatornoneai_regex_generatorCall the endpoint without payment to receive HTTP 402 metadata. If payment is required, open xiaopay.top to obtain XIAO, create the guarantee, then retry with X-Payment-Token, an XIAO guarantee header, or MCP paymentToken.
Call POST /api/tools/ai-regex-generator once to receive HTTP 402 with accepts[] requirements. Open https://xiaopay.top to obtain XIAO, create an AI wallet guarantee for merchant_id=aivps.lat and merchant_order_id=payment.paymentId, then retry with X402-Guarantee. If you need the legacy reusable token flow, create a payment with POST /api/payments using serviceId="ai-regex-generator".
{
"exampleRequest": {
"match_examples": [
"INV-2026-001",
"ORD-402"
]
},
"exampleResponse": {
"model": "qwen-plus",
"provider": "aliyun-bailian",
"result": {
"summary": "Example structured result."
},
"service_id": "ai-regex-generator",
"status": "ok"
},
"inputSchema": {
"additionalProperties": true,
"properties": {
"context": {
"description": "Optional supporting context, source text, constraints, or background.",
"type": "string"
},
"language": {
"description": "Optional output language or locale.",
"type": "string"
},
"match_examples": {
"description": "Required input field match_examples.",
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"match_examples"
],
"type": "object"
},
"outputSchema": {
"additionalProperties": true,
"properties": {
"model": {
"type": "string"
},
"provider": {
"type": "string"
},
"result": {
"additionalProperties": true,
"type": "object"
},
"service_id": {
"type": "string"
},
"status": {
"type": "string"
},
"upstream_id": {
"type": "string"
},
"upstream_request_id": {
"type": "string"
},
"usage": {
"additionalProperties": true,
"type": "object"
}
},
"required": [
"status",
"service_id",
"result"
],
"type": "object"
}
}