Models translation create
post/models/v1/translations
One text or a list in another language, keeping or rendering the terms of a term list as given; terms the answer did not honour are named in terms_missed. Runs on a completions route, under the project's limits.
Before you call
- Credential
Authorization: Bearer $KEY- Scope
models:write- Graphql
Mutation.modelsTranslationCreate- Sdk
models.translation.create- Cli
models translation create
Request bodyapplication/json, required
- modelstringrequiredA completions route Pattern: ^[a-z][a-z0-9._-]{0,39}$.
- textstring or list of stringrequired
- sourcestringPattern: ^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$.
- targetstringrequiredPattern: ^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$.
- termslist of objectA term kept as it is (keep) or always rendered as target
- sourcestringrequiredAt most 200 characters.
- targetstringAt most 200 characters.
- keepboolean
- sourcestringrequired
- purposestring or null
Responses
- 200application/jsonSuccess
- objecttranslationrequired
- sourcestring or nullrequired
- targetstringrequired
- translationsstring or list of stringrequired
- terms_missedlist of stringrequired
- costobject
- usdnumberrequired
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring