LLM Provider Integrations
earnlayer works with any LLM that supports MCP (Model Context Protocol)
Integration Options
SDK Integration
Recommended for React/Next.js applications. Pre-built components and declarative integration.
API Integration
For custom integrations or non-React applications. Test endpoints and get code snippets.
Choose Your Provider
OpenAI
Best for: Production-ready apps with OpenAI's Responses API
- Full MCP support
- Streaming responses
- Multi-turn conversations
Google Gemini
Best for: Cost-effective solutions with Google's latest models
- Native MCP integration
- Fast response times
- Multi-modal capabilities
Other LLMs
Works with: Any MCP-compatible provider
Supported providers include:
- Claude (Anthropic)
- Llama models
- Custom LLM deployments
- Any provider supporting MCP tool calling
Need integration help? Email support@earnlayerai.com or check the NPM package.
What is MCP?
What is MCP?
Model Context Protocol (MCP) is a standard for tool calling in LLMs. earnlayer uses MCP to:
1. Provide Ad Recommendations
MCP provides relevant sponsored ads to your LLM
2. Track Ad Impressions
Track which ads are shown to users
3. Enable Contextual Targeting
Ads match conversation topics automatically
All without changing your existing chat implementation.
Quick Comparison
Quick Comparison
Next Steps
Next Steps
Ready to integrate? Choose your provider above and follow the step-by-step guide.
All providers follow the same three-phase approach:
1
Phase 1A
Add hyperlink ads (5 min)
2
Phase 1B
Production setup (10 min)
3
Phase 2
Display ads (5-10 min)