Build an AI Bio Writer with AI Pass SDK
A bio writer is one of the simplest and most useful AI tools you can build. Here's how to create one using the AI Pass SDK that generates platform-specific bios with multiple tone options.
What You'll Build
A tool where users enter their info, pick a platform and tone, and get 3 unique bio options — each respecting the platform's character limit.
Prerequisites
- Create an AI Pass account at aipass.one
- Verify your email (required for payouts)
- Create an OAuth2 Client from Developer Dashboard → OAuth2 Clients
- Copy your Client ID — looks like
client_XXXX(NOT your app slug!)
The Code
Initialize SDK
<script src="https://aipass.one/aipass-sdk.js"></script>
<script>
AiPass.initialize({
clientId: 'YOUR_CLIENT_ID', // from Developer Dashboard → OAuth2 Clients
requireLogin: true,
darkMode: true
});
</script>
Generate Bios
async function generateBios(name, about, platform, tone) {
const charLimits = {
linkedin: 220, instagram: 150, twitter: 160,
tiktok: 80, github: 200, personal: 300
};
const limit = charLimits[platform];
const r = await AiPass.generateCompletion({
model: 'openai/gpt-4.1-mini',
messages: [
{
role: 'system',
content: `Generate 3 different ${tone} bios for ${platform}. Each under ${limit} characters. Use emojis where appropriate. Return exactly 3 bios separated by ---`
},
{ role: 'user', content: `Name: ${name}\nAbout: ${about}` }
]
});
const text = r.choices[0].message.content;
return text.split('---').map(b => b.trim()).filter(b => b);
}
Display & Copy
Render each bio as a card with character count and a copy button. Show all 3 options so users can pick their favorite.
Deploy Your App
Option A: Self-Host — Host the HTML file on your own server, GitHub Pages, Netlify, Vercel, or anywhere you want. The SDK handles all AI Pass authentication and billing. Your app, your domain, your rules.
Option B: Publish on AI Pass — Submit to the AI Pass catalog at aipass.one/apps. Get a dedicated page, discoverability, and use the embed feature (</> button) to iframe it into any website.
Revenue
Your users pay per generation (cents each). You earn 50% commission on every API call. No keys to manage, no billing to build.
See the live bio writer for the finished product. Full SDK at aipass.one/aipass-sdk.js.