Overview
Adtext is a contextual ad network built for LLM-powered apps — chatbots, AI search engines, coding assistants, and any product where the context is a conversation rather than a webpage. Install the SDK, push conversation turns, and earn revenue from ads that are genuinely relevant to what the user is discussing.
Conversation-aware
Ads are targeted from the live conversation context — not cookies or browsing history.
Privacy-first
Raw text is discarded after enrichment. Only enriched metadata (topics, intent) is stored.
One SDK, any stack
JavaScript / Node.js and Python today. Java, Kotlin, Swift coming soon.
Available SDKs
JavaScript / Node.js
stablenpm install @adtext/sdk
Python
stablepip install adtext-sdk
Java
stableai.adtext:sdk:1.0.0
Kotlin / Android
previewVia Java SDK
Swift / iOS
plannedOpenAPI generator
Flutter
plannedComing soon
How it works
1
Create an API key — Sign up and generate an API key from your publisher dashboard.
2
Install the SDK — Add the SDK to your app with npm or pip.
3
Open a context session — Call createContextSession() at the start of each conversation.
4
Push turns — Call pushTurn() after each user and assistant message.
5
Fetch an ad — Call getAd() whenever you want to show an ad. The server uses the enriched conversation context to pick the best one.