{"uid":"cap_g0zBOX_G2blxpIebewUi3","slug":"brainiac-json-schema-generator-6ddc1b7c","name":"BRAINIAC JSON Schema Generator","description":"Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.","url":"https://www.brainiac.software/api/v1/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":{},"before":{},"schema":{},"source":{},"target":{},"example":{},"payload":{},"examples":{"type":"array","items":{},"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":{}},"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_G2oGkr_QkbYIhXwkziq9k","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 payloads, and can also validate, diff, map, and transform schemas","exampleAgentPrompt":"Can you generate a JSON Schema from this example JSON I have — it's an order object with id, email, total, and an items array where each item has sku and qty fields?","exampleUseCases":[{"title":"Infer schema from API response","prompt":"I have this JSON response from our payments API and I need a proper JSON Schema for it — here's an example response body with transaction_id, amount, currency, and status fields. Can you generate the schema for me?"},{"title":"Validate request body against schema","prompt":"I've got a JSON schema for our checkout request and a sample payload — can you check whether the payload is compliant with the schema and tell me what issues there are?"},{"title":"Map fields between two schemas","prompt":"I'm migrating from our old API to the new one and the field names changed — here's the old schema and the new schema. Can you figure out how the fields map between them and suggest any rename or copy operations needed?"}],"resultDescription":"Returns a generated JSON Schema inferred from the supplied examples, along with a list of any compliance issues, metadata about what was and wasn't applied (supported keywords, limitations), and flags indicating whether external calls or code execution occurred. The status field indicates whether a schema was generated and whether the input was compliant.","failureModes":["Input JSON is malformed or unparseable — returns issues listing parse errors","File base64 is too large (>12MB) or media type is unsupported — returns validation error","No JSON input or file provided — returns error requiring at least one input source","Schema keywords outside the supported subset (type, properties, required, additionalProperties, items, enum, const, length, range, email/date/date-time formats) are reported but not applied","Field mapping proposed only when path or field name uniquely matches one field on each side — ambiguous mappings may be omitted"],"whenToPreferThis":"Use this endpoint when you need to quickly infer a JSON Schema from one or more concrete JSON examples without writing schema by hand, or when you need to validate a JSON payload against a schema, diff two schemas, or propose field mappings between schemas. Prefer this over manual schema writing or general-purpose LLM schema generation when you want a deterministic, structured result with explicit limitation disclosures and no invented values.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-12T12:36:43.386Z","isFirstParty":false,"canonicalSlug":"brainiac-json-schema-generator-c8d1b5ec"}