genlm/genlm-control

Controlled text generation with programmable constraints

51
/ 100
Established

This tool helps developers generate text from large language models that precisely follows specific formats or rules, such as regular expressions or JSON schemas. You input a prompt for the language model and define the exact structure or pattern the output text must adhere to. The tool then outputs text that both responds to your prompt and strictly meets those formatting requirements, ideal for developers integrating LLMs into structured data workflows.

179 stars.

Use this if you need to reliably get structured, correctly formatted text output from a large language model, like generating valid JSON objects for an API or ensuring specific phrasing patterns.

Not ideal if you're looking for a simple, plug-and-play tool for creative, open-ended text generation without strict formatting needs, or if you are not comfortable writing code.

LLM application development structured data generation API integration prompt engineering code generation
No Package No Dependents
Maintenance 10 / 25
Adoption 10 / 25
Maturity 16 / 25
Community 15 / 25

How are scores calculated?

Stars

179

Forks

20

Language

Python

License

Apache-2.0

Last pushed

Mar 09, 2026

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/genlm/genlm-control"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.