{"uid":"cap_V43nOtbs-Nfdw4i-5Xwn0","slug":"x402-ai-json-repair-api-15f5f9a9","name":"x402 AI JSON Repair API","description":"Paid AI API endpoints via x402 micropayments","url":"https://x402-ai-peach.vercel.app/api/json-repair","method":"POST","headers":{},"bodySchema":{"type":"object","required":["messages"],"properties":{"stream":{"type":"boolean","description":"Stream response"},"messages":{"type":"array","description":"Chat messages array"},"max_tokens":{"type":"integer","description":"Max tokens"},"temperature":{"type":"number","description":"Temperature"}}},"responseSchema":{"type":"object","properties":{"id":{"type":"string","description":"Response ID"},"choices":{"type":"array","items":{"type":"object","properties":{"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":"string"}}}}}}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_bbAZmmonGt8xfhxuhDqQQ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Repairs and fixes malformed JSON strings using an LLM chat interface, paid via x402 micropayments at $0.05 USDC per call","exampleAgentPrompt":"Fix this broken JSON for me — it has missing quotes and a trailing comma and won't parse: {name: 'Alice', age: 30,}","exampleUseCases":[{"title":"Repair LLM-generated malformed JSON","prompt":"My language model returned this JSON but it's invalid and won't parse — can you fix it? Here's the string: {\"user\":\"bob\", \"score\": 42, \"tags\": [\"a\", \"b\",]}"},{"title":"Fix API response with syntax errors","prompt":"This third-party API keeps sending me broken JSON with unquoted keys and missing brackets. Can you repair this so I can use it: {name: John, age: 25, address: {city: 'NYC'"}],"resultDescription":"A JSON object containing a response ID and a choices array, where the first choice includes a message with the repaired, valid JSON string as its content","failureModes":["Invalid or missing messages array returns an error","Severely corrupted JSON beyond LLM repair may return best-effort but still-invalid output","Insufficient USDC balance causes payment failure via x402 protocol","Token limit too low may truncate the repaired JSON response","Network timeout on the Vercel deployment may cause 504 errors"],"whenToPreferThis":"Choose this endpoint when you need a pay-per-use, no-subscription JSON repair service with micropayment billing via x402/USDC, especially useful for AI agents that autonomously process data pipelines and need to fix malformed JSON on the fly without committing to a monthly plan","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:40:56.300Z","isFirstParty":false}