Makenude API docs

POSThttps://deepnudes.co/api/nude

This route is for image processing.
  • token can be generated in your profile
  • API accepts files image and mask and put data to queue for image processing
  • image and mask must be the same size (image.width == mask.width and image.height == mask.height)
  • image must be a valid image of any supported format (jpg, jpeg, png, webp)
  • image size must be less than 1.6 MB
  • mask size must be less than 1 MB
  • mask must be a .png image where highlighted area is white, other pixels are black.
Here is example image for mask: Example of mask

Request example

JSON
Python
PHP
Javascript
Go

Response example

GEThttps://deepnudes.co/api/nude

This route is for checking statuses of uploaded images.
You may use webhooks instead of this API route. Field error returned as true, when image cannot be processed by our system (18+ / too long). In this case credits will be refunded.
  • token can be generated in your profile
  • id was given to you in response of previous request for this photo

Request example

JSON
Python
PHP
Javascript
Go

Response example

WEBHOOK

When image will be processed on our server (about 1-2 minutes after sending) we will notify you via URL you have entered as webhook in your profile API settings.

You may use either webhook or previous route, or them both.
In code example you can see request format which will be sent to your server once when photo will be processed.
  • result_url is url to photo on deepnudes.co service
  • Link result_url expires after one hour since sending, so it's highly recommended to download this photo and store it on your server
  • id was given to you in response of previous request for this photo
  • To be sure that request was came from our servers we duplicate your token in webhook request, and you may check it on your server.

Makenude request example