-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathx402-micropayments.json
More file actions
83 lines (83 loc) · 3.03 KB
/
x402-micropayments.json
File metadata and controls
83 lines (83 loc) · 3.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
{
"version": "1.2",
"origin": "api.example.com",
"payout_address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F",
"display_name": "Example Intelligence API",
"description": "AI-powered document analysis and image generation API with per-call micropayments via x402. No account required — pay per request with USDC on Base, Arbitrum, or Ethereum.",
"x402": {
"supported": true,
"networks": [
{
"network": "base",
"asset": "USDC",
"contract": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"facilitator": "https://x402.org/facilitator"
},
{
"network": "arbitrum",
"asset": "USDC",
"contract": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
"facilitator": "https://x402.org/facilitator"
},
{
"network": "ethereum",
"asset": "USDC",
"contract": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"facilitator": "https://x402.org/facilitator"
}
],
"recipient": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"
},
"intents": [
{
"name": "analyze_document",
"description": "AI-powered document analysis. Extracts key clauses, identifies risks, and generates a one-paragraph summary. Accepts PDF, DOCX, and plain text URLs.",
"endpoint": "/api/v1/analyze",
"method": "POST",
"parameters": {
"document_url": { "type": "string", "required": true, "description": "URL of the document to analyze" },
"analysis_type": { "type": "string", "required": false, "enum": ["summary", "risk", "full"], "default": "full" }
},
"returns": {
"type": "object",
"description": "Analysis result with summary, risk_flags array, and key_clauses array."
},
"price": {
"amount": 0.50,
"currency": "USDC",
"model": "per_call",
"network": ["base", "arbitrum", "ethereum"]
},
"x402": {
"direct_price": 0.50,
"ticket_price": 0.40,
"description": "Pay $0.50/analysis directly via x402, or $0.40/analysis with a Session Ticket."
}
},
{
"name": "generate_images",
"description": "Generate images from text descriptions. Returns an array of image URLs. Higher count costs proportionally more.",
"endpoint": "/api/v1/generate",
"method": "POST",
"parameters": {
"prompt": { "type": "string", "required": true, "description": "Text description of the image to generate" },
"count": { "type": "integer", "required": false, "default": 1, "description": "Number of images to generate (1-10)" }
},
"price": {
"amount": 0.10,
"currency": "USDC",
"model": "per_unit",
"unit_param": "count",
"network": ["base", "arbitrum", "ethereum"]
},
"x402": {
"direct_price": 0.10,
"ticket_price": 0.08,
"network_pricing": [
{ "network": "ethereum", "direct_price": 0.12, "ticket_price": 0.10 }
]
}
}
],
"bounty": { "type": "cpa", "rate": 0.25, "currency": "USDC" }
}