handbook/commands/ai.md
github-actions[bot] ff2a543077 Regenerate handbook
2026-07-21 08:35:57 +00:00

31 lines
869 B
Markdown

# wp ai
Interacts with the WordPress AI Client for text and image generation.
### EXAMPLES
# Check AI capabilities status
$ wp ai status
+------------------+-----------+
| Capability | Supported |
+------------------+-----------+
| Text Generation | Yes |
| Image Generation | No |
+------------------+-----------+
# Generate text from a prompt
$ wp ai generate text "Write a haiku about WordPress"
Success: Generated text:
Open source and free
Empowering creators
WordPress shines bright
# Generate an image from a prompt
$ wp ai generate image "A futuristic WordPress logo" --destination-file=logo.png
Success: Image saved to logo.png
# Check if a prompt is supported
$ wp ai check "Summarize this text"
Success: Text generation is supported for this prompt.