Fashion Clothing API

Unleash AI directly in your website/app

Scroll to Doc & endpoints

1. What is our Fashion API ?

Generally speaking, Application Programming Interfaces (APIs) allow two software applications (such as websites or apps) to communicate with each other and exchange data reciprocally, regardless of the programming language used.
With our fashion API, you can integrate all our AI clothing features directly on your website or app, and propose them to your users. The New Black is not mentioned, everything is handled on the backend.

If you don't know how to connect to an API, you may need help from a developer. Check our Fashion API tutorial on Youtube.

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/clothing
Creates a fashion outfit design given a prompt
1 credit
Fashion Clothing API
REQUEST BODY
outfit
required
string ($string)
Describe the clothing outfit
gender
required
string ($string)
Enter value 'man' or 'woman' only
country
required
string ($string)
Enter a country name (ex: 'Italy'). This will influence the skin color and ethnicity.
age
required
number
Age of the model. Number only.
width
required
number
Image width. Image width x Image height cannot be superior to 2359296 pixels
height
required
number
Image height. Image width x Image height cannot be superior to 2359296 pixels
body_type
string ($string)
Accepted value 'small', 'plus', 'pregnant'. If empty, will be mid-size by default.
background
string ($string)
Describe a background. For example : 'NYC street'
negative
string ($string)
Describe what you DON´T want in the design
Example request (form-data)
curl --location 'https://thenewblack.ai/api/1.1/wf/clothing' \ --form 'email="your@email.com"' \
--form 'password="yourpassword"' \
--form 'outfit="a blue bohemian dress"' \
--form 'gender="woman"' \
--form 'country="Italy"' \
--form 'age="20"' \
--form 'body_type="plus"' \
--form 'width="900"' \
--form 'height="1300"' \
--form 'background="NYC street"'
Response
https://40e507dd0272b7bb46d376a326e6cb3c.cdn.bubble.io/f1737666101257x150887873925754430/text2image_flux
Need custom AI feature/endpoint ? We can develop it / add it to our API
Contact us
The New Black logo