Quick Start Guide

Get your API key and make your first request in under 30 seconds.

STEP 1

Get Your API Key

Click the "Get API Key" button in the top navigation, or click the button below:

Get API Key →

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.

STEP 2

Make Your First API Call

Use curl or any HTTP client to call our endpoints. Always include your API key in the x-api-key header.

Example: Get LLM Pricing

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
}
STEP 3

Explore Other Endpoints

AgentLayer provides 5 intelligence endpoints:

Example: Model Benchmarks

curl https://agentlayer-api.agentlayer.workers.dev/v1/model-benchmarks \
  -H "x-api-key: YOUR_API_KEY"
STEP 4

Integrate via MCP (Optional)

AgentLayer is MCP-native. Connect directly to AI agents like Claude, Cursor, or Windsurf.

Claude MCP Configuration

{
  "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.

✅ You're all set! Start making API calls and integrate real-time AI operations intelligence into your workflow. Need help? Contact us at support@agentlayer.site.