Background Removal for AI Agents

Your agent calls the API, pays $0.05 USDC on Base, and gets the result. No login, no session, no human in the loop.

100% Private
AI-Powered
No Upload Required

AI agents need to manipulate images as part of their workflows. Traditional APIs require OAuth, API keys, and subscription setup — barriers that break autonomous operation. The Clear Canvas x402 API eliminates all of that: any agent with a funded Base wallet can remove image backgrounds in a single HTTP round-trip, paying per image on-chain with no prior registration.

Why Use Clear Canvas

  • No API key or account — just a wallet on Base mainnet (or Sepolia for testing)
  • Deterministic pricing — always $0.05 USDC per image, no surprise fees
  • x402 replay protection — each payment nonce is used exactly once
  • Stateless — no sessions or auth tokens for your agent to manage
  • Any language — Python, TypeScript, Go, Rust, or anything that speaks HTTP
  • Testnet available — test on Base Sepolia before spending real USDC

How It Works

  1. 1

    Fund a Base wallet with USDC

    Your agent needs an EOA wallet on Base mainnet with enough USDC to pay for images. Use the Coinbase SDK or any wallet library to create and fund one.

  2. 2

    POST your image — receive HTTP 402

    Send a raw PNG, JPEG, or WebP as the request body. The API returns HTTP 402 with structured payment details — amount, asset, network, and facilitator URL.

  3. 3

    Sign and submit the USDC payment

    Use the Coinbase x402 SDK to sign a USDC transfer for $0.05 and encode it as a base64 X-PAYMENT header. The payment is cryptographically bound to this specific request.

  4. 4

    Resend with X-PAYMENT — receive transparent image

    Resend the identical POST with the X-PAYMENT header attached. On successful payment verification, the API returns the background-removed image as PNG or WebP.

Frequently Asked Questions

Ready to Get Started?

No sign-up needed. Your images stay on your device.