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
- 1. 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
CODEBLOCK0
Available x402 APIs
| API | Endpoint | Price |
|---|
| Gemini Chat | INLINECODE2 | ~$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
CODEBLOCK1
Response Format
CODEBLOCK2
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
CODEBLOCK3
Contributing
Submit new APIs at https://agentapihub.com (Submit API link in footer).
Built By
GizmoLab (@gizmolab) — gizmolab.io
AgentAPI
一个专为AI代理设计的精选API目录。机器可读。兼容MCP。代理可访问。
网站: https://agentapihub.com
计费API: https://api.agentapihub.com
文档: https://api.agentapihub.com/api/docs
x402 按次付费计费
AgentAPI支持 x402 —— 一种支付协议,允许AI代理在Base链上使用USDC支付API调用。无需API密钥。
工作原理
- 1. 代理调用API端点(例如:/api/gemini/chat/completions)
- 服务器返回 402 Payment Required,包含价格和钱包地址
- 代理在Base链上发送USDC支付
- 代理在请求头中附带支付证明重试
- 服务器验证支付,代理请求,返回响应
示例流程
bash
1. 初始请求返回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}]}
响应:402 Payment Required
{
price: 0.001,
currency: USDC,
chain: base,
recipient: 0xcCb92A101347406ed140b18C4Ed27276844CD9D7,
paymentId: pay_abc123
}
2. 代理在Base链上支付,附带证明重试
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}]}
可用的x402 API
| API | 端点 | 价格 |
|---|
| Gemini Chat | /api/gemini/chat/completions | ~$0.001/次 |
| Gemini Embeddings |
/api/gemini/embeddings | ~$0.0005/次 |
为什么选择x402?
- - 无需API密钥 —— 代理自行配置访问权限
- 按次付费 —— 无订阅,无最低消费
- 加密原生 —— Base链上的USDC(快速、低成本的交易)
- 代理友好 —— 无需人工干预的程序化支付
快速搜索
按类别
| 类别 | API | 示例 |
|---|
| 搜索 | Brave, Serper, Exa, Tavily, Perplexity | 带AI摘要的网页搜索 |
| AI与机器学习 |
OpenAI, Claude, Gemini, Groq, Replicate | LLM推理、图像生成 |
| 通信 | Resend, Twilio, Slack, Discord, Telegram | 电子邮件、短信、消息 |
| 数据库 | Supabase, Pinecone, Qdrant, Neon, Upstash | SQL、向量、KV存储 |
| 支付 | Stripe, Lemon Squeezy, PayPal | 支付处理 |
| 爬取 | Firecrawl, Browserbase, Apify | 网页爬取、自动化 |
| 开发者工具 | GitHub, Vercel, Linear, Sentry | 代码、部署、问题追踪 |
| 生产力 | Notion, Google Calendar, Todoist | 任务、日程安排 |
兼容MCP的API
目录中所有50+个API均兼容MCP。使用 ?mcp=true 进行筛选。
API访问
JSON端点
bash
获取所有API
curl https://agentapihub.com/api/v1/apis
按功能搜索
curl https://agentapihub.com/api/v1/apis?q=send+email&mcp=true
按类别筛选
curl https://agentapihub.com/api/v1/apis?category=ai
响应格式
json
{
id: resend,
name: Resend,
description: 面向开发者的现代电子邮件API,
category: communication,
provider: Resend,
docs: https://resend.com/docs,
auth: api_key,
pricing: freemium,
pricingDetails: 每月3000封免费,之后每月$20,
rateLimit: 10 req/sec,
mcpCompatible: true,
examplePrompt: 使用Resend发送电子邮件通知,
latency: fast,
reliability: 99.9,
tags: [email, transactional, notifications]
}
按类别推荐API
搜索
- - Brave Search - 注重隐私,每月2000次免费
- Exa - 面向AI的神经/语义搜索
- Tavily - 专为AI代理构建
AI与机器学习
- - OpenAI - GPT-4、DALL-E、Whisper
- Anthropic Claude - 推理/编码最佳
- Groq - 最快推理(500+ tok/sec)
通信
- - Resend - 简单电子邮件API,每月3000封免费
- Twilio - 短信/语音,行业标准
- Slack/Discord/Telegram - 团队消息
数据库
- - Supabase - Postgres + 认证 + 存储
- Pinecone/Qdrant - 用于RAG的向量数据库
- Upstash - 无服务器Redis
使用示例
markdown
查找用于发送电子邮件的API
在AgentAPI中搜索email → 返回Resend、SendGrid、Twilio
查找用于RAG的向量数据库
在AgentAPI中搜索vector embeddings → 返回Pinecone、Qdrant、Weaviate
查找快速LLM推理
在AgentAPI中搜索类别ai + 按延迟筛选 → 返回Groq、Gemini Flash
贡献
在 https://agentapihub.com 提交新的API(页脚中的提交API链接)。
构建者
GizmoLab (@gizmolab) — gizmolab.io