GetNude v1.0 API Reference
  • Image generation
  • Position generation
  • Balance
  • Webhook
  • Sign
Powered by GitBook
On this page

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
    }
}
{
    "code": 50,
    "message": "The task does not exist",
    "data": null
}
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);
});
import http.client
import json

conn = http.client.HTTPSConnection("getnude.app")
payload = json.dumps({
  "timestamp": "xxx",
  "sign": "xxx",
  "merchant_no": "",
  "file_id": "001"
})
headers = {
  'Content-Type': 'application/json'
}
conn.request("POST", "/api/mch/position", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
curl --location 'https://getnude.app/api/mch/position' \
--header 'Content-Type: application/json' \
--data '{
"timestamp": "xxx",
"sign": "xxx",
"merchant_no": "",
"file_id": "001"
}'
PreviousImage generationNextBalance

Last updated 1 year ago