| 开发者 |
beautifulplugins
kawsarahmedr |
|---|---|
| 更新时间 | 2026年6月14日 18:05 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
artificial-image-generator folder to /wp-content/plugins/.wp-config.php instead:
define( 'AIMG_API_KEY', 'sk-your-key-here' );No — only for AI prompt-based generation. Template-based image creation, including the automatic featured image on publish, runs entirely on your own server using PHP's built-in GD library. No external services, no API calls, no recurring costs.
Out of the box, the plugin calls OpenAI's DALL·E 3 API. Developers can swap the endpoint, model, or request body via the aimg_generate_endpoint and aimg_generate_request_body filters — so you can point it at compatible services (Stability AI, self-hosted SDXL via a compatible proxy, etc.).
You pay OpenAI directly for usage. As of 2026, DALL·E 3 standard images cost roughly $0.04 per generation. The plugin itself is free; you only pay your AI provider for the prompts you trigger.
By default, it's stored in the aimg_settings option in the WordPress database. For maximum security, define AIMG_API_KEY in wp-config.php instead — the settings UI will detect the constant and disable the input field, so the key never sits in the database.
Automatic generation only fires when a post is saved without a featured image. For existing content, open the post in the block editor and use the AI Featured Image panel to generate one on demand. Bulk generation across the entire site is on the roadmap.
Yes. The block editor integration is the plugin's flagship feature. You'll find the ✨ button on Image and Media & Text block toolbars and a dedicated AI Featured Image panel in the document sidebar.
The on-demand generation modal is built for Gutenberg. Automatic featured image generation works with every editor, because it hooks into the WordPress save_post action — so Classic Editor, Elementor, Divi, Beaver Builder, Bricks, and any other builder all benefit from auto-generated thumbnails.
Yes. Both the automatic generation and the editor integration apply to any public post type that supports featured images, including WooCommerce products, downloads, courses, and custom post types from third-party plugins.
Yes. Generated images are stored as standard Media Library attachments with proper alt text, so SEO plugins can read them, expose them in Open Graph and Twitter Card tags, and include them in sitemaps.
No. Image rendering uses PHP's GD library (already loaded) and only runs when a post is saved without a featured image — or when you explicitly trigger it from the editor. There's no background polling, no cron jobs, and no frontend overhead.
Yes. Each site on the network can configure its own templates and API key.
Template-based generation runs entirely on your server, nothing leaves your site. AI prompt-based generation sends only the prompt you type to OpenAI; no visitor data, post content, or personal information is transmitted unless you put it in the prompt.
Yes. The plugin is fully translation-ready with a bundled .pot file. Both PHP and JavaScript strings are translatable.
Use the plugin support forum on WordPress.org. We read every post.
aimg/v1/generate, aimg/v1/templates) with capability and nonce checks for headless and automation use.AIMG_API_KEY PHP constant for storing the API key outside the database.