Add monetization to your AI app with a few lines of code
$ pip install promptbidfrom promptbid import PromptBid
pb = PromptBid(api_key="your_api_key")ad = pb.get_ad(
context="User is asking about running shoes for marathon training",
format="native",
placement="inline"
)
if ad:
print(f"Sponsored: {ad.headline}")
print(ad.body)
pb.track_impression(ad.id)Test your integration in sandbox mode first using your sandbox API key. Once verified, switch to your production key and deploy.
$ npm install @promptbid/sdkimport { PromptBid } from '@promptbid/sdk';
const pb = new PromptBid({ apiKey: 'your_api_key' });const ad = await pb.getAd({
context: 'User is asking about running shoes for marathon training',
format: 'native',
placement: 'inline'
});
if (ad) {
console.log(`Sponsored: ${ad.headline}`);
console.log(ad.body);
pb.trackImpression(ad.id);
}Test your integration in sandbox mode first using your sandbox API key. Once verified, switch to your production key and deploy.
PromptBid processes your request in three simple steps, completing in under 100 milliseconds.
Your app sends the conversation context and placement details to PromptBid.
PromptBid runs a real-time auction among matching advertisers competing for the placement.
The winning ad is returned to your app for display, all in less than 100 milliseconds.
Get your API keys and start earning revenue today.