Skip to main content
POST
/
api
/
public
/
translate-multilang
Generate translations (Multilang)
curl --request POST \
  --url https://app.prismy.io/api/public/translate-multilang \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "sourceValues": [
    {
      "en-US": "hello world",
      "fr-FR": "bonjour le monde"
    }
  ],
  "targetLanguages": [
    "es-ES",
    "it-IT"
  ],
  "useOrgDescription": true,
  "useGlossary": true,
  "useSimilarity": true,
  "useCustomInstructions": true,
  "instructionsSource": "github",
  "instructionsBundle": "",
  "instructionsRepository": "",
  "additionalInstructions": ""
}
'
[
  {
    "en-US": "hello world",
    "fr-FR": "bonjour le monde",
    "es-ES": "hola mundo",
    "it-IT": "ciao mondo"
  }
]

Authorizations

Authorization
string
header
required

API token from your organization settings

Body

application/json
sourceValues
object[]
required

Array of objects keyed by language code. Each item may have one or more source languages (e.g. en-US, fr-FR); not all items need all languages. The AI receives whatever source(s) are present per item to translate into the target language(s).

targetLanguages
string[]
required

Language codes to translate into (e.g. ["es-ES", "it-IT"])

Example:
["es-ES", "it-IT"]
useOrgDescription
boolean
default:true

Use organization description for context

useGlossary
boolean
default:true

Use organization glossary for consistent terminology

useSimilarity
boolean
default:true

Use similarity matching for better translations

useCustomInstructions
boolean
default:true

Use custom translation instructions

instructionsSource
string
default:github

Source of custom instructions

instructionsBundle
string
default:""

Bundle name for instructions

instructionsRepository
string
default:""

Repository name for instructions

additionalInstructions
string
default:""

Additional custom instructions

Response

Consolidated translations: array of objects, each object = input item plus target-language keys

{key}
string