Buyer-controlled x402 recipe

Generate and statically review OpenAPI tests

Generate deterministic pytest smoke tests from a caller-supplied OpenAPI 3 document, then measure the generated Python source before retaining or running it. The workflow validates syntax and static quality signals; it does not execute tests or contact the target API.

2separately authorized steps
$0.125maximum listed total · USDC
eip155:8453Base network
1
$0.1 USDC · separate authorization

OpenAPI pytest generator

Generate bounded, mutation-guarded pytest and requests smoke tests.

POSThttps://apiacre.com/v1/developer/openapi-test-generate

Input template

{
  "document": "$openApiDocument",
  "format": "$format",
  "max_operations": 50,
  "include_optional": false,
  "timeout_seconds": 20
}
Use this result

Review result.data.operations, warnings, and source; generated mutating tests remain disabled unless the eventual runner explicitly enables them.

2
$0.025 USDC · separate authorization

Code metrics

Measure the generated Python module without executing or forwarding it.

POSThttps://apiacre.com/v1/developer/code-metrics

Input template

{
  "code": "$step1.result.data.source",
  "language": "python"
}
Use this result

Require result.data.source.sha256 to equal step 1's sourceSha256, require valid syntax, and inspect reviewSignals before retaining the module.

You stay in control. Each step is an independent API call. Inspect its HTTP 402 challenge, authorize no more than the displayed price, verify the result, and continue only when the output is suitable. The listed total is not a bundle charge.