Try it now
Paste your content below and generate unique rewrites instantly. Your API key is used directly in your browser — we never store or transmit it to our servers.
About ai-content-rewriter
AI-powered content rewriting library and tool. Supports multiple providers (OpenAI), format auto-detection, and configurable prompts. Built for ethical affiliate marketing — helping you create unique, high-quality content variations.
Features
Format Auto-Detection
The tool automatically detects your content format:
- HTML — Preserves tags and structure
- Markdown — Maintains formatting
- Plain text — Simple content rewriting
Built-in Prompt Templates
Choose from several pre-configured templates:
- Multilingual Default — Universal rewrite preserving original language
- SEO-Focused — Optimized for search engines
- Casual Tone — Conversational, friendly style
- Formal/Professional — Business-appropriate tone
- Custom — Write your own instructions
Large Content Support
Content over 12,000 characters is automatically split into chunks and processed in parallel for efficient handling of long articles.
NPM Package
Install the library for programmatic use:
npm install @affiliate.fm/ai-content-rewriter
import { rewrite } from "@affiliate.fm/ai-content-rewriter";
const results = await rewrite(
{ content: "<h1>Title</h1><p>Content...</p>" },
{
provider: { type: "openai", apiKey: "sk-..." },
variantCount: 3,
}
);
Pricing
Cost depends on content length and model choice:
| Model | Typical cost per 1K words |
|---|---|
| GPT-4.1 | ~$0.01-0.02 |
| GPT-4.1 Mini | ~$0.002-0.005 |
| GPT-4.1 Nano | ~$0.0005-0.001 |
Privacy
- Your API key never leaves your browser
- Content is sent directly to OpenAI from your browser
- We don’t store or log any of your data
- Open source — verify the code yourself
Open Source
Available on GitHub. Issues, suggestions, and contributions welcome.