Clothing Color Change 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/color_change
Changes a clothing color on your image
1 credit
Image variation API
REQUEST BODY
image
required
string ($string)
URL of you original image
clothing_text
required
string ($string)
Describe the garment whose color needs to change
Hex_color
String ($string)
Hex color code value. Example : #799d7a
Example request (form-data)
curl --location 'https://thenewblack.ai/api/1.1/wf/color_change' \ --form 'email="your@email.com"' \
--form 'password="yourpassword"' \
--form 'image="https://d1muf25xaso8hp.cloudfront.net/https%3A%2F%2F40e507dd0272b7bb46d376a326e6cb3c.cdn.bubble.io%2Ff1724510625628x329421095669450750%2Fcore?w=768&h=768&auto=compress&dpr=2&fit=max" \
--form 'clothing_text="shirt"' \
--form 'Hex_color="#799d7a"'
Response
https://40e507dd0272b7bb46d376a326e6cb3c.cdn.bubble.io/f1724749755385x601937131952855300/AI-color-change-API-0915Tue-1-.jpeg
Need custom AI feature/endpoint ? We can develop it / add it to our API
Contact us
The New Black logo