Skip to main content
POST
/
api
/
create_photo_shoot
cURL
curl --request POST \
  --url https://api.anyoutfit.ai/api/create_photo_shoot/ \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "garment_image_url": "<string>",
  "category": "top",
  "text_prompt": "<string>",
  "model_image_url": "<string>"
}
'
{
  "garment_description": "<string>",
  "model_image_url": "<string>",
  "vton_image_url": "<string>"
}

Authorizations

Authorization
string
header
required

Token-based authentication with required prefix "Token" as previously explained.

Body

application/json
garment_image_url
string<uri>
required

URL of the garment image to be used in the photo shoot. A 4:3 aspect ratio provides better result. Only jpg or png images.

Minimum string length: 1
category
enum<string>
required

Category of the garment. Must be one of: top, bottom, or dresses.

Available options:
top,
bottom,
dresses
text_prompt
string

Text prompt to guide the photo generation. Required if model_image_url is not provided.

model_image_url
string<uri>

URL of a your own model image. A 4:3 aspect ratio provides better result. Only jpg or png images. Required if text_prompt is not provided.

Response

Successful response

garment_description
string

Generated description of the garment

model_image_url
string<uri>

URL of the model image (generated or not)

vton_image_url
string<uri>

URL of the generated virtual try-on (VTON) image