Position generation

To track the generation status, we can get its position in the queue.

POST https://getnude.app/api/mch/position

Body

Name
Type
Required
Description

timestamp

String

Yes

Current timestamp

merchant_no

String

Yes

Merchant no

file_id

String

Yes

The file id returned by image generation

sign

String

Yes

Refer to the sign pa

Response

{
    "code": 0,
    "message": "",
    "data": {
        "index": 0
    }
}
const axios = require('axios');
let data = JSON.stringify({
  "timestamp": "xxx",
  "sign": "xxx",
  "merchant_no": "",
  "file_id": "001"
});

let config = {
  method: 'post',
  maxBodyLength: Infinity,
  url: 'https://getnude.app/api/mch/position',
  headers: { 
    'Content-Type': 'application/json'
  },
  data : data
};

axios.request(config)
.then((response) => {
  console.log(JSON.stringify(response.data));
})
.catch((error) => {
  console.log(error);
});

Last updated