From 87eb2a2a545435680c15908055463ff97e3d3676 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 6 Jul 2026 17:18:54 +0000 Subject: [PATCH] Regenerate README file --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ce0da62..79e2043 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,7 @@ wp ai check [--type=] Generates AI content. ~~~ -wp ai generate [--model=] [--provider=] [--temperature=] [--top-p=] [--top-k=] [--max-tokens=] [--system-instruction=] [--destination-file=] [--stdout] [--format=] +wp ai generate [--model=] [--provider=] [--temperature=] [--top-p=] [--top-k=] [--max-tokens=] [--system-instruction=] [--image=] [--destination-file=] [--stdout] [--format=] ~~~ **OPTIONS** @@ -120,6 +120,9 @@ wp ai generate [--model=] [--provider=] [--tem [--system-instruction=] System instruction to guide the AI's behavior. + [--image=] + 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. + [--destination-file=] For image generation, path to save the generated image. @@ -152,6 +155,15 @@ wp ai generate [--model=] [--provider=] [--tem # Generate with system instruction $ wp ai generate text "Explain AI" --system-instruction="Explain as if to a 5-year-old" + # Generate text from a prompt with an image + $ wp ai generate text "Describe this image" --image=photo.jpg + + # Generate alt text for an attachment + $ wp ai generate text "Generate alt text for this image" --image=42 + + # Generate text with an image URL + $ wp ai generate text "What is in this image?" --image=https://example.com/photo.jpg + # Generate image $ wp ai generate image "A minimalist WordPress logo" --destination-file=wp-logo.png