{"uid":"cap_b6X1Af5-o_871fZ3KHp13","slug":"agent-data-tools-ai-text-rewrite-dd9b4bf8","name":"Agent Data Tools: AI Text Rewrite","description":"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.","url":"https://agent-data-tools.revmesh2074.workers.dev/ai/rewrite?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"Text, up to 8,000 characters"},"style":{"enum":["formal","casual","simpler","shorter","friendly","professional","persuasive"],"type":"string","description":"formal, casual, simpler, shorter, friendly, professional or persuasive (default professional)"}}},"responseSchema":{"type":"object","properties":{"text":{"type":"string"},"model":{"type":"string"},"style":{"type":"string"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USD","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_-iRd11eZzH3Uv_kS3gJlc","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Rewrites input text in a specified style (formal, casual, simpler, shorter, friendly, professional, or persuasive) using an LLM","exampleAgentPrompt":"Can you rewrite the following text in a simpler style so it's easier to understand? Here it is: 'The utilization of advanced cryptographic protocols ensures the integrity and confidentiality of transmitted data across heterogeneous network topologies.'","exampleUseCases":[{"title":"Casual email to professional tone","prompt":"Take this casual message I wrote and rewrite it in a professional tone: 'Hey, just wanted to check in and see if we can push the meeting — something came up and I can't make tomorrow work anymore.'"},{"title":"Simplify technical documentation","prompt":"Rewrite this paragraph in simpler language so non-technical readers can understand it: 'The API leverages OAuth 2.0 bearer tokens for stateless authentication, validating JWT claims on each request against a distributed key management service.'"},{"title":"Make marketing copy more persuasive","prompt":"Rewrite this product description to sound more persuasive: 'Our software helps teams track tasks and deadlines. It has a dashboard and integrates with other tools.'"}],"resultDescription":"A JSON object containing the rewritten text in the requested style, the name of the LLM model used (e.g. @cf/meta/llama-3.1-8b-instruct-fp8), and the style that was applied.","failureModes":["Text exceeds 8,000 character limit — request rejected","Invalid style enum value — validation error","LLM inference failure — upstream model error","Payment not accepted — call not charged, 402 returned","Empty or missing text parameter — validation error"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call text rewriting capability with no API key setup, billed at $0.002 USDC per call via x402 on Base. Ideal for AI agents that need on-demand tone or style adjustments without committing to a subscription or managing credentials. Best suited for single text rewrites up to 8,000 characters when you need one of the seven supported style presets.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T12:38:58.287Z","isFirstParty":false,"canonicalSlug":"agent-data-tools-ai-text-rewrite-dd9b4bf8"}