Translate (EN/FR and more)
translateTranslates text between languages; defaults to English to French for NS/NB customers. Returns { translated, source, target }: the translated text and the language pair used. Price: 4 credits (1 credit = 1 CAD cent) per successful call; input that does not match the schema is rejected before billing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to process, 1 to 8,000 characters. Emails, phone numbers, card numbers, SINs and IPv4s are redacted before the model sees it. | |
| source | No | ISO 639-1 two-letter lower-case language code of the input text. | en |
| target | No | ISO 639-1 two-letter lower-case language code to translate into. | fr |