# x402 Agent Suite Pro — Payment Intent Compiler

> x402 Agent Suite Pro — Payment Intent Compiler is a paid API for AI agents from x402-agent-suite-production.up.railway.app, paid per call via x402, $0.15/call, status unknown (last checked 2026-09-14).

Compiles a multi-step x402 payment plan for a given HTTP request type, estimating total USDC costs and generating an ordered execution pipeline for AI agent fleet operations.

## Facts

- Endpoint: POST https://x402-agent-suite-production.up.railway.app/api/payment-intent/compile
- Price: $0.15/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-agent-suite-pro-payment-intent-compiler-389a553f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_B45tGQsJFRlXY94M7d_pN

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x402-agent-suite-pro-payment-intent-compiler-389a553f -d '<json body>'
```

Example prompt: Before my agent fleet runs a GET request through the x402 suite, compile me a payment intent plan so I can see the step-by-step USDC cost breakdown and execution order, and confirm it fits within my $5 max budget.

## When to prefer this

Use this endpoint when an AI agent needs to pre-plan and cost-estimate a sequence of x402 micropayment API calls before committing any USDC — especially useful for budget-gated pipelines, fleet orchestration, or any workflow where step ordering and total cost must be validated before execution begins. Prefer this over direct execution endpoints when auditability, budget compliance, or pipeline sequencing is required.

## Known failure modes

- Missing required 'input' object returns validation error
- Invalid HTTP method (e.g. POST/PUT not in allowed enum) returns schema rejection
- Budget exceeded flag (withinBudget: false) when estimated cost surpasses maxBudgetUsdc
- x402 payment settlement failure returns 402 status before plan is returned
- Malformed queryParams structure causes request rejection
- Service unavailability on Railway deployment returns 5xx

## How this service works

24 paid x402 infrastructure APIs for AI agent fleets: buy advisor, audition coach, guard, proxy, MPP, attestations, and pipeline orchestration.

## Output

Returns a JSON object with: ok/allowed booleans indicating plan validity and budget compliance, a human-readable summary and planSummary, an array of numbered steps with path, priceUsdc, and purpose for each, a recommended first step, execution order array, total estimated USDC, current endpoint cost, max budget, and the suite base URL.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "ok",
      "status",
      "allowed",
      "summary",
      "withinBudget",
      "totalEstimatedUsdc",
      "maxBudgetUsdc",
      "currentEndpointCostUsdc",
      "recommendedFirstStep",
      "planSummary",
      "steps",
      "executionOrder",
      "suiteBaseUrl"
     ],
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "steps": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "step",
         "path",
         "priceUsdc",
         "purpose"
        ],
        "properties": {
         "path": {
          "type": "string"
         },
         "step": {
          "type": "number"
         },
         "purpose": {
          "type": "string"
         },
         "priceUsdc": {
          "type": "number"
         }
        }
       }
      },
      "status": {
       "type": "string"
      },
      "allowed": {
       "type": "boolean"
      },
      "summary": {
       "type": "string"
      },
      "planSummary": {
       "type": "string"
      },
      "suiteBaseUrl": {
       "type": "string"
      },
      "withinBudget": {
       "type": "boolean"
      },
      "maxBudgetUsdc": {
       "type": "number"
      },
      "executionOrder": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "totalEstimatedUsdc": {
       "type": "number"
      },
      "recommendedFirstStep": {
       "type": "string"
      },
      "currentEndpointCostUsdc": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "allowed": true,
  "summary": "Paid response after x402 settlement"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-agent-suite-pro-payment-intent-compiler-389a553f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-agent-suite-production.up.railway.app](https://www.zero.xyz/host/x402-agent-suite-production.up.railway.app/llms.txt)
