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: agentapi3description: 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---56# AgentAPI78A curated directory of APIs designed for AI agents. Machine-readable. MCP-compatible. Agent-accessible.910**Website:** https://agentapihub.com 11**Billing API:** https://api.agentapihub.com 12**Docs:** https://api.agentapihub.com/api/docs1314## x402 Pay-Per-Use Billing1516AgentAPI supports **x402** — a payment protocol that lets AI agents pay for API calls with USDC on Base. No API keys required.1718### How It Works19201. Agent calls API endpoint (e.g., `/api/gemini/chat/completions`)212. Server returns `402 Payment Required` with price + wallet address223. Agent sends USDC payment on Base chain234. Agent retries with payment proof in header245. Server verifies payment, proxies request, returns response2526### Example Flow2728```bash29# 1. Initial request returns 40230curl 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"}]}'3334# Response: 402 Payment Required35# {36# "price": "0.001",37# "currency": "USDC",38# "chain": "base",39# "recipient": "0xcCb92A101347406ed140b18C4Ed27276844CD9D7",40# "paymentId": "pay_abc123"41# }4243# 2. Agent pays on Base, retries with proof44curl 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```4950### Available x402 APIs5152| API | Endpoint | Price |53|-----|----------|-------|54| Gemini Chat | `/api/gemini/chat/completions` | ~$0.001/req |55| Gemini Embeddings | `/api/gemini/embeddings` | ~$0.0005/req |5657### Why x402?5859- **No API keys** — Agents self-provision access60- **Pay-per-use** — No subscriptions, no minimums61- **Crypto-native** — USDC on Base (fast, cheap txns)62- **Agent-friendly** — Programmatic payments without human bottleneck6364## Quick Search6566### By Category6768| 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 |7879### MCP-Compatible APIs8081All 50+ APIs in the directory are MCP-compatible. Filter with `?mcp=true`.8283## API Access8485### JSON Endpoint8687```bash88# Fetch all APIs89curl https://agentapihub.com/api/v1/apis9091# Search by capability92curl "https://agentapihub.com/api/v1/apis?q=send+email&mcp=true"9394# Filter by category95curl "https://agentapihub.com/api/v1/apis?category=ai"96```9798### Response Format99100```json101{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```119120## Top APIs by Category121122### Search123- **Brave Search** - Privacy-focused, 2k free/mo124- **Exa** - Neural/semantic search for AI125- **Tavily** - Built specifically for AI agents126127### AI & ML128- **OpenAI** - GPT-4, DALL-E, Whisper129- **Anthropic Claude** - Best for reasoning/coding130- **Groq** - Fastest inference (500+ tok/sec)131132### Communication133- **Resend** - Simple email API, 3k free/mo134- **Twilio** - SMS/voice, industry standard135- **Slack/Discord/Telegram** - Team messaging136137### Database138- **Supabase** - Postgres + auth + storage139- **Pinecone/Qdrant** - Vector DBs for RAG140- **Upstash** - Serverless Redis141142## Usage Examples143144```markdown145# Find an API for sending emails146Search AgentAPI for "email" → Returns Resend, SendGrid, Twilio147148# Find vector databases for RAG149Search AgentAPI for "vector embeddings" → Returns Pinecone, Qdrant, Weaviate150151# Find fast LLM inference152Search AgentAPI for category "ai" + filter by latency → Returns Groq, Gemini Flash153```154155## Contributing156157Submit new APIs at https://agentapihub.com (Submit API link in footer).158159## Built By160161GizmoLab ([@gizmolab_](https://twitter.com/gizmolab_)) — [gizmolab.io](https://gizmolab.io)