This API allows you to process images using tokens. Pricing for image processing and balance top-up is handled through technical support. For larger balance replenishments, technical support provides discounts.
The API automatically resizes images to a maximum allowable size. Please note that the image size should not exceed 1.5 MB after resizing. For any other queries, please contact technical support at @MessagesNudsTopBot.
A user dashboard for statistics and convenient token management will be implemented soon.
https://api.nudstop.com/v1/
All routes require a token to be passed either in the request body or as a query parameter. The token is used to authenticate the user and charge for the image processing.
The token can currently be created through technical support.
Replenishment of the token balance at the moment can be done through technical support.
URL: /check-balance Method: GET Query Parameters: - token: The token whose balance is to be checked.
const axios = require('axios'); async function checkBalance(token) { const response = await axios.get(`https://api.nudstop.com/v1/check-balance?token=${token}`); console.log('Balance:', response.data); } checkBalance('your-token-here');
import requests def check_balance(token): response = requests.get(f"https://api.nudstop.com/v1/check-balance?token={token}") print(f"Balance: {response.json()}") check_balance("your-token-here")
URL: /process-image Method: POST Body Parameters: - token: The token to be charged for the image processing. - imageBase64: The base64 encoded image. - options: Object containing additional options. - person: Must be either "woman". (Soon to be added "man" mode and additional parameters, on enlargement and reduction of parts and not only.) Note: The processed image is returned in Base64 format.
const axios = require('axios'); const fs = require('fs'); async function processImage(token, imageBase64, options) { const response = await axios.post('https://api.nudstop.com/v1/process-image', { token, // or token: token imageBase64, // or imageBase64: imageBase64 options // or options: options }); let processedImage = response.data.processedImage; // Saving the image const imageBuffer = Buffer.from(processedImage, 'base64'); fs.writeFileSync('processed_image.jpg', imageBuffer); } processImage('your-token-here', 'your-base64-image', { person: 'woman' });
import requests import base64 def process_image(token, image_base64, options): response = requests.post("https://api.nudstop.com/v1/process-image", json={ "token": token, "imageBase64": image_base64, "options": options }) processed_image = response.json()['processedImage'] # Saving the image image_data = base64.b64decode(processed_image) with open("processed_image.jpg", "wb") as f: f.write(image_data) process_image("your-token-here", "your-base64-image", {"person": "woman"})