Event-Driven Architecture
The SDK operates on a simple event loop designed to sit alongside your existing AI logic without blocking it.
Log Prompt
Captures the user input, context, and optional metadata. Returns a context object.
Contextual Ad Fetch
In parallel, the SDK queries the Vexrail Ad Server. If a high-value ad matches, it's returned instantly.
Log Response
Captures the AI's completion and whether an ad was shown, closing the loop.
App
Vexrail Cloud
POST /v1/events/prompt
200 OK { ad_suggestion: ... }
POST /v1/events/response
Open Source & Transparent
Our SDKs are open source. You can audit exactly what data is sent and how it's handled. We believe in transparency for developer tools.
Need more control?
Directly access our REST API for custom integrations or batch processing.