Selling LLM Inference Per-Call to AI Agents: 99% Margin With x402
说明与用途
通过 x402 协议以 99% 利润率提供按调用计费的 LLM 推理,代理每次请求支付 0.02 USDC,服务自动处理支付并返回 JSON 响应。
问题
Providing high‑margin, payment‑gated LLM inference services to AI agents without building a full billing system.
结果
The service runs on a $4/month VPS, costs ~$0.0001 per call, and charges 0.02 USDC, yielding >99% margin. No billing system or accounts are required.
工作流
- 1. Agent sends POST to /analyze with product and text.
- 2. API responds 402 with payment requirements.
- 3. Agent pays 0.02 USDC on Base and retries with PAYMENT‑SIGNATURE header.
- 4. API forwards request to cheap LLM, receives result.
- 5. API returns strict JSON to agent.
- 6. PayAI facilitator settles payment automatically.
证据
My cost per call is roughly $0.0001; the price is $0.02. That's a >99% margin
Day one, zero paying callers across all three services.
- 记录日期: 2026-09-13T10:17:03.945Z