All posts
tutorial

Build an AI Speech Writer with the AI Pass SDK

Tutorial: build an AI speech writer with the AI Pass SDK. Handle auth, billing, AI calls — earn 50% commission.

EiliyaFebruary 14, 20261 min read

Build an AI Speech Writer with the AI Pass SDK

Add AI speechwriting to your app or website. The AI Pass SDK handles authentication, billing, and AI — you build the interface.

Setup

1. Client ID

aipass.oneDeveloper DashboardOAuth2 Clients → Create → Copy client_id

2. SDK

<script src="https://aipass.one/aipass-sdk.js"></script>
<script>
AiPass.initialize({
  clientId: 'YOUR_CLIENT_ID',
  appSlug: 'your-app',
  requireLogin: true,
  darkMode: true
});
</script>

3. Generate Speeches

const r = await AiPass.generateCompletion({
  model: 'gpt-5-mini',
  messages: [
    {
      role: 'system',
      content: 'You are an expert speechwriter. Write a wedding toast that is heartfelt and emotional. Target: 2 minutes (~300 words). Include natural pauses. Output ONLY the speech.'
    },
    {
      role: 'user',
      content: 'Wedding toast for my best friend Jake who is marrying Sarah. We met in college, he is the most loyal person I know.'
    }
  ]
});
const speech = r.choices[0].message.content;

4. Deploy & Earn

Host on any platform. Earn 50% commission on every API call your users make. The SDK manages everything — auth, billing, token refresh.

Start building →

Related apps