Get your API key and make your first request in under 30 seconds.
Click the "Get API Key" button in the top navigation, or click the button below:
Choose a plan (Starter $99/mo recommended to start). After checkout, you'll receive your API key via email and it will be visible in your dashboard.
💡 Tip: Your API key looks like al_live_... and is valid for 30 days.
Use curl or any HTTP client to call our endpoints. Always include your API key in the x-api-key header.
curl https://agentlayer-api.agentlayer.workers.dev/v1/llm-costs \
-H "x-api-key: YOUR_API_KEY"
You'll receive a JSON response with real-time pricing from 8+ LLM providers:
{
"data": [
{
"provider": "Anthropic",
"model_id": "claude-sonnet-4-6",
"input_price_per_1m_tokens": 3.00,
"output_price_per_1m_tokens": 15.00
},
{
"provider": "OpenAI",
"model_id": "gpt-4o",
"input_price_per_1m_tokens": 2.50,
"output_price_per_1m_tokens": 10.00
}
],
"count": 8
}
AgentLayer provides 5 intelligence endpoints:
curl https://agentlayer-api.agentlayer.workers.dev/v1/model-benchmarks \
-H "x-api-key: YOUR_API_KEY"
AgentLayer is MCP-native. Connect directly to AI agents like Claude, Cursor, or Windsurf.
{
"mcpServers": {
"agentlayer": {
"command": "npx",
"args": ["-y", "@agentlayer/mcp-server"],
"env": {
"AGENTLAYER_API_KEY": "YOUR_API_KEY"
}
}
}
}
💡 Tip: After configuring MCP, ask Claude: "What's the current price of GPT-4o?" and it will fetch real-time data from AgentLayer.