LLM JSON Repair and Schema Enforcer API
Pricing
from $0.50 / 1,000 json repaireds
LLM JSON Repair and Schema Enforcer API
Deterministic engine that repairs truncated JSON, unescaped quotes, trailing commas, and markdown wrappers from LLM outputs.
LLM JSON Repair and Schema Enforcer API
Pricing
from $0.50 / 1,000 json repaireds
Deterministic engine that repairs truncated JSON, unescaped quotes, trailing commas, and markdown wrappers from LLM outputs.
You can access the LLM JSON Repair and Schema Enforcer API programmatically from your own applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in API & Integrations in Apify Console.
$echo '{< "items": [< {< "id": "sample-1",< "raw_text": "```json\\n{\\n \\"name\\": \\"Autonomous Agent\\",\\n \\"status\\": \\"active\\",\\n \\"tokens\\": \\"450\\",\\n \\"tools\\": [\\"search\\", \\"calculator\\",],\\n} // truncated\\n```"< }< ]<}' |<apify call n4d.h1dr/llm-json-healer --silent --output-datasetThe Apify CLI is the official tool that allows you to use LLM JSON Repair and Schema Enforcer API locally, providing convenience functions and automatic retries on errors.
Using installation script (macOS/Linux):
$curl -fsSL https://apify.com/install-cli.sh | bashUsing installation script (Windows):
$irm https://apify.com/install-cli.ps1 | iexUsing Homebrew:
$brew install apify-cliUsing npm:
$npm install -g apify-cliOther API clients include: