开发者 | artificialpoets |
---|---|
更新时间 | 2025年5月8日 07:16 |
PHP版本: | 7.2 及以上 |
WordPress版本: | 6.8 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
Artificial Poets is an all-in-one AI-powered WordPress plugin that enhances content creation, media generation, and search capabilities. It seamlessly integrates with your website, allowing you to generate images, videos, and audio while optimizing content and improving search with natural language processing—without requiring external accounts or technical skills.
No. Artificial Poets is designed for ease of use. Just install, activate, and start generating AI-powered content and media instantly—no coding or external API setup required.
Yes! Artificial Poets allows you to generate images, videos, and audio directly from your WordPress dashboard, using AI-powered tools that analyze your content and provide media that matches your posts automatically.
This project contains both JavaScript/CSS and PHP code, organized as follows:
src/
: Contains all JavaScript and CSS source code without minification.phpsrc/
: Contains all PHP source files without minification .To set up the development environment and compile the project, follow these steps: Install all required dependencies npm install npm run start
To generate a ZIP file of the plugin for distribution or installation:
bash
npm run plugin-zip
/
├── src/ # JS and CSS code
├── phpsrc/ # PHP files
├── node_modules/
├── package.json
└── README.md
This plugin integrates with the external API provided by Artificial Poets to offer a range of functionalities, as detailed below:
POST https://api.artificialpoets.com/wp/sites/validate
Validates the user’s API key and sends basic site information. This is executed only once during API key activation.json
{
"site_name": "The horse",
"site_url": "https://example.com",
"admin_user": "admin",
"admin_email": "admin@admin.com",
"description": "A blog about horses"
}
* Get Current Credits
GET https://api.artificialpoets.com/wp/sites/getCredits
Retrieves the current available credits. This is called when generating images or adding styles.
* Add New Style
POST https://api.artificialpoets.com/wp/prompts/addNewStyle
Adds a new custom style.
Request body:
json
{
"prompt": "A majestic horse running through a field",
"title": "The Horse"
}
* List Private Styles
GET https://api.artificialpoets.com/wp/prompts/listPrivateStyles
Lists all private (user-specific) styles.
* Delete Private Style
DELETE https://api.artificialpoets.com/wp/prompts/deletePrivateStyle
Deletes a specific private style.
* Generate Image
POST https://api.artificialpoets.com/wp/ai-images/
Generates an AI-generated image based on provided content. The request contains data from the form textarea associated with the current post.
Request body:
json
{
"text": "A painting of a beautiful sunset over the ocean",
"size": "Medium size",
"style": "Impressionist"
}
* List Available Styles and Models
GET https://api.artificialpoets.com/wp/sites/getInfoAboutStylesAndModels
Retrieves information about all available styles and models.