https://thenewblack.ai/api/1.1/wf/clothing
Creates a fashion outfit design given a prompt
REQUEST BODY
Describe the clothing outfit
Enter value 'man' or 'woman' only
Enter a country name (ex: 'Italy'). This will influence the skin color and ethnicity.
Age of the model. Number only.
Image width. Image width x Image height cannot be superior to 2359296 pixels
Image height. Image width x Image height cannot be superior to 2359296 pixels
Accepted value 'small', 'plus', 'pregnant'. If empty, will be mid-size by default.
Describe a background. For example : 'NYC street'
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_fluxhttps://thenewblack.ai/api/1.1/wf/generated-models
Creates an AI generated model from a clothing photo with our 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 type. Value can be 'tops', 'bottoms' or 'one-pieces'.
Text value 'man' or 'woman' for the model
Name of the country. Example : 'Brazil' or 'France'
Number value between 20 and 70, for the model age
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.
Describe the background of the image
Ratio must be '1:1' of '9:16'
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)
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/upscalehttps://thenewblack.ai/api/1.1/wf/credits
Get my account credit balance
REQUEST BODY
Simply authenticate with your email and password to get your credit balance.
Example request (form-data)
curl --location 'https://thenewblack.ai/api/1.1/wf/credits' \
--form 'email="your@email.com"' \
--form 'password="yourpassword"' \
Response
1244