Pricing 
API Pricing

Try For Free Now

Dark

Light

GET SPECIFIED MODEL
Get A Specified Model
GET a specified model.
Customization is only applicable to T-3MT engine.
Endpoint
Request details
GET
https://translate.rozetta-api.io/api/v1/training/model/<mid>
Path parameter
Path parameter
Description
mid
Professional field ID. Select a professional field to improve the translation accuracy. Please refer to the Specialized Fields
Header
Header
Description
Content-Type
application/json
Request Sample
curl 'https://translate.rozetta-api.io/api/v1/training/model/<mid>' -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. Select a professional field to improve the translation accuracy. Please refer to the Specialized Fields
userId
User ID.
orgId
Organization ID.
name
Model Name. Regarding Model Name,please refer to「NEW MODEL」.
field
Professional field ID.(M + 7 digit number) Select a professional field to improve the translation accuracy. Please refer to the Specialized Fields
field
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/model/<mid>
Gets the specified model.
JavaScript
const axios = require('axios');
const authUtils = require('./utils/auth-utils');

const path = '/api/v1/training/model/<mid>';

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/model/<mid>',
  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.

^