{"uid":"cap_bLPtMwPH2cu3fTknnTcO4","slug":"brainiac-json-schema-generator-c8d1b5ec","name":"BRAINIAC JSON Schema Generator","description":"Pay-per-call APIs for software agents. No account. Pay the listed USDC amount on Base with x402, then receive the result.","url":"https://www.brainiac.software/api/v1/api-integration/json-schema-generate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"file":{"type":"object","required":["mediaType","fileBase64"],"properties":{"filename":{"type":"string","maxLength":180,"minLength":1},"mediaType":{"enum":["application/json","text/plain"],"type":"string"},"fileBase64":{"type":"string","maxLength":12000000,"minLength":1}},"additionalProperties":false},"json":{"type":"string","maxLength":200000},"side":{"enum":["request","response"],"type":"string"},"after":{"$ref":"#/$defs/__schema0"},"before":{"$ref":"#/$defs/__schema0"},"schema":{"$ref":"#/$defs/__schema0"},"source":{"$ref":"#/$defs/__schema0"},"target":{"$ref":"#/$defs/__schema0"},"example":{"$ref":"#/$defs/__schema0"},"payload":{"$ref":"#/$defs/__schema0"},"examples":{"type":"array","items":{"$ref":"#/$defs/__schema0"},"maxItems":20},"toVersion":{"type":"string","maxLength":40,"minLength":1},"operations":{"type":"array","items":{"oneOf":[{"type":"object","required":["op","from","to"],"properties":{"op":{"type":"string","const":"rename"},"to":{"type":"string","maxLength":200,"minLength":1},"from":{"type":"string","maxLength":200,"minLength":1}},"additionalProperties":false},{"type":"object","required":["op","from","to"],"properties":{"op":{"type":"string","const":"copy"},"to":{"type":"string","maxLength":200,"minLength":1},"from":{"type":"string","maxLength":200,"minLength":1}},"additionalProperties":false},{"type":"object","required":["op","paths"],"properties":{"op":{"type":"string","const":"pick"},"paths":{"type":"array","items":{"type":"string","maxLength":200,"minLength":1},"maxItems":40,"minItems":1}},"additionalProperties":false},{"type":"object","required":["op","paths"],"properties":{"op":{"type":"string","const":"omit"},"paths":{"type":"array","items":{"type":"string","maxLength":200,"minLength":1},"maxItems":40,"minItems":1}},"additionalProperties":false},{"type":"object","required":["op","path","type"],"properties":{"op":{"type":"string","const":"cast"},"path":{"type":"string","maxLength":200,"minLength":1},"type":{"enum":["string","number","integer","boolean"],"type":"string"}},"additionalProperties":false},{"type":"object","required":["op","path","value"],"properties":{"op":{"type":"string","const":"default"},"path":{"type":"string","maxLength":200,"minLength":1},"value":{"$ref":"#/$defs/__schema0"}},"additionalProperties":false}]},"maxItems":40},"fromVersion":{"type":"string","maxLength":40,"minLength":1}}},"responseSchema":{"type":"json","example":{"issues":[],"schema":{"type":"object","required":["id","email","total","items"],"properties":{"id":{"type":"string"},"email":{"type":"string"},"items":{"type":"array","items":{"type":"object","required":["sku","qty"],"properties":{"qty":{"type":"integer"},"sku":{"type":"string"}},"additionalProperties":true}},"total":{"type":"integer"}},"additionalProperties":true},"status":"generated","checkedAt":"2026-11-03T15:00:00.000Z","limitations":["No external API is called and no user-supplied code is executed.","Validation covers type, properties, required, additionalProperties, items, enum, const, length, range, and the formats email, date, and date-time. Other JSON Schema keywords are reported and not applied.","A generated schema uses only values present in the supplied examples. additionalProperties stays true.","A field mapping is proposed only when the path matches or the field name matches one field on each side.","Breaking and non-breaking labels are returned only when side is request or response.","Transforms are rename, copy, pick, omit, cast, and default. A default is written only when the path is absent."],"codeExecuted":false,"externalCall":false,"valuesInvented":false,"schemaGenerated":true,"schemaCompliance":false}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.04","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.04/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_NbZBv_pJ4_dfvwgWdgCUw","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.04","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates a JSON Schema from one or more JSON examples or raw JSON input, with optional validation, field mapping, and schema transformation operations","exampleAgentPrompt":"Take this JSON example — {\"id\":\"abc123\",\"email\":\"user@example.com\",\"total\":99,\"items\":[{\"sku\":\"SHOE-7\",\"qty\":2}]} — and generate a JSON Schema for it, treating it as a response payload.","exampleUseCases":[{"title":"Schema from API response body","prompt":"Here's a sample JSON response from our orders API: {\"orderId\":\"X99\",\"customer\":{\"name\":\"Jane\",\"email\":\"jane@example.com\"},\"amount\":250,\"lines\":[{\"sku\":\"A1\",\"qty\":1}]}. Can you generate a JSON Schema from it, treating it as a response?"},{"title":"Schema with field renaming and omitting","prompt":"I have this JSON payload and I want a schema generated from it, but rename 'usr_id' to 'userId' and omit the 'internalCode' field entirely: {\"usr_id\":\"42\",\"internalCode\":\"X\",\"email\":\"bob@example.com\",\"total\":100}."},{"title":"Validate JSON against generated schema","prompt":"I've got some JSON examples and I want to know if they're consistent enough to build a schema from — here are two samples: {\"id\":1,\"name\":\"Alice\"} and {\"id\":\"two\",\"name\":\"Bob\"}. Generate a schema and flag any type conflicts or issues you find."}],"resultDescription":"Returns a JSON object containing: a generated JSON Schema reflecting the structure inferred from the input examples, a list of validation issues (empty if clean), a status field ('generated'), a checkedAt timestamp, a list of limitations (e.g. which keywords are and aren't applied), and boolean flags confirming no external calls were made, no values were invented, and no code was executed.","failureModes":["Invalid or malformed JSON input returns validation issues in the issues array","Exceeding the maxLength limits on json (200000 chars) or file base64 (12MB) may cause rejection","Unsupported mediaType for file input (must be application/json or text/plain)","Conflicting field types across multiple examples may produce a schema with broader types and noted limitations","Operations referencing non-existent paths may silently produce incomplete transforms","x402 payment failure (insufficient USDC balance or wrong network) blocks the call entirely"],"whenToPreferThis":"Choose this endpoint when you need to programmatically infer a JSON Schema from real JSON data without setting up an account or subscription. It is particularly well-suited for agents that need to auto-document API payloads, generate schemas on-the-fly from observed data, or apply lightweight schema transformation operations (rename, omit, cast, etc.) as part of an automated pipeline. It is not a full JSON Schema validator supporting all keywords, so prefer a dedicated validator for complex keyword coverage.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-17T00:34:28.350Z","isFirstParty":false,"canonicalSlug":"brainiac-json-schema-generator-c8d1b5ec"}