AI Gateway - Pay for AI inference with Machine Payments
Cloudflare AI Gateway launched a beta feature called Machine Payments, enabling users to pay for eligible model inference via stablecoin wallets using the x402 protocol.
原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。
为什么值得关注
Cloudflare has introduced Machine Payments in beta for AI Gateway, allowing inference requests to be paid directly from a stablecoin wallet using the x402 protocol instead of drawing from prepaid credit balances. This feature is currently limited to the '/ai/run' endpoint across select open models (such as z-ai/glm-4.7-flash). To utilize x402, clients send requests with a Cloudflare API token and a 'Payment-Method: x402' header. An x402-compatible client then handles the resulting payment challenge by signing an authorization from the wallet and retrying the request. Access is currently restricted to US-based customers who also have a credit card on file.
可执行摘要
AI Gateway beta supports the x402 protocol for machine-to-machine payments via stablecoin wallets on the /ai/run endpoint. Requests require an x402-compatible client, a Cloudflare API token, the 'Payment-Method: x402' header, a credit card on file, and US residency.
- Agent 实用度
- 80/100
- 可信度
- 90%
- 机器格式
- JSON + Markdown
开发者应核对什么
- Verify US residency eligibility and ensure a credit card is on file with Cloudflare.
- Implement or configure an x402-compatible client capable of signing wallet authorizations in response to payment challenges.
- Include the 'Payment-Method: x402' header and a valid Bearer token when making calls to the '/ai/run' endpoint.
- Review Cloudflare documentation to confirm the list of eligible open models supported by Machine Payments.