Pricing 
API Pricing

Try For Free Now

Dark

Light

GET ALL MODELS
Get All Models
Get all the models in your organization.
Customization is only applicable to T-3MT engine.
Endpoint
Request details
GET
https://translate.rozetta-api.io/api/v1/training/models
Header
Header
Description
Content-Type
application/json
Request Sample
curl 'https://translate.rozetta-api.io/api/v1/training/models' -H 'accessKey: YOUR_ACCESS_KEY' -H 'signature: SET_SIGNATURE' -H 'nonce: SET_NONCE' -H 'Content-Type: application/json'
Response
Key
Description
mid
Professional field ID.(M + 7 digits). The mid is automatically created when the model is generated.
userId
User ID
orgId
Organization ID.
name
Model Name. Regarding Model Name,please refer to「NEW MODEL」.
field
Professional field ID.(L + 6 digit number) Select a professional field to improve the translation accuracy. Please refer to the Specialized Fields
firstLang
Source Language. Specify the language of the manuscript to be translated.
secondLang
Target Language Specify the language of the translated text output as a result of translation.

api/v1/training/models
GET All Models
JavaScript
const axios = require('axios');
const authUtils = require('./utils/auth-utils');

const path = '/api/v1/training/models';

const authConfig = {
  accessKey: 'YOUR_ACCESS_KEY',
  secretKey: 'YOUR_SECRET_KEY',
  nonce: new Date().getTime().toString()
};

const signature = authUtils.generateSignature(
  authConfig.nonce,
  path,
  authConfig.secretKey,
);

const config = {
  method: 'get',
  url: 'https://translate.rozetta-api.io/api/v1/training/models',
  headers: {
    accessKey: authConfig.accessKey,
    signature,
    nonce: authConfig.nonce,
    'Content-Type': 'application/json',
  },
};

const main = async () => {
  try {
    const response = await axios(config)
    console.log(JSON.stringify(response.data));
  } catch (error) {
    console.log(error);
  }
}

main();
About the authentication, please refer to the authentication section.
You can get a full version of sample codes here
©️ 2019 Rozetta API  ・  Powered by Rozetta

Rozetta Corp.

^