Title: wp ai
Published: October 6, 2026
Last modified: October 7, 2026

---

# 󠀁[wp ai <command>](https://developer.wordpress.org/cli/commands/ai/)󠁿

Interacts with the WordPress AI Client for text and image generation.

## In this article

 * [Examples](https://developer.wordpress.org/cli/commands/ai/?output_format=md#examples)
 * [Subcommands](https://developer.wordpress.org/cli/commands/ai/?output_format=md#subcommands)

[ Back to top](https://developer.wordpress.org/cli/commands/ai/?output_format=md#wp--skip-link--target)

 [ ⌊GitHub⌉ ](https://github.com/wp-cli/ai-command)

 [ View Open Issues (0) ](https://github.com/login?return_to=%2Fissues%3Fq%3Dlabel%3Acommand%3Aai+sort%3Aupdated-desc+org%3Awp-cli+is%3Aopen)
[ View Closed Issues (6) ](https://github.com/login?return_to=%2Fissues%3Fq%3Dlabel%3Acommand%3Aai+sort%3Aupdated-desc+org%3Awp-cli+is%3Aclosed)
[Create New Issue](https://github.com/wp-cli/ai-command/issues/new)

### 󠀁[Examples](https://developer.wordpress.org/cli/commands/ai/?output_format=md#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.
    ```

### 󠀁[Subcommands](https://developer.wordpress.org/cli/commands/ai/?output_format=md#subcommands)󠁿

| Name | Description | 
| [wp ai check](https://developer.wordpress.org/cli/commands/ai/check/) |

Checks if a prompt is supported for generation.

  | 
| [wp ai generate](https://developer.wordpress.org/cli/commands/ai/generate/) |

Generates AI content.

  | 
| [wp ai is-supported](https://developer.wordpress.org/cli/commands/ai/is-supported/) |

Checks whether AI features are supported in the current environment.

  | 
| [wp ai status](https://developer.wordpress.org/cli/commands/ai/status/) |

Checks which AI capabilities are currently supported.

  |

 _Command documentation is regenerated at every release. To add or update an example,
please submit a pull request against the corresponding part of the codebase._