AI Utilities

TRANSLATION — POST {text, target} and get the translation plus the detected source language

TRANSLATION — POST {text, target} and get the translation plus the detected source language. Any language pair; target as a name or ISO code ('spanish', 'de', 'ja'). Up to 8,000 chars per call; line breaks and markdown preserved; code, URLs, and proper names left alone. Optional {source} to pin the source language, {formality}: formal|informal. Fast cheap LLM under the hood; the x402 payment IS the auth.

Price: $0.01 per call, paid in USDC via the x402 protocol (see the x402 security scheme).

post/api/translate-text

Request

  • Base URL: https://api.webbersites.com
  • URL: https://api.webbersites.com/api/translate-text
  • Auth: API key in header X-PAYMENT

Request body

textstring required

The text to translate, up to 8,000 characters

targetstring required

Target language — name or ISO code ('spanish', 'de', 'ja')

sourcestring

Optional source language; auto-detected when omitted

formalitystring

formal or informal register (optional)

Response

Success

translationstring
targetstring
source_languagestring

detected (or provided) source language

modelstring
usageobject

Changes

No recorded changes to this operation across all 1 revision of this API.