Rewrite text in a style
Rewrite text to be more formal, casual, simpler, shorter, friendlier, more professional or more persuasive, keeping the meaning and language. Use to polish emails, replies, product copy and messages.
Inputs
| Name | Type | Description |
|---|---|---|
text (required) | string | Text, up to 8,000 characters |
style | string | formal, casual, simpler, shorter, friendly, professional or persuasive (default professional). One of: formal, casual, simpler, shorter, friendly, professional, persuasive. |
Request
Over HTTP, with a card key from /credits:
curl -H "Authorization: Bearer adt_…" "https://agent-data-tools.revmesh2074.workers.dev/ai/rewrite?text=hey%2C%20cant%20make%20it%20tmrw%2C%20can%20we%20move%20to%20thu%3F"
Or one of your 25 free calls, no key:
curl "https://agent-data-tools.revmesh2074.workers.dev/ai/rewrite?text=hey%2C%20cant%20make%20it%20tmrw%2C%20can%20we%20move%20to%20thu%3F&trial=1"
Without a key, the same URL answers 402 Payment Required with x402 and MPP terms, so an agent with a wallet pays per call in USDC (Base, Polygon, Arbitrum, Monad, World Chain or Tempo) and retries.
Example result
{
"style": "professional",
"text": "Unfortunately I can't make it tomorrow. Could we move the meeting to Thursday?",
"model": "@cf/meta/llama-3.1-8b-instruct-fp8"
}
From an AI agent (MCP)
Add the MCP server to Claude, Cursor or any MCP client. This tool is ai_rewrite, and the first 25 successful calls are free:
https://agent-data-tools.revmesh2074.workers.dev/mcp