Introduction

Payments API#

What is the OKX Payment API?#

OKX Payment API is a Web3 payment solution built on the x402 protocol — an open standard designed around the HTTP 402 status code. It provides developer-friendly APIs and SDKs for pay-per-use billing, with payment settlement completed onchain.

Why OKX Payment API?#

  • Simple and frictionless: Built on HTTP. No registration or OAuth required — pay directly via API using tokens.
  • Instant and low-cost: A native internet payment protocol with a streamlined, standardized flow and fewer intermediaries.
  • AI-ready: Supports pay-per-use billing, ideal for real-time AI calls and high-frequency microtransactions.
  • Open standard: Compatible with major blockchains. Easy to integrate and extend.

Key Services#

  • Gas Subsidy: Transfer and spend USDT and USDC on X Layer with zero gas fees.
  • Multi-Chain Support: Currently supports X Layer, with more chains coming soon.
  • Multiple Stablecoins: Currently supports USDG, USDC and USDT.
  • Compliance and Security: Built-in KYT (Know Your Transaction) for onchain risk detection.

Working principle#