Build an AI Text Humanizer App - Complete SDK Tutorial
Build an AI Text Humanizer App - Complete SDK Tutorial
Create an AI-powered text humanizer app. Users paste AI-generated text and get natural, human-sounding rewrites. Earn 50% commission on every API call.
What You'll Build
A web app that:
- Accepts any text input
- Offers multiple tone options (casual, professional, creative, academic)
- Rewrites text to sound human
- Displays both original and rewritten versions
Prerequisites
- Basic HTML/JavaScript knowledge
- AI Pass account
Step 1: Get Your Client ID
- Go to Developer Dashboard
- Navigate to OAuth2 Clients
- Create a new client
- Copy your Client ID (format:
client_ODyf...)
Step 2: Initialize SDK
<script src="https://aipass.one/aipass-sdk.js"></script>
<script>
const sdk = new AIPassSDK({
clientId: 'YOUR_CLIENT_ID',
requireLogin: true
});
</script>
Step 3: Humanize Text
async function humanizeText(text, tone) {
const tones = {
casual: 'Write in a relaxed, conversational tone. Use contractions, shorter sentences.',
professional: 'Write in a clear, confident professional tone. Direct statements.',
creative: 'Write with personality and flair. Vivid language, unexpected word choices.',
academic: 'Write in a scholarly yet readable academic tone. Precise terminology.'
};
const prompt = `You are an expert editor who transforms AI-generated text into natural human writing. ${tones[tone]} Rewrite this text to sound human. Only return the rewritten text: ${text}`;
const r = await sdk.generateCompletion({
model: 'openai/gpt-4.1-mini',
messages: [{ role: 'user', content: prompt }]
});
return r.choices[0].message.content;
}
Step 4: Build UI
<textarea id="input-text" placeholder="Paste your AI text here..."></textarea>
<select id="tone-select">
<option value="casual">Casual</option>
<option value="professional">Professional</option>
<option value="creative">Creative</option>
<option value="academic">Academic</option>
</select>
<button onclick="humanize()">Humanize</button>
<div id="output"></div>
Step 5: Deploy & Earn
Deploy anywhere and earn 50% commission on every API call.