Getting Started

New to Metrx? This guide will have you tracking AI costs in under 5 minutes.

1. Get an API Key

Sign up at app.metrxbot.com and generate an API key from your organization settings. Your API key grants access to the Gateway.

2. Choose Your Integration Method

The Gateway is a drop-in replacement for your existing LLM API calls. Route through Metrx with minimal code changes:

# Instead of calling OpenAI directly:
curl https://api.openai.com/v1/chat/completions \
  -H "Authorization: Bearer sk_openai_xxxx" \
  ...
 
# Route through Metrx:
curl https://gateway.metrxbot.com/v1/chat/completions \
  -H "Authorization: Bearer al_xxxx" \
  -H "X-Provider-Key: sk_openai_xxxx" \
  ...

What changes:

  • URL: api.openai.comgateway.metrxbot.com
  • Auth: Your OpenAI key moves to X-Provider-Key
  • New Authorization header with your Metrx API key

3. Track Costs and Outcomes

Once integrated, costs are automatically calculated and tracked. Log into your dashboard at app.metrxbot.com to see:

  • Real-time cost tracking
  • Call counts by model
  • Performance metrics (latency, error rates)
  • Usage vs. plan limit

4. Next Steps

Read the Integration Guide

The Integration Guide has detailed examples for Node.js, Python, streaming, webhooks, and migration from direct API calls.

Explore the API Reference

The API Reference documents every endpoint, header, and error code.

Understand the Architecture

The Architecture page explains how the Gateway, Workers, and Database fit together.

Pricing Tiers

TierMonthly CallsPriceBest For
Starter1,000FreeEvaluation & testing
Lite10,000$29/moSmall teams
Pro100,000$99/moGrowing teams
Business1,000,000$499/moEnterprise deployments
EnterpriseUnlimitedCustomCustom SLAs & support

All tiers include real-time cost tracking, outcome management, team management, and webhook support.