{"uid":"cap_JOV9AmY8rl_w5c7xvEX08","slug":"relaystation-schema-infer-66b39907","name":"Relaystation Schema Infer","description":"$0.0002/MB. Infer a JSON Schema or SQL DDL straight from your data — skip hand-writing schemas. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny","url":"https://api.relaystation.ai/v1/data/schema-infer","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","properties":{"file":{"type":"object","description":"cputools input-source: { inline: <base64 ≤ 4 MiB> } or { inputKey: <scratch key from /v1/cputools/upload-url, ≤ 50 MB> }."},"from":{"enum":["csv","tsv","json","ndjson"],"type":"string","description":"A tabular file format: csv, tsv, json (array of objects), or ndjson."},"dialect":{"enum":["json-schema","sql-ddl"],"type":"string"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_-VU0KlLd1IJtECulQAT--","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Automatically infers a JSON Schema or SQL DDL definition from raw data, eliminating the need to hand-write schemas.","exampleAgentPrompt":"Can you infer a JSON Schema from this sample data I'm pasting — I want to skip writing it by hand and get the field names and types automatically?","exampleUseCases":[{"title":"Auto-generate SQL table definition","prompt":"I have a bunch of CSV rows from our orders export — can you infer a SQL DDL from this sample so I can create the database table without writing it manually?"},{"title":"Validate API payload structure","prompt":"I've got some example JSON responses from a third-party API and I need a proper JSON Schema generated from them so I can validate future payloads."},{"title":"Bootstrap data pipeline schema","prompt":"Here's a sample of the raw event data we're ingesting — can you infer a JSON Schema from it so we can use it as the basis for our data pipeline contract?"}],"resultDescription":"Returns an inferred JSON Schema or SQL DDL definition derived from the supplied sample data, including field names, inferred data types, required/optional markers, and structural nesting — ready to use directly in validation or database creation workflows.","failureModes":["Empty or malformed input data returns an error with no schema output","Ambiguous or mixed-type columns may result in overly broad type inference (e.g. 'string' instead of 'integer')","Very small sample sizes may yield incorrect type assumptions","Unsupported data formats may be rejected","Payment failure or insufficient USDC balance prevents the call from completing"],"whenToPreferThis":"Choose this endpoint when you need to quickly bootstrap a schema from existing data without hand-authoring it. It's ideal for data engineers ingesting third-party feeds, developers reverse-engineering API payloads, or analysts setting up SQL tables from CSV exports. Prefer it over manual schema writing or heavier ETL tools when you have sample data on hand and want a schema instantly at very low cost ($0.01/call).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:53:05.737Z","isFirstParty":false}