x402
LLM Output Validate (x402)
Validate and auto-repair LLM output. Parse JSON, validate against schema, attempt fixes for common LLM mistakes. Algorithmic — no LLM needed.
get/x402/v2/llm-output-validate
Request
- Base URL: https://api.strale.io
- URL: https://api.strale.io/x402/v2/llm-output-validate
- Auth: none required
Query parameters
llm_outputstring required
Raw LLM output string
strict_modeboolean
expected_schemaobject
JSON Schema to validate against
Response
Success
Example response
{
"valid": true,
"errors": [],
"auto_fixed": false,
"error_count": 0,
"parse_error": null,
"parsed_output": {
"age": 30,
"name": "Alice"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.