{"uid":"cap_EDVp5FGDCGF5_rEY0sORS","slug":"inference402-text-rewrite-df4e4f68","name":"Inference402 Text Rewrite","description":"Pay-per-call AI inference for agents: chat (Llama 3.3 70B / 3.1 8B), structured JSON, summarize, translate (incl. Egyptian Arabic), extract, classify, sentiment, keywords, rewrite, embeddings, moderation, vision and speech-to-text. USDC on Base mainnet over x402. No API key, no account.","url":"https://inference402.worlddata402.workers.dev/v1/rewrite?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"lang":{"type":"string","description":"ISO 639-1 output language; defaults to the input language"},"text":{"type":"string","maxLength":4000},"tone":{"enum":["formal","casual","marketing","simple"],"type":"string"}}},"responseSchema":{"type":"json","example":{"text":"We are currently experiencing a service outage. Our team is working on a fix, which we expect within the hour.","tone":"formal","model":"@cf/meta/llama-3.3-70b-instruct-fp8-fast"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_9pRwAukpp-otdjroPUUUG","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Rewrites input text into a specified tone (formal, casual, marketing, or simple) using Llama 3.3 70B, payable per-call in USDC via x402","exampleAgentPrompt":"Rewrite this customer support reply in a formal tone: 'Hey! Sorry stuff broke, we're on it and should have a fix pretty soon.'","exampleUseCases":[{"title":"Formalizing customer support responses","prompt":"Take this support message and rewrite it in a formal tone: 'Hey, sorry about the mess! We know things are broken and our team is literally on it right now, hang tight!'"},{"title":"Simplifying legal or technical copy","prompt":"Rewrite this clause in simple language so a non-lawyer can understand it: 'The licensee shall indemnify and hold harmless the licensor from any and all claims arising out of the licensee's use of the licensed materials.'"},{"title":"Converting product copy to marketing tone","prompt":"Rewrite this plain product description in a marketing tone to make it more persuasive: 'Our app lets you track your daily expenses and see where your money goes each month.'"}],"resultDescription":"Returns a JSON object containing the rewritten text in the requested tone, the tone label applied, and the model used (e.g. @cf/meta/llama-3.3-70b-instruct-fp8-fast).","failureModes":["Text exceeds 4000 character limit — request rejected","Invalid tone enum value — returns error","Payment not settled in USDC on Base mainnet — 402 response blocks the call","Malformed ISO 639-1 language code — may default or error","Model latency spike causing timeout on long texts"],"whenToPreferThis":"Choose this endpoint when you need tone-controlled text rewriting without managing API keys or subscriptions — ideal for agents that need to pay per call in USDC via the x402 protocol. It is especially useful when you need one of four well-defined tones (formal, casual, marketing, simple) and optionally want output in a specific language. Prefer over hosted LLM APIs when you need permissionless, accountless, micropayment-based access.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T12:39:48.941Z","isFirstParty":false,"canonicalSlug":"inference402-text-rewrite-df4e4f68"}