# apivend > apivend puts a price on any HTTP API route. People and AI agents pay per request in USDC over x402, the HTTP 402 Payment Required protocol: no account, no API key, and the money goes from the caller's wallet straight to the API owner's. The gateway is open source (Apache 2.0) and runs on Envoy Gateway and Kubernetes. How a payment works: an unpaid request gets `402 Payment Required` with a `PAYMENT-REQUIRED` header naming the amount, token, network and wallet to pay. The caller signs a USDC authorization (EIP-3009) for exactly that amount and sends the request again. The gateway checks the signature, the balance and that the authorization is new, then lets the request through. It settles on chain only when the API answered with a 2xx. - Networks: Base and Base Sepolia, in USDC. - Clients: any x402 client. Tested with the x402 Foundation's TypeScript (`@x402/fetch`), Python (`x402`) and Go clients. - Settlement: through the leading x402 facilitators, moving to the next when one is unavailable. - Safety: each authorization is used once across all replicas; when the chain, the state store or verification is unavailable, priced requests are refused rather than served for free; payments go from the caller's wallet straight to the owner's, and nothing in between holds them or can send them anywhere else. - Two ways to run it: self-hosted from the open-source repository, or hosted by apivend in the console (https://console.apivend.dev; free during the launch period). - Demo: https://demo.apivend.dev, real priced APIs, the client code to call them, and every payment settling on chain. ## Security - [Security](https://apivend.io/security): payments go straight from buyer to seller and apivend never holds funds; requests are refused when a payment cannot be verified; every change is tested end to end and runs on staging before production; a security review of the codebase is part of every release; the service is observed around the clock with alerting, backed up nightly off site, with disaster recovery by rebuilding from source control; the payment-checking gateway is open source. Report vulnerabilities through the repository's private reporting. ## Open source - [apivend on GitHub](https://github.com/apivend-io/apivend): the gateway (an Envoy ext_proc filter, a settler, a Kubernetes controller and a Helm chart). Go module `apivend.io/apivend`. - [Install](https://github.com/apivend-io/apivend/blob/main/docs/install.md): Envoy Gateway, the Helm chart, and a first priced route. - [Architecture](https://github.com/apivend-io/apivend/blob/main/docs/architecture.md): how a request is priced, verified, served and settled. - [Status](https://github.com/apivend-io/apivend/blob/main/docs/status.md): what has been tested, and against what. - [Security policy](https://github.com/apivend-io/apivend/blob/main/SECURITY.md) ## Policies - [Privacy policy](https://apivend.io/privacy) - [Terms of use](https://apivend.io/terms) ## Optional - [Full text of apivend.io](https://apivend.io/llms-full.txt) - [x402 protocol](https://www.x402.org) - Contact: hello@apivend.io