---
title: "LLM Output Validate (x402)"
method: GET
path: "/x402/v2/llm-output-validate"
tags: ["x402"]
---

# LLM Output Validate (x402)

`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

Validate and auto-repair LLM output. Parse JSON, validate against schema, attempt fixes for common LLM mistakes. Algorithmic — no LLM needed.

## Query parameters

- `llm_output` string, required: Raw LLM output string
- `strict_mode` boolean
- `expected_schema` object: JSON Schema to validate against

## Response `200`

Success

- object
  - `valid` boolean
  - `errors` unknown[]
    - unknown
  - `auto_fixed` boolean
  - `parsed_output` unknown
  - `auto_fixed_output` string

## Other responses

- `402`: Payment required (x402 — pay with USDC on Base)

---

[API](https://skmtc.dev/strale/apis/strale-api-2.md) · [All operations](https://skmtc.dev/strale/apis/strale-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/strale/apis/strale-api-2/revisions/a5293878cfc6?raw)
