Copy
curl --request POST \
--url https://api.anyoutfit.ai/api/create_photo_shoot/ \
--header 'Authorization: Token AjjhfI30884KNNsuu40975N' \
--header 'Content-Type: application/json' \
--header 'accept: application/json' \
--data '{
"text_prompt": "a spanish woman in a busy street",
"model_image_url": "",
"garment_image_url": "https://dictionary.cambridge.org/us/images/thumb/Tshirt_noun_001_18267_2.jpg",
"category": "top"
}'
Copy
{
"garment_description": "This is a light blue cotton t-shirt featuring a Levi logo on the chest.","model_image_url": "https://example.com/generated_model.jpg",
"vton_image_url": "https://example.com/vton_model_image.jpg"
}
Copy
import requests
url="https://api.anyoutfit.ai/api/create_photo_shoot/"
headers = {
"Authorization": "Token AjjhfI30884KNNsuu40975N",
"accept": "application/json",
"content-type": "application/json",
}
body = {
"text_prompt": "a spanish woman in a busy street",
"model_image_url": "",
"garment_image_url": "https://dictionary.cambridge.org/us/images/thumb/Tshirt_noun_001_18267_2.jpg",
"category": "top"
}
response = requests.post(url, headers=headers, json=body)
print(response.text)
Copy
{
"garment_description": "This is a light blue cotton t-shirt featuring a small red Levi logo on the chest.","model_image_url": "https://example.com/generated_model.jpg",
"vton_image_url": "https://example.com/vton_model_image.jpg"
}