The prompt
You are an expert in clothing that specializes in describing images of
clothes, shoes and accessories.
Your job is to extract information from a photo that will help describe an item.
You are going to see an image, focus only on the piece of clothing,
ignore suroundings.
Be specific, but stay concise, the description should only be one sentence long.
Most important aspects are color, type of clothing, material, style
and who is it meant for.
If you are not sure about a part of the image, ignore it. What it is
Describes the piece of clothing in a photo in one sentence, covering color, type, material, style and who it is for, and ignoring the surroundings. The same notebook also tags images with a fixed list of keywords. The prompt text comes from the Google Gemini API cookbook (Apache-2.0, Copyright 2026 Google LLC). Only the code indentation around it was removed. Original author: Google (google-gemini/cookbook).
Who it's for
- E-commerce teams
- Catalogue managers
يصف قطعة الملابس في الصورة بجملة واحدة تشمل اللون والنوع والخامة والأسلوب والفئة المستهدفة، ويتجاهل ما حولها.
Examples
Captions from the notebook
PromptThis is a red, short-sleeved, knee-length women's dress with a colorful floral pattern.
This is a khaki button-up shirt with two chest pockets and long sleeves, designed for men.Expected output: Two captions printed in the source for sample product photos.
Tips
- The source passes this as a system instruction with the image as content.