Vexrail LogoVexrail
Developer First

Integrate Vexrail in Minutes.

Our lightweight, open-source SDKs drop into your existing AI stack. No complex setup, no heavy dependencies.

Python
Python SDK - Vexrail Integration
Node.js
Node.js SDK - Vexrail Integration
REST API
REST API - Vexrail Integration
React
React SDK - Vexrail Integration
Go
Go SDK - Vexrail Integration

Simple 3-Step Setup

Start collecting insights and monetizing in under 10 minutes.

1

Install the SDK

Add the package to your project using your preferred package manager.

2

Initialize Client

Configure the client with your API key from the dashboard.

3

Log Prompt & Response

Wrap your AI calls to capture intent and receive optional ad injections.

Why developers love Vexrail
Non-blocking, async event logging
< 50ms latency for ad suggestions
Fully typed (TypeScript & Python)
main.py
# 1. Install
# pip install vexrail-sdk

import os
from vexrail import Vexrail

# 2. Initialize
vex = Vexrail(api_key=os.getenv("VEXRAIL_API_KEY"))

# 3. Log Prompt & Get Ad (Optional)
def chat_handler(user_prompt):
    # Log prompt and check for monetization
    context = vex.log_prompt(
        text=user_prompt,
        user_id="user_123"
    )
    
    # Get your AI response
    ai_response = my_llm.generate(user_prompt)
    
    # Inject ad if available
    if context.ad_suggestion:
        ai_response += f"\n\n(Sponsored: {context.ad_suggestion.text})"
    
    # Log outcome
    vex.log_response(text=ai_response)
    
    return ai_response

Ready to build?