← Back to marketplace

X Pay

external

Pay-per-request utility APIs powered by x402 using USDC on Base.

by Api-xpay21 endpoints100% uptime933ms avg

Price

from $0.0050

up to $20.00 per request

Network

base

Category

other

On-chain txns

1,477

Uptime

100%

Avg latency

933ms

Checks

81

Status

Healthy

Base URL

https://www.api-xpay.com

Endpoints (21)

Discovered from on-chain x402 payment activity. Prices shown are per-call in USDC.

POST/x402/base64
base$0.0050

Encode or decode Base64 text

POST/x402/classify
base$20.00

AI topic classification of text

POST/x402/echo
base$0.0050

Echo a JSON message back

POST/x402/hash
base$0.0050

Compute a SHA-256 hash of text

POST/x402/ip
base$0.0050

Return the requester IP address

POST/x402/keccak
base$0.0050

Compute a Keccak-256 hash of text

POST/x402/keywords
base$10.00

AI keyword extraction from text

POST/x402/network
base$0.0050

Base network and USDC payment metadata

POST/x402/outline
base$20.00

AI outline generated from text

POST/x402/payment
base$0.0050

Payment receipt with transaction details

POST/x402/ping
base$0.0050

Health check ping

POST/x402/quote
base$0.0050

Payment quote with amount, asset, and merchant wallet

POST/x402/random
base$0.0050

Generate a random integer and hex bytes

POST/x402/rewrite
base$10.00

AI rewrite of input text

POST/x402/sentiment
base$10.00

AI sentiment analysis of text

POST/x402/slug
base$0.0050

Convert text into a URL-safe slug

POST/x402/status
base$0.0050

Service status and payment configuration

POST/x402/summarize
base$0.0100

AI text summarization

POST/x402/time
base$0.0050

Current server time in UTC

POST/x402/uuid
base$0.0050

Generate a random UUID v4

POST/x402/wordcount
base$0.0050

Count words, characters, and lines in text

Payment

Protocolx402 (direct payment, USDC)
Networkbase

How to call

Via APIHub (recommended)No wallet · pay with credits · gasless
# one-time setup
npx @apihubio/cli register
npx @apihubio/cli topup 10

# call it
npx @apihubio/cli call https://www.api-xpay.com \
  -X POST \
  -d '{ /* check provider docs for input */ }'

# or save it to Claude/Cursor/Codex
npx @apihubio/cli install
npx @apihubio/cli add https://www.api-xpay.com
APIHub pays the provider on your behalf and debits your credit balance for the exact amount. No wallet setup, no gas, no per-call signing.
Via direct x402 (advanced)Bring your own wallet
import { wrapFetchWithPayment } from "@x402/fetch";
import { createWalletClient, http } from "viem";
import { privateKeyToAccount } from "viem/accounts";
import { base } from "viem/chains";

const account = privateKeyToAccount("0xYOUR_PRIVATE_KEY");
const client = createWalletClient({ account, chain: base, transport: http() });
const x402Fetch = wrapFetchWithPayment(client);

const res = await x402Fetch("https://www.api-xpay.com", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({ /* check provider docs for input */ }),
});
const data = await res.json();
Requires USDC on Base and gas on each call. The @x402/fetch client signs EIP-3009 transferWithAuthorization for each 402 response and retries.

This is an external service not operated by APIHub. Listing data is sourced from public on-chain records and third-party indexes. Payment goes directly to the service provider via the x402 protocol. APIHub does not guarantee availability, accuracy, or quality of external services.