Catalog/gen-pattern-fill

Generators

Seeded pattern fill API

Fills a template pattern (A=letter, #=digit, *=alnum, other chars literal) deterministically from a seed, generating N values. The value-add: reproducible license-plate / SKU / serial-number style identifiers from a mask. Answers 'Generate SKUs from a pattern deterministically', 'How do I fill a license-plate mask reproducibly?'.

Price$0.01per request
MethodPOST
Route/v1/generate/pattern-fill
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
patternskulicense-plateserialmaskdeterministicseedgenerate
API URLhttps://x402.hexl.dev/v1/generate/pattern-fill
Integration docs
Example request
{
  "pattern": "AA-####",
  "seed": "abc",
  "count": 2
}
Example response
{
  "values": [
    "NR-0874",
    "XQ-7335"
  ],
  "pattern": "AA-####",
  "count": 2,
  "seed": "abc",
  "deterministic": true,
  "interpretation": "Pattern 'AA-####' filled deterministically (A=letter, #=digit, *=alnum, literals kept)."
}
Input schema
{
  "type": "object",
  "required": [
    "pattern",
    "seed"
  ],
  "properties": {
    "pattern": {
      "type": "string",
      "description": "A=letter, #=digit, *=alnum, others literal",
      "examples": [
        "AA-####"
      ]
    },
    "seed": {
      "type": [
        "string",
        "number"
      ],
      "examples": [
        "abc"
      ]
    },
    "count": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000,
      "examples": [
        2
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}