See It in Action

Get started in minutes with any of the three projects.

# Point any HTTP client at the gateway instead of the provider
curl http://localhost:7680/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -H "X-Majordomo-Key: your-majordomo-key" \
  -H "X-Majordomo-App-Name: my-app" \
  -H "X-Majordomo-User-Id: user-123" \
  -d '{
    "model": "gpt-4o",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

# Response includes cost headers:
# X-Majordomo-Input-Cost: 0.000125
# X-Majordomo-Output-Cost: 0.000250
# X-Majordomo-Total-Cost: 0.000375