Skip to main content
POST

Authorizations

Authorization
string
header
required

API key starting with sk_case_

Body

application/json
q
required

Text to translate. Can be a single string or an array for batch translation.

target
string
required

Target language code (ISO 639-1)

Example:

"es"

source
string

Source language code (ISO 639-1). If not specified, language is auto-detected.

Example:

"en"

format
enum<string>
default:text

Format of the source text. Use 'html' to preserve HTML tags.

Available options:
text,
html
model
enum<string>
default:nmt

Translation model. 'nmt' (Neural Machine Translation) is recommended for quality.

Available options:
nmt,
base

Response

Translation successful

data
object