Rivier/ Reference/ models

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

  • modelstringrequired
    A completions route Pattern: ^[a-z][a-z0-9._-]{0,39}$.
  • textstring or list of stringrequired
  • sourcestring
    Pattern: ^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$.
  • targetstringrequired
    Pattern: ^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$.
  • termslist of object
    A term kept as it is (keep) or always rendered as target
    • sourcestringrequired
      At most 200 characters.
    • targetstring
      At most 200 characters.
    • keepboolean
  • purposestring or null

Responses

  • 200application/json
    Success
    • objecttranslationrequired
    • sourcestring or nullrequired
    • targetstringrequired
    • translationsstring or list of stringrequired
    • terms_missedlist of stringrequired
    • costobject
      • usdnumberrequired
  • 400application/json
    The request was malformed
    • errorstringrequired
    • messagestring
  • 401application/json
    No valid credential
    • errorstringrequired
    • messagestring
  • 403application/json
    The credential lacks the scope, origin or address
    • errorstringrequired
    • messagestring
  • 429application/json
    Over the key's rate limit; see Retry-After
    • errorstringrequired
    • messagestring

This page as Markdown