AITranslate - API Documentation

Get started

API Endpoint

https://ai-translate.pro/api
            

The AITranslate API provides programmatic access to AITranslate’s machine translation technology, making it possible to bring high quality translation capabilities directly to your websites and applications.

Common use cases include:

  • Website translation: Localize websites and expand to new markets efficiently and at scale—even in sectors like e-commerce and news media with a large catalog of dynamic content.
  • Company communications: Integrate AITranslate’s translation technology into your company’s systems such as Confluence, SharePoint, and Zendesk. Enable your global teams to communicate seamlessly and with maximum data security.
  • Building multilingual products: Translate chat conversations to connect users across language barriers in real time. Localize comments and product reviews with the click of a button. Make translation one of your differentiating features—however you imagine it.

Global parameters:

translate service

              
# Here is a curl example
curl \
-X POST https://ai-translate.pro/api/{secret_key}/en-fr \
-H 'Content-Type: application/json' \
-d '{"text":"Text to translate"}'

                
              

To make translate you need to make a POST call to the following url :
https://ai-translate.pro/api/{secret_key}/{lang-from}-{lang-to}


            
Result example :
{
    result: "Translated text",
    available_chars: 9999
}

QUERY PARAMETERS

Field Type Description
secret_key String Your API key.
lang-from String Language code
lang-to String Language code

QUERY DATA

Field Type Description
text String Text to translate

GET AVAILABLE CHARACTERS

              
# Here is a curl example
curl \
-X POST https://ai-translate.pro/api/{secret_key}/character/get
                
              

To get characters you need to make a POST call to the following url :
https://ai-translate.pro/api/{secret_key}/character/get


            
Result example :
{
    available_chars: 9999
}

QUERY PARAMETERS

Field Type Description
secret_key String Your API key.

GET LANGUAGES LIST

              
# Here is a curl example
curl \
-X POST https://ai-translate.pro/api/{secret_key}/lang/list
                
              

To get languages list you need to make a POST call to the following url :
https://ai-translate.pro/api/{secret_key}/lang/list


            
Result example :
{
    {
        "name": " Azerbaijanian",
        "code": "az"
    },
    {
        "name": " Ukrainian",
        "code": "uk"
    },
    {
        "name": " Slovenian",
        "code": "sl"
    },
    {
        "name": " English",
        "code": "en"
    },
    ...
}

QUERY PARAMETERS

Field Type Description
secret_key String Your API key.

Errors

The API uses the following error codes:

Error Code Meaning
404 secret_key not found