Need an API key? Sign up free in 30 seconds to start monetizing
Create Account →
Base URL https://promptbiddev.onrender.com/api/v1

API Reference & Documentation

Quick Start — 5 Minutes to Your First Ad

Install the SDK, make a bid request, and display your first ad in three steps.

1 Install the SDK
<script src="https://promptbid.ai/sdk/promptbid.js"></script>

// Or via npm
npm install @promptbid/sdk
2 Initialize & request an ad
const pb = PromptBid.init({
   apiKey: 'your_builder_key',
   sandbox: true
 });

 const ad = await pb.getAds({
   context: 'hotels in Tokyo',
   format: 'native'
 });
3 Display & track
// Render the ad in your UI
 showAd(ad.creative);

 // Track clicks (earnings auto-recorded)
 ad.on('click', () => {
   pb.recordClick(ad.id);
 });

 // Check your earnings
 const stats = await pb.earnings();
Get Your API Key →