AI

Translate text

Translate text to a target language via OpenRouter. Requires an active AI Translation add-on.

post/ai/v1/translate

Request

  • Base URL: https://api.run402.com
  • URL: https://api.run402.com/ai/v1/translate
  • Auth: HTTP bearer

Request body

textstring required

Text to translate (max 10,000 chars)

tostring required

Target language (ISO 639-1 code)

fromstring

Source language (ISO 639-1 code, auto-detected if omitted)

contextstring

Context hint for tone/register (max 200 chars)

Response

Translation result

textstring required
fromstring required
tostring required

Changes

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