@@ -83,7 +83,7 @@ wp ai check <prompt> [--type=<type>]
8383Generates AI content.
8484
8585~~~
86- wp ai generate <type> <prompt> [--model=<models>] [--provider=<provider>] [--temperature=<temperature>] [--top-p=<top-p>] [--top-k=<top-k>] [--max-tokens=<tokens>] [--system-instruction=<instruction>] [--destination-file=<file>] [--stdout] [--format=<format>]
86+ wp ai generate <type> <prompt> [--model=<models>] [--provider=<provider>] [--temperature=<temperature>] [--top-p=<top-p>] [--top-k=<top-k>] [--max-tokens=<tokens>] [--system-instruction=<instruction>] [--image=<image>] [-- destination-file=<file>] [--stdout] [--format=<format>]
8787~~~
8888
8989** OPTIONS**
@@ -120,6 +120,9 @@ wp ai generate <type> <prompt> [--model=<models>] [--provider=<provider>] [--tem
120120 [--system-instruction=<instruction>]
121121 System instruction to guide the AI's behavior.
122122
123+ [--image=<image>]
124+ An image to use as input for text or image generation. Can be a local file path, a URL, a data URI, or a WordPress attachment ID.
125+
123126 [--destination-file=<file>]
124127 For image generation, path to save the generated image.
125128
@@ -152,6 +155,15 @@ wp ai generate <type> <prompt> [--model=<models>] [--provider=<provider>] [--tem
152155 # Generate with system instruction
153156 $ wp ai generate text "Explain AI" --system-instruction="Explain as if to a 5-year-old"
154157
158+ # Generate text from a prompt with an image
159+ $ wp ai generate text "Describe this image" --image=photo.jpg
160+
161+ # Generate alt text for an attachment
162+ $ wp ai generate text "Generate alt text for this image" --image=42
163+
164+ # Generate text with an image URL
165+ $ wp ai generate text "What is in this image?" --image=https://example.com/photo.jpg
166+
155167 # Generate image
156168 $ wp ai generate image "A minimalist WordPress logo" --destination-file=wp-logo.png
157169
0 commit comments