Add Wardrobe Item from Image
add_wardrobe_item_from_imageAdd one clothing item from the user's original image to their wardrobe. Use this when the user attaches a photo or supplies an image URL and asks to add/save the pictured item, for example 'Add this to my wardrobe'. The server processes the actual image. Do not replace this flow with add_wardrobe_item_from_description or your own visual interpretation. Generate requestId and provide exactly one of: ChatGPT file reference in file, publicly accessible imageUrl, or complete original image bytes in image.data. JPEG, PNG and WebP up to 10 MB. Never invent file IDs, attachment URLs or base64. If the client cannot transfer the original image, call create_image_upload with the same requestId and purpose wardrobe_image_add and show its uploadPageUrl. Poll get_wardrobe_image_activity for the result.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | The original image attachment supplied by ChatGPT through its file-input mechanism. Use the host-provided file reference; never fabricate download_url or file_id. | |
| image | No | ||
| imageUrl | No | A real, publicly accessible HTTP(S) URL to the original image. Do not use a local path, sandbox URL or an invented URL for a chat attachment. | |
| requestId | Yes | Unique identifier for this requested action. Reuse it for retries and the upload-page fallback; use a new value for another item. | |
| menswearOrWomenswear | No | The user's clothing preference. Omit to use their saved preference. |