=== Artificial Poets – AI for WP, Image Generation, & More ===
Contributors: artificialpoets
Tags: ai, artificial intelligence, ai content, ai wordpress plugin, image generation, video generation, chatgpt, audio generation, podcast ai, ai tools, generative ai, openai
Requires at least: 5.2
Tested up to: 6.8
Stable tag: 0.1
Requires PHP: 7.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

AI-powered plugin for image generation, upcoming video/audio tools, and content optimization – easy to use, no coding required.

== Description ==

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.


== Frequently Asked Questions ==

= What is Artificial Poets, and how does it work? =

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.

= Do I need any technical knowledge to use Artificial Poets? =

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.

= Can I use AI to generate images, videos, and audio directly in WordPress? =

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.

## 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:

```bash
npm run plugin-zip
```

## Project Structure

```
/
├── 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](https://api.artificialpoets.com) 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.


== Screenshots ==

1. **Activate your license** - we offer FREE credits for every WordPress site.
2. **Get familiar with your dashboard** - see important usage information and access quickly to your features.
3. **Generate your own re-usable styles** - create and re-use styles across your WordPress site.
4. **Easy and fast UI** – our AI for WordPress is simple to use and works with Gutenberg.
5. **Generate Images for your writings** - with one-click you can illustrate your ideas.

== Changelog ==

= v0.1 - 2025-05-05 =

* Welcome to Artificial Poets!
* Our innitial version supports Image Generation and Custom Styles.
