For ordinary try-on, provide one garment reference and leave the prompt blank. Missing, empty and whitespace prompts use clothing-only replacement.
Replace only the clothing on the person with the garment from the reference image. Preserve the person, face, hair, skin, body, pose, lighting and background. Keep the result photorealistic.A custom prompt replaces this default. Name the garment, refer to the reference image, and restate what should stay unchanged. Avoid scene, weather or artistic-style instructions unless you intend to change those things.
Short sample prompts
Ask for one clear change. The reference image provides the visual detail; long descriptions can introduce unwanted changes.
| Product | Sample prompt |
|---|---|
| Shirt or jacket | Keep the character and background unchanged, only replace upper-body clothes with the reference-image outfit. |
| Dress or outfit | Keep the character and background unchanged, only replace clothing with the reference-image outfit. |
| Trousers or skirt | Keep the character and background unchanged, only replace lower-body clothing with the reference-image outfit. |
| Baseball cap | Apply only the baseball cap from the reference image to the video character. Keep clothing, face and background unchanged. |
| Wig | Change the person’s hairstyle to the wig in the reference image. Keep their face and background unchanged. |
Learn with Playground
In Live Playground, selecting a catalogue product fills the Prompt field with its fixed instruction. Uploading your own product image generates a short prompt from the product image. A spinner appears during generation; review and edit the suggestion before starting. If generation fails, write a prompt yourself or retry. Prompt preparation does not start a live session or deduct Mirror credits.
The visible Prompt field is the instruction sent when you click Start try-on or Apply changes. Changing the selection alone does not update a running stream. Automatic prompt generation is a Playground helper; public API integrations continue to supply their own prompts through the existing SDK.
Reference requirements and examples
- Use one sharp, well-lit garment image. Keep the neckline, sleeves and hem visible; crop unrelated people and scenery.
- Pass an image File or Blob: JPEG, PNG, WebP, AVIF or GIF; nonempty and at most 10 MiB. A clear image around 1,024 pixels on its longest edge is a starting point, not a required size.
- For headwear, name the actual item: baseball cap, beanie or bucket hat. For wigs, change the hairstyle while preserving the face.
- Prompt limit: 1,000 characters. Prompts guide the output; review identity, garment detail and fit rather than assuming perfect preservation.
tryon requires a reference image. For video_edit, supply an explicit prompt or a reference. Blank video-edit input without a reference is rejected before allocation.
Prompt and reference belong in the browser SDK, not the REST session-creation body.