Valta Docs

x402 Payments

Coming Q4 2026. Not available in beta.

What is x402?

x402 is an open protocol built on the HTTP 402 status code — a code that has existed since 1991 but was never widely used. With x402, when an agent calls an external API that requires payment, the API returns a 402 response with a payment request. The agent pays automatically in USDC from its Valta wallet and retries the request.

No accounts. No subscriptions. Pay per call.

Preview

ts
const agent = await valta.agents.create({
  name: 'Research Agent',
  // x402 config inside policy:
  policy: {
    x402: {
      enabled: true,
      maxPerCall: 0.10,       // never pay more than $0.10 per x402 call
      dailyLimit: 5.00,        // max $5/day on x402 calls total
      approvedDomains: ['api.perplexity.ai', 'api.serper.dev'],
    },
  },
})
// Payment is automatic. No changes to agent logic needed.
// Everything appears in the audit trail.

Three modes

Outbound — your agents pay external x402 APIs. Your agent calls an API, gets a 402 with a payment request, Valta validates the policy, debits the agent's wallet, and retries automatically. No vendor accounts needed.

Inbound — other agents pay your Valta agents. Publish an agent to the marketplace. External systems call it, receive a 402, pay in USDC, and your agent executes. Your wallet receives revenue per invocation.

Internal — agent-to-agent within Valta. Valta agents hire each other over x402, with settlement inside the governance graph. See Agent-to-Agent Hiring.