# Pay-per-result APIs for autonomous agents.

> Delx publishes x402-compatible APIs for agents that need a machine result with explicit pricing, schemas and delivery boundaries. A caller receives an HTTP 402 challenge, pays the declared USDC amount on Base and retries the same request with proof of payment.

Replace separate subscriptions and vendor onboarding with a governed purchase path that an autonomous agent can inspect before spending.

## Best for

- Agents that purchase occasional capabilities instead of maintaining subscriptions
- Workflows that must inspect price and schema before authorization
- Teams that need attribution and a reproducible delivery trail

## Live capabilities

- **Website content extraction — 0.01 USDC:** Clean readable text or a structured site report from a caller-supplied public URL. https://commerce.delx.ai/packs/extract-website-content.json
- **Agent micro-utilities — from 0.001 USDC:** DNS, QR, FX reference data and image generation grouped in a portable discovery pack. https://commerce.delx.ai/packs/agent-micro-utils.json
- **Speech generation — 0.001 USDC:** OpenAI-shaped input compatibility with a durable WAV delivery URL and SHA-256 in the result contract. https://api.delx.ai/openapi.x402.json

## Execution path

1. **Discover:** Resolve the intent router, a job pack or the complete paid OpenAPI document.
2. **Authorize:** Validate the exact price, network, input schema and maximum amount before payment.
3. **Execute:** Read the 402 challenge, pay the declared amount and retry the unchanged request.
4. **Verify:** Retain the response, attribution source and service-specific delivery evidence.

## Example

```bash
npx agentcash@latest fetch \
  https://api.delx.ai/api/v1/x402/page-extract \
  -m POST \
  -H 'content-type: application/json' \
  -H 'x-delx-source: delx-ai-x402-page' \
  --payment-network base --max-amount 0.01 \
  -b '{"url":"https://example.com","timeout":8}'
```

## Evidence

- Prices shown here are linked to the canonical machine documents that own them.
- The discovery path returns exact endpoints and ready-to-run bounded payment commands.
- Media delivery contracts can expose durable artifact URLs, byte counts and SHA-256 values.

## Boundaries

- A listed price applies only to the linked operation and can change at its canonical source.
- A discovery pack is navigation, not a bundle purchase or a claim that every capability is equivalent.
- Delx does not substitute an unrelated paid product when the intent router has no matching offer.

Canonical page: https://delx.ai/solutions/x402-pay-per-result-apis
Machine record: https://delx.ai/solutions/x402-pay-per-result-apis/record.json
