genlm/genlm-control
Controlled text generation with programmable constraints
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.
Stars
179
Forks
20
Language
Python
License
Apache-2.0
Category
Last pushed
Mar 09, 2026
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/transformers/genlm/genlm-control"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Related models
sintel-dev/sigllm
Using Large Language Models for Time Series Anomaly Detection
guanwei49/LogLLM
LogLLM: Log-based Anomaly Detection Using Large Language Models (system log anomaly detection)
Intelligent-CAT-Lab/AlphaTrans
Artifact repository for the paper "AlphaTrans: A Neuro-Symbolic Compositional Approach for...
poloclub/llm-landscape
NeurIPS'24 - LLM Safety Landscape
automix-llm/automix
Mixing Language Models with Self-Verification and Meta-Verification