Outfit Captioning
Generate captions for outfits in plain text or JSON format. This AI can identify details like color, pattern, style, material, sleeve style, hemline, waistline, and neckline.
Last updated
Generate captions for outfits in plain text or JSON format. This AI can identify details like color, pattern, style, material, sleeve style, hemline, waistline, and neckline.
Last updated
POST
https://prod.server.tryonlabs.ai/api/v1/experiment_image/
Upload the outfit image before you create an experiment.
Headers
Content-Type
application/json
Authorization
Bearer <token>
Body
image
binary(file)
outfit image
type
string
specify 'garment'
gender
string
specify gender e.g. male or female
preprocess
string
specify 'false'
Response
POST
https://prod.server.tryonlabs.ai/api/v1/experiment/
Create an experiment to trigger the caption generation.
Headers
Content-Type
application/json
Authorization
Bearer <token>
Body
action
caption_outfit
Please provide the experiment action. e.g. generate_outfit, virtual_try_on, etc.
params
{"output_format": "json"}
Pass the parameters to use for generation.
garment_id
xxxxxxxxxx
Provide the id of the garment uploaded in the last step
Response
GET
https://prod.server.tryonlabs.ai/api/v1/experiment/{id}/
Call this endpoint to fetch an experiment containing the status and other details.
Headers
Content-Type
application/json
Authorization
Bearer <token>
Response
GET
https://prod.server.tryonlabs.ai/api/v1/experiment/{id}/
Call this endpoint to fetch an experiment containing the status and other details.
Headers
Content-Type
application/json
Authorization
Bearer <token>
Response
If the experiment status is 'completed', you'll see the caption output in JSON or text format. If the experiment fails, there won't be any output, and you might need to adjust some parameters to get the desired results.