{"uid":"cap_-t4b6FFd9evJjJHsvmuyz","slug":"24k-labs-json-schema-inferrer-24eea410","name":"24K Labs JSON Schema Inferrer","description":"A curated directory of x402 services — each one on the list on purpose, with the health, uptime, and independent trust grades from across the ecosystem gathered in one place.","url":"https://api.24klabs.ai/api/json-schema-infer","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"samples":{"type":"array"}}},"responseSchema":{"type":"json","example":{"schema":{"type":"object","required":["id","name"]}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_8TR_1EiLZ4xhJ7tCAZA8d","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Infers a JSON Schema from a sample JSON blob, returning a structured schema definition that describes the shape and required fields of the input.","exampleAgentPrompt":"Can you infer the JSON Schema for this sample JSON I got back from an API: {\"id\": 42, \"name\": \"Alice\", \"email\": \"alice@example.com\", \"active\": true}?","exampleUseCases":[{"title":"Auto-document API response shape","prompt":"I just got this JSON back from a third-party API and I need to document its schema — can you infer the JSON Schema from this sample: {\"orderId\": \"abc-123\", \"total\": 49.99, \"items\": [{\"sku\": \"X1\", \"qty\": 2}]}?"},{"title":"Validate data pipeline contract","prompt":"I want to make sure my data pipeline is producing the right shape of JSON — here's a sample output: {\"userId\": \"u_001\", \"score\": 0.87, \"tags\": [\"vip\", \"active\"]}. Can you infer a JSON Schema from it so I can use it for validation?"},{"title":"Bootstrap form validation schema","prompt":"I'm building a form and want to generate a JSON Schema to validate submissions — here's an example of what a valid payload looks like: {\"firstName\": \"John\", \"lastName\": \"Doe\", \"age\": 30, \"newsletter\": false}. Can you derive the schema from that?"}],"resultDescription":"Returns a JSON Schema object (draft-07 or similar) that describes the structure of the provided sample JSON, including inferred types for each field and a list of required properties.","failureModes":["Invalid or malformed JSON input returns an error response","Empty JSON input may produce a minimal or empty schema","Deeply nested or very large JSON blobs may produce incomplete or truncated schemas","Ambiguous types (e.g. a field that is null) may result in overly permissive type inferences","Network or payment processing errors may result in a 402 or 5xx response"],"whenToPreferThis":"Use this endpoint when you need to automatically derive a formal JSON Schema from a concrete JSON example, especially when building API documentation, setting up data validation pipelines, or bootstrapping form validation without writing schemas by hand. Prefer it over manual schema authoring when you already have sample data and want a quick machine-generated starting point.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:28.674Z","isFirstParty":false}