Build an AI Caption Generator with AI Pass SDK
What You Will Build
A caption generator where users authenticate via AI Pass — no custom auth needed.
Step 1: Create an OAuth2 Client
Go to Developer Dashboard → OAuth2 Clients → Create → Copy Client ID.
Step 2: Add the SDK
<script src="https://aipass.one/aipass-sdk.js"></script>
<script>
AiPass.initialize({ clientId: 'YOUR_CLIENT_ID', requireLogin: true });
</script>
Step 3: Generate Captions
const r = await AiPass.generateCompletion({
model: 'gpt-5-mini',
messages: [
{ role: 'system', content: 'You are a viral caption writer.' },
{ role: 'user', content: 'Generate 3 witty Instagram captions for: beach sunset' }
]
});
const captions = r.choices[0].message.content;
Revenue
Earn 50% commission on every API call your users make.