PayloadFix
PayloadFix cleans model output into structured JSON and validates it against your schema. Use POST /v1/llm/stabilize for parse/repair. Use POST /v1/llm/validate-schema for production contracts (strict mode, coercion, contractEnforcement, driftReport). Registry endpoints store versioned schemas.
PayloadFix endpoints
| Method | Endpoint | Description |
|---|---|---|
| Health | ||
| GET |
getRootMeta / |
Public. Returns service name, version, and docs path. No API key required. |
| GET |
getHealth /v1/health |
Returns ok flag and a list of available endpoints. |
| LLM Output | ||
| POST |
llmStabilize /v1/llm/stabilize |
Strips markdown fences, runs extraction/repair. Does not guarantee a single business object root. On failure returns 422 with code INVALID_JSON and repair diagnostics in… |
| POST |
llmValidateSchema /v1/llm/validate-schema |
Same preprocessing as stabilize, then root must be a plain JSON object. Provide either schema (inline) or schemaRef (registry). strict mode returns 422 on validation failure.… |
| Registry | ||
| GET |
registryListSchemas /v1/registry/schemas |
Returns id, name, latestVersion, versionCount for each schema. |
| GET |
registryGetSchema /v1/registry/schemas/{id} |
All versions with schema JSON and optional changelog and shapeDiffFromPrevious per version. |
| POST |
registryAddVersion /v1/registry/schemas/{id}/versions |
Returns new version number and shapeDiffFromPrevious compared to the previous version. |
| GET |
registryGetMetering /v1/registry/metering |
Counts stabilize/validateSchema success and totals, plus registry events. |
| POST |
registryCreateSchema /v1/registry/schemas |
Creates a new schemaId. shapeDiffFromPrevious is always null in this response. |
| Utilities | ||
| POST |
textStats /v1/text/stats |
roughTokensLlMHint is approximately chars divided by 4, not a real tokenizer. |
| POST |
hashSha256 /v1/hash/sha256 |
encoding hex requires even-length hexadecimal string. |
PayloadFix pricing
| Plan | Price | Rate limit | Quotas |
|---|---|---|---|
| BASIC | Free | — |
|
| PRO | $9 / month | 1000 / hour |
|
| ULTRA | $19 / month | 5000 / hour |
|
| MEGA | $29 / month | 10000 / hour |
|