AgentAPI
A curated directory of APIs designed for AI agents. Machine-readable. MCP-compatible. Agent-accessible.
Website: https://agentapihub.com
Billing API: https://api.agentapihub.com
Docs: https://api.agentapihub.com/api/docs
x402 Pay-Per-Use Billing
AgentAPI supports x402 — a payment protocol that lets AI agents pay for API calls with USDC on Base. No API keys required.
How It Works
- Agent calls API endpoint (e.g.,
/api/gemini/chat/completions)
- Server returns
402 Payment Required with price + wallet address
- Agent sends USDC payment on Base chain
- Agent retries with payment proof in header
- Server verifies payment, proxies request, returns response
Example Flow
# 1. Initial request returns 402
curl https://api.agentapihub.com/api/gemini/chat/completions \
-H "Content-Type: application/json" \
-d '{"model":"gemini-2.0-flash","messages":[{"role":"user","content":"Hello"}]}'
# Response: 402 Payment Required
# {
# "price": "0.001",
# "currency": "USDC",
# "chain": "base",
# "recipient": "0xcCb92A101347406ed140b18C4Ed27276844CD9D7",
# "paymentId": "pay_abc123"
# }
# 2. Agent pays on Base, retries with proof
curl https://api.agentapihub.com/api/gemini/chat/completions \
-H "Content-Type: application/json" \
-H "X-Payment-Proof: 0x..." \
-d '{"model":"gemini-2.0-flash","messages":[{"role":"user","content":"Hello"}]}'
Available x402 APIs
| API |
Endpoint |
Price |
| Gemini Chat |
/api/gemini/chat/completions |
~$0.001/req |
| Gemini Embeddings |
/api/gemini/embeddings |
~$0.0005/req |
Why x402?
- No API keys — Agents self-provision access
- Pay-per-use — No subscriptions, no minimums
- Crypto-native — USDC on Base (fast, cheap txns)
- Agent-friendly — Programmatic payments without human bottleneck
Quick Search
By Category
| Category |
APIs |
Example |
| Search |
Brave, Serper, Exa, Tavily, Perplexity |
Web search with AI summaries |
| AI & ML |
OpenAI, Claude, Gemini, Groq, Replicate |
LLM inference, image gen |
| Communication |
Resend, Twilio, Slack, Discord, Telegram |
Email, SMS, messaging |
| Database |
Supabase, Pinecone, Qdrant, Neon, Upstash |
SQL, vectors, KV store |
| Payments |
Stripe, Lemon Squeezy, PayPal |
Payment processing |
| Scraping |
Firecrawl, Browserbase, Apify |
Web scraping, automation |
| Developer |
GitHub, Vercel, Linear, Sentry |
Code, deploy, issues |
| Productivity |
Notion, Google Calendar, Todoist |
Tasks, scheduling |
MCP-Compatible APIs
All 50+ APIs in the directory are MCP-compatible. Filter with ?mcp=true.
API Access
JSON Endpoint
# Fetch all APIs
curl https://agentapihub.com/api/v1/apis
# Search by capability
curl "https://agentapihub.com/api/v1/apis?q=send+email&mcp=true"
# Filter by category
curl "https://agentapihub.com/api/v1/apis?category=ai"
Response Format
{
"id": "resend",
"name": "Resend",
"description": "Modern email API for developers",
"category": "communication",
"provider": "Resend",
"docs": "https://resend.com/docs",
"auth": "api_key",
"pricing": "freemium",
"pricingDetails": "3,000 free/mo, then $20/mo",
"rateLimit": "10 req/sec",
"mcpCompatible": true,
"examplePrompt": "Send an email notification using Resend",
"latency": "fast",
"reliability": 99.9,
"tags": ["email", "transactional", "notifications"]
}
Top APIs by Category
Search
- Brave Search - Privacy-focused, 2k free/mo
- Exa - Neural/semantic search for AI
- Tavily - Built specifically for AI agents
AI & ML
- OpenAI - GPT-4, DALL-E, Whisper
- Anthropic Claude - Best for reasoning/coding
- Groq - Fastest inference (500+ tok/sec)
Communication
- Resend - Simple email API, 3k free/mo
- Twilio - SMS/voice, industry standard
- Slack/Discord/Telegram - Team messaging
Database
- Supabase - Postgres + auth + storage
- Pinecone/Qdrant - Vector DBs for RAG
- Upstash - Serverless Redis
Usage Examples
# Find an API for sending emails
Search AgentAPI for "email" → Returns Resend, SendGrid, Twilio
# Find vector databases for RAG
Search AgentAPI for "vector embeddings" → Returns Pinecone, Qdrant, Weaviate
# Find fast LLM inference
Search AgentAPI for category "ai" + filter by latency → Returns Groq, Gemini Flash
Contributing
Submit new APIs at https://agentapihub.com (Submit API link in footer).
Built By
GizmoLab (@gizmolab_) — gizmolab.io
1---2name: agentapi-23description: Browse and search the AgentAPI directory - a curated database of APIs designed for AI agents. Find MCP-compatible APIs for search, AI, communication, databases, payments, and more. Includes x402 pay-per-use billing with USDC on Base.4---5
6# AgentAPI
7
8A curated directory of APIs designed for AI agents. Machine-readable. MCP-compatible. Agent-accessible.
9
10**Website:** https://agentapihub.com
11**Billing API:** https://api.agentapihub.com
12**Docs:** https://api.agentapihub.com/api/docs
13
14## x402 Pay-Per-Use Billing
15
16AgentAPI supports **x402** — a payment protocol that lets AI agents pay for API calls with USDC on Base. No API keys required.
17
18### How It Works
19
201. Agent calls API endpoint (e.g., `/api/gemini/chat/completions`)
212. Server returns `402 Payment Required` with price + wallet address
223. Agent sends USDC payment on Base chain
234. Agent retries with payment proof in header
245. Server verifies payment, proxies request, returns response
25
26### Example Flow
27
28```bash
29# 1. Initial request returns 402
30curl https://api.agentapihub.com/api/gemini/chat/completions \
31 -H "Content-Type: application/json" \
32 -d '{"model":"gemini-2.0-flash","messages":[{"role":"user","content":"Hello"}]}'
33
34# Response: 402 Payment Required
35# {
36# "price": "0.001",
37# "currency": "USDC",
38# "chain": "base",
39# "recipient": "0xcCb92A101347406ed140b18C4Ed27276844CD9D7",
40# "paymentId": "pay_abc123"
41# }
42
43# 2. Agent pays on Base, retries with proof
44curl https://api.agentapihub.com/api/gemini/chat/completions \
45 -H "Content-Type: application/json" \
46 -H "X-Payment-Proof: 0x..." \
47 -d '{"model":"gemini-2.0-flash","messages":[{"role":"user","content":"Hello"}]}'
48```
49
50### Available x402 APIs
51
52| API | Endpoint | Price |
53|-----|----------|-------|
54| Gemini Chat | `/api/gemini/chat/completions` | ~$0.001/req |
55| Gemini Embeddings | `/api/gemini/embeddings` | ~$0.0005/req |
56
57### Why x402?
58
59- **No API keys** — Agents self-provision access
60- **Pay-per-use** — No subscriptions, no minimums
61- **Crypto-native** — USDC on Base (fast, cheap txns)
62- **Agent-friendly** — Programmatic payments without human bottleneck
63
64## Quick Search
65
66### By Category
67
68| Category | APIs | Example |
69|----------|------|---------|
70| Search | Brave, Serper, Exa, Tavily, Perplexity | Web search with AI summaries |
71| AI & ML | OpenAI, Claude, Gemini, Groq, Replicate | LLM inference, image gen |
72| Communication | Resend, Twilio, Slack, Discord, Telegram | Email, SMS, messaging |
73| Database | Supabase, Pinecone, Qdrant, Neon, Upstash | SQL, vectors, KV store |
74| Payments | Stripe, Lemon Squeezy, PayPal | Payment processing |
75| Scraping | Firecrawl, Browserbase, Apify | Web scraping, automation |
76| Developer | GitHub, Vercel, Linear, Sentry | Code, deploy, issues |
77| Productivity | Notion, Google Calendar, Todoist | Tasks, scheduling |
78
79### MCP-Compatible APIs
80
81All 50+ APIs in the directory are MCP-compatible. Filter with `?mcp=true`.
82
83## API Access
84
85### JSON Endpoint
86
87```bash
88# Fetch all APIs
89curl https://agentapihub.com/api/v1/apis
90
91# Search by capability
92curl "https://agentapihub.com/api/v1/apis?q=send+email&mcp=true"
93
94# Filter by category
95curl "https://agentapihub.com/api/v1/apis?category=ai"
96```
97
98### Response Format
99
100```json
101{
102 "id": "resend",
103 "name": "Resend",
104 "description": "Modern email API for developers",
105 "category": "communication",
106 "provider": "Resend",
107 "docs": "https://resend.com/docs",
108 "auth": "api_key",
109 "pricing": "freemium",
110 "pricingDetails": "3,000 free/mo, then $20/mo",
111 "rateLimit": "10 req/sec",
112 "mcpCompatible": true,
113 "examplePrompt": "Send an email notification using Resend",
114 "latency": "fast",
115 "reliability": 99.9,
116 "tags": ["email", "transactional", "notifications"]
117}
118```
119
120## Top APIs by Category
121
122### Search
123- **Brave Search** - Privacy-focused, 2k free/mo
124- **Exa** - Neural/semantic search for AI
125- **Tavily** - Built specifically for AI agents
126
127### AI & ML
128- **OpenAI** - GPT-4, DALL-E, Whisper
129- **Anthropic Claude** - Best for reasoning/coding
130- **Groq** - Fastest inference (500+ tok/sec)
131
132### Communication
133- **Resend** - Simple email API, 3k free/mo
134- **Twilio** - SMS/voice, industry standard
135- **Slack/Discord/Telegram** - Team messaging
136
137### Database
138- **Supabase** - Postgres + auth + storage
139- **Pinecone/Qdrant** - Vector DBs for RAG
140- **Upstash** - Serverless Redis
141
142## Usage Examples
143
144```markdown
145# Find an API for sending emails
146Search AgentAPI for "email" → Returns Resend, SendGrid, Twilio
147
148# Find vector databases for RAG
149Search AgentAPI for "vector embeddings" → Returns Pinecone, Qdrant, Weaviate
150
151# Find fast LLM inference
152Search AgentAPI for category "ai" + filter by latency → Returns Groq, Gemini Flash
153```
154
155## Contributing
156
157Submit new APIs at https://agentapihub.com (Submit API link in footer).
158
159## Built By
160
161GizmoLab ([@gizmolab_](https://twitter.com/gizmolab_)) — [gizmolab.io](https://gizmolab.io)