Try It
Paste content, get unique rewrites. Telegram subscribers get 10 free rewrites per day. Or use your own OpenAI API key for unlimited rewrites with custom prompts.
Starting rewrite...
What It Is
AI-powered content rewriting library for OpenAI (gpt-4.1) with format auto-detection and configurable prompts.
Features
Format Auto-Detection
Automatically detects content format:
- HTML β preserves tags and structure
- Markdown β maintains formatting
- Plain text β simple rewriting
Prompt Templates
Available templates:
- Default β universal rewrite preserving language
- Custom β your own instructions
Anti-AI Detection
Automatically masks common AI patterns:
- Em-dashes β regular dashes
- Formal phrases β casual alternatives
- Typical AI phrases β natural variations
- Overly structured patterns β more natural flow
Large Content Handling
Content over 12,000 characters automatically split into chunks and processed in parallel.
Cost Tracking
const result = await rewriter.rewrite(content);
console.log(`Cost: $${result.cost.toFixed(4)}`);
NPM Package
npm install @affiliate.fm/ai-content-rewriter
import { ContentRewriter } from "@affiliate.fm/ai-content-rewriter";
const rewriter = new ContentRewriter({
provider: "openai",
apiKey: process.env.OPENAI_API_KEY,
});
// Single variant
const [result] = await rewriter.rewrite("<h1>Title</h1><p>Content...</p>");
// Multiple variants
const results = await rewriter.rewrite(content, { variants: 5 });
Pricing
| Model | ~Cost per 1K words |
|---|---|
| GPT-4.1 | $0.01-0.02 |
Privacy
- API key never leaves your browser
- Content sent directly to OpenAI from your browser
- We donβt store or log your data
- Open source β verify the code
Open Source
Full source on GitHub. Issues, suggestions, contributions welcome.