Artificial Poets – AI for WP, Image Generation, & More

Artificial Poets is an all-in-one AI plugin for WordPress that helps you enhance your content with image generation, audio, and soon video capabilities — all directly from your WordPress dashboard.

Current features:
– ?? AI Image Generation: Automatically generate images for paragraphs or full posts
– ?? Custom Image Styles: Save and reuse your favorite visual styles
– ? Easy to Use: No external APIs or coding required

Coming soon:
– ?? AI Video Generation: Turn your posts into short videos
– ?? Text-to-Podcast: Instantly convert any article into audio
– ?? Smart Search: Add natural language search to your website
– ?? AI Chat Widget: Let visitors interact with your content via AI chat

Perfect for bloggers, agencies, and creators who want to save time and stand out using the latest AI tools — all within WordPress.

Source Code

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 .

Installation and how to run

To set up the development environment and compile the project, follow these steps:

Install all required dependencies

npm install
npm run start

Generate Plugin ZIP

To generate a ZIP file of the plugin for distribution or installation:

npm run plugin-zip
<h3>Project Structure</h3>
/
├── src/ # JS and CSS code
├── phpsrc/ # PHP files
├── node_modules/
├── package.json
└── README.md
`

External Services

This plugin integrates with the external API provided by Artificial Poets to offer a range of functionalities, as detailed below:

API Endpoints

  • Validate API Key
    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.

    Request body:

    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.

0

评论0

 
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
显示验证码
没有账号?注册  忘记密码?

社交账号快速登录