wordpress_generate_and_upload_image
Generate an image using AI (DALL-E, Stability, or Flux) and upload it directly to your WordPress media library, with options to attach to a post or set as featured image.
Instructions
[UNIFIED] Generate an image with an AI provider (OpenAI DALL-E, Stability, or Replicate Flux) and upload it to the WordPress media library in one call. Optionally attach to a post or set as featured image. Uses the caller's stored provider API key; falls back to server env vars if no per-user key is set.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | ||
| size | No | 1024x1024 | |
| model | No | ||
| title | No | ||
| prompt | Yes | ||
| caption | No | ||
| quality | No | standard | |
| alt_text | No | ||
| filename | No | ||
| provider | Yes | ||
| convert_to | No | ||
| set_featured | No | ||
| skip_optimize | No | ||
| attach_to_post | No | ||
| negative_prompt | No |