Pricing 
API Pricing

Try For Free Now

Dark

Light

GET MODEL STATUS
GET Model Status
GET status of the model.
Customization is only applicable to T-3MT engine.
Endpoint
Request details
GET
https://translate.rozetta-api.io/api/v1/training/job/<jid>
Path parameter
Path parameter
Description
jid
Job ID. Job is automatically created when the model is generated. Please refer to the NEW MODEL
Header
Header
Description
Content-Type
application/json
Request Sample
curl 'https://translate.rozetta-api.io/api/v1/training/job/<jid>' -H 'accessKey: YOUR_ACCESS_KEY' -H 'signature: SET_SIGNATURE' -H 'nonce: SET_NONCE' -H 'Content-Type: application/json'
Response
Key
Description
jobStatus
Status. The status is set to finished when model generation is completed.
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.
errorCode
Error Code Set to null when the generation is completed.
errorMessage
Error message. Set to null when jobStatus is finished.

api/v1/training/job/<jid>
Get status of a model
JavaScript
const axios = require('axios');
const authUtils = require('./utils/auth-utils');

const path = '/api/v1/training/job/<jid>';

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/job/<jid>',
  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.

^