Edge AI x402

Pay per request for chat, embeddings, images, and Markdown extraction. x402 v2 on Solana Mainnet only: USDC and USDT via PayAI and Dexter.

Per-request prices

OperationUSD
POST /v1/chat/completions$0.001
POST /v1/embeddings$0.001
POST /v1/images/generate$0.005
POST /v1/web/extract$0.002

Supports public HTTP/HTTPS URLs; IP literals, non-standard ports, loopback, and private/internal hosts are blocked. See the free sample.

Quick start

curl -i -X POST https://edge-ai-x402.nguyenthanhnam-pye.workers.dev/v1/chat/completions

Decode the PAYMENT-REQUIRED header and use an x402 client to sign the Solana payment. For a remote MCP client, add https://edge-ai-x402.nguyenthanhnam-pye.workers.dev/mcp as a Streamable HTTP server.

Key packs

To redeem a key pack, the transfer must carry the product-specific on-chain memo and redemption requires a signature from the payer wallet. A transaction signature alone is not sufficient. Do not send a bare transfer.

Prepare a Solana Pay transfer (then redeem manually)

Only use these links if your wallet supports Solana Mainnet and can sign the separate payer proof. The links only prepare a transfer; they don’t issue a key. Follow the redemption instructions and redeem within 24 hours of payment.