AI Generated Models API

Unleash AI directly in your website/app

Scroll to Doc & endpoints

2. API Authentication

The New Black API uses login credentials for authentication :

email
required
string ($string)
Your account email on The New Black
password
required
string ($string)
Your password on The New Black
Note : If you created your account using Google Auth, click on your profile, then click on “create/change password”.

3. Pricing (credits)

When you make API calls from your website or app, credits will be debited from your account on The New Black. Therefore, you need to add credits to your account in order to make API calls. Credits for API calls and credits for The New Black generator are the same credits. You can use them for both. We offer many types of credit offers. Larger credit packs have a lower price/credit.

Add credits
To your account

4. Select a fashion feature (endpoint)

POST
https://thenewblack.ai/api/1.1/wf/generated-models

Creates an AI generated model from a clothing photo with our API

1 credits
AI generated models API
1. REQUEST BODY (get the id)
Important: You will first receive an id number with this call. Then you will have to retrieve the image after 30/40 seconds during the second call using this id number (asynchronous generation).
clothing_photo
required
string ($string)
Your clothing image URL
clothing_type
required
string ($string)
Clothing type. Value can be 'tops', 'bottoms' or 'one-pieces'.
gender
required
string ($string)
Text value 'man' or 'woman' for the model
country
required
string ($string)
Name of the country. Example : 'Brazil' or 'France'
age
required
string ($string)
Number value between 20 and 70, for the model age
other_clothes
required
string ($string)
If clothing_type is 'tops' : describe bottom clothes. If clothing_type is 'bottoms' : describe top clothes. If clothing_type is 'one-pieces', you don't need this parameter.
image_context
required
string ($string)
Describe the background of the image
ratio
required
string ($string)
Ratio must be '1:1' of '9:16'
other_model_info
required
string ($string)
Give additional info about your model, for example : 'elegant, short blonde hair, standing'
Example request (form-data)
curl --location 'https://thenewblack.ai/api/1.1/wf/generated-models' \ --form 'email="your@email.com"' \
--form 'password="yourpassword"' \
--form 'clothing_photo="https://d1muf25xaso8hp.cloudfront.net/https%3A%2F%2F40e507dd0272b7bb46d376a326e6cb3c.cdn.bubble.io%2Ff1736513979343x866697206047046400%2FE1080448_1.jpg?w=768&h=768&auto=compress&dpr=2&fit=max"'\
--form 'gender="woman"' \
--form 'clothing_type="tops"' \
--form 'other_clothes="blue jeans"' \
--form 'image_context="street"' \
--form 'ratio="9:16"' \
--form 'other_model_info="elegant, short blonde hair, standing"' \
--form 'country="Italy"' \
--form 'age="30"'
Response
1738751009397x385426948109271550
2. REQUEST BODY (to retrieve the image, usually generation takes 30-40 seconds, before you can retrieve the image)
POST
Example request (form-data)
curl --location 'https://thenewblack.ai/api/1.1/wf/results' \ --form 'email="your@email.com"' \
--form 'password="yourpassword"' \
--form 'id="1738751009397x385426948109271550"'
Response
https://40e507dd0272b7bb46d376a326e6cb3c.cdn.bubble.io/f1745417903588x471351164901105300/upscale
Need custom AI feature/endpoint ? We can develop it / add it to our API
Contact us

Watch directly on Youtube for subtitles.
The New Black logo