78trust / 100

Prod Pydantic Zod Schema Generator Buy

by turboshop.ai in Onchain & crypto

x402 APIPassing, checked 48 min ago

Automated TypeScript/Zod, Python Pydantic v2, and JSON Schema (Draft 2020-12) code generator microservice. Converts raw JSON payloads, API responses, or JSON Schemas into strict, ready-to-use Zod schemas, TypeScript interfaces, and Pydantic BaseModel classes with automatic format detection (UUID, ISO-8601 datetime, email, URL, EVM address) and nested object extraction.

POST
https://turboshop.ai/api/v1/products/prod-pydantic-zod-schema-generator/buy
Price
$0.02
per call in USDC
Uptime
100%
last 30 days
Response time
164 ms
204 ms slowest 5%
Last check
Passed
48 min ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed · Watch with other listings

How to call it

POST https://turboshop.ai/api/v1/products/prod-pydantic-zod-schema-generator/buy

Each call costs $0.02 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

POST https://turboshop.ai/api/v1/products/prod-pydantic-zod-schema-generator/buy
content-type: application/json

{
  "json_sample": {
    "amount_usdc": 0.05,
    "buyer_wallet": "0x71C...89A",
    "created_at": "2026-10-18T12:00:00Z",
    "items": [
      {
        "qty": 1,
        "sku": "prod-schema-gen"
      }
    ],
    "order_id": "550e8400-e29b-41d4-a716-446655440000",
    "settled": true
  },
  "root_name": "AgentOrderReceipt",
  "strict": true,
  "target": "all"
}

Parameters

ParameterTypeRequiredDescription
json_sampleobjectNoSample JSON object or array (or stringified JSON) to infer Pydantic v2, Zod, and TypeScript schemas from
json_schemaobjectNoOptional existing JSON Schema to compile into Pydantic v2, Zod, and TypeScript
root_namestringNoRoot model/interface name (default: 'RootModel')
strictbooleanNoEnforce strict object validation (.strict() in Zod / extra='forbid' in Pydantic v2)
targetstringNoTarget output format (default: 'all') One of: all, pydantic, zod, typescript, json_schema.

Example response

The provider's example. We can't check it without paying.

{
  "asset_delivery": {
    "data": {
      "bearer_token": "rs_live_tool_credential_...",
      "quota": 1000
    },
    "delivered_at": "2026-10-18T13:38:39.620Z",
    "license": "Commercial MIT"
  },
  "executed_output": {
    "result": "Tool output executed atomically upon purchase",
    "status": "success"
  },
  "message": "Payment verified. Tool executed and credentials delivered.",
  "name": "Pydantic & Zod Schema Auto-Generator Tool (TypeScript/Zod & Python/Pydantic Microservice)",
  "product_id": "prod-pydantic-zod-schema-generator",
  "status": "success",
  "transaction_receipt": {
    "price_paid_usdc": "0.02",
    "product_id": "prod-pydantic-zod-schema-generator",
    "purchase_id": "tx_1791234567890_abc123",
    "tx_hash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
  }
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.02.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://turboshop.ai/api/v1/products/prod-pydantic-zod-schema-generator/buy' \
  -H 'content-type: application/json' \
  --data-raw '{"json_sample":{"amount_usdc":0.05,"buyer_wallet":"0x71C...89A","created_at":"2026-10-18T12:00:00Z","items":[{"qty":1,"sku":"prod-schema-gen"}],"order_id":"550e8400-e29b-41d4-a716-446655440000","settled":true},"root_name":"AgentOrderReceipt","strict":true,"target":"all"}'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://turboshop.ai/api/v1/products/prod-pydantic-zod-schema-generator/buy' \
  -H 'content-type: application/json' \
  --data-raw '{"json_sample":{"amount_usdc":0.05,"buyer_wallet":"0x71C...89A","created_at":"2026-10-18T12:00:00Z","items":[{"qty":1,"sku":"prod-schema-gen"}],"order_id":"550e8400-e29b-41d4-a716-446655440000","settled":true},"root_name":"AgentOrderReceipt","strict":true,"target":"all"}' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.02 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.02" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.02 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fturboshop.ai%2Fapi%2Fv1%2Fproducts%2Fprod-pydantic-zod-schema-generator%2Fbuy&method=POST
const res = await pay("https://turboshop.ai/api/v1/products/prod-pydantic-zod-schema-generator/buy", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "json_sample": {
      "amount_usdc": 0.05,
      "buyer_wallet": "0x71C...89A",
      "created_at": "2026-10-18T12:00:00Z",
      "items": [
        {
          "qty": 1,
          "sku": "prod-schema-gen"
        }
      ],
      "order_id": "550e8400-e29b-41d4-a716-446655440000",
      "settled": true
    },
    "root_name": "AgentOrderReceipt",
    "strict": true,
    "target": "all"
  }),
});
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.02 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.02"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.post(
        "https://turboshop.ai/api/v1/products/prod-pydantic-zod-schema-generator/buy",
        json={
            "json_sample": {
                "amount_usdc": 0.05,
                "buyer_wallet": "0x71C...89A",
                "created_at": "2026-10-18T12:00:00Z",
                "items": [
                    {
                        "qty": 1,
                        "sku": "prod-schema-gen",
                    },
                ],
                "order_id": "550e8400-e29b-41d4-a716-446655440000",
                "settled": True,
            },
            "root_name": "AgentOrderReceipt",
            "strict": True,
            "target": "all",
        },
    )
    print(res.status_code, res.text)

Security scan

No findings

We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
48 min agoPassed402164 ms$0.02
5 h agoPassed402172 ms$0.02
8 h agoPassed402162 ms$0.02
11 h agoPassed402182 ms$0.02
14 h agoPassed402190 ms$0.02
Show 4 older checks
17 h agoPassed402122 ms$0.02
20 h agoPassed402160 ms$0.02
23 h agoPassed402204 ms$0.02
32 h agoPassed402119 ms$0.02