Skip to main content
POST
/
api
/
public
/
translate
Generate AI translations
curl --request POST \
  --url https://app.prismy.io/api/public/translate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "targetLanguage": "fr-FR",
  "sourceLanguage": "en-US",
  "textsToTranslate": [
    "Welcome to our application",
    "Click here to get started",
    "Your account has been created successfully"
  ],
  "useOrgDescription": true,
  "useGlossary": true,
  "useSimilarity": true,
  "useCustomInstructions": true,
  "instructionsSource": "github",
  "instructionsBundle": "",
  "instructionsRepository": "",
  "additionalInstructions": ""
}'
[
  "Bienvenue dans notre application",
  "Cliquez ici pour commencer",
  "Votre compte a été créé avec succès"
]

Authorizations

Authorization
string
header
required

API token from your organization settings

Body

application/json
targetLanguage
string
required

The language code to translate to (e.g., "fr-FR", "es-ES", "de-DE")

Example:

"fr-FR"

sourceLanguage
string
required

The language code of the source text (e.g., "en-US", "fr-FR", "es-ES")

Example:

"en-US"

textsToTranslate
string[]
required

Array of text strings to translate

Example:
[
"Welcome to our application",
"Click here to get started",
"Your account has been created successfully"
]
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

Translations generated successfully

The response is of type string[].

I