Download the PHP package mageprince/magento2-mage-ai without Composer

On this page you can find all versions of the php package mageprince/magento2-mage-ai. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package magento2-mage-ai

Magento 2 MageAI Extension

This Magento 2 extension integrates OpenAI (GPT), Anthropic (Claude), and Google Gemini to automatically generate high-quality short and long product descriptions, AI-generated product images, and AI image editing of existing product photos — based on product attributes like name, features, material, and more. It's a powerful tool to save time and improve content quality across your catalog.

❤️ The goal of this extension is to remain fully open-source and continuously expand by integrating every possible way to use AI with Magento 2. From writing content to helping customers, improving SEO, or automating tasks — the idea is to make Magento and AI work great together. I'm building it to be flexible and helpful for everyone, and I'd love for others to join in. If you're into Magento or AI, your ideas and contributions are always welcome. Let's create something awesome together!

Features

Supported AI Providers

Provider Models
Google Gemini (default) gemini-3.8-flash, gemini-3.7-flash, gemini-3.6-flash, gemini-3.5-flash, gemini-3.5-flash-lite, gemini-3.1-flash-lite, gemini-2.5-pro, gemini-2.5-flash, gemini-2.5-flash-lite
OpenAI (ChatGPT) gpt-6-astra, gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna, gpt-4o, gpt-4o-mini
Anthropic (Claude) claude-fable-5-1, claude-opus-5, claude-sonnet-5, claude-haiku-4-5, plus the 4.x legacy models

Usage

Setup

  1. Go to Stores > Configuration > Mageprince > MageAI
  2. Choose your preferred AI Provider (Gemini, OpenAI, or Anthropic)
  3. Enter the API key for the selected provider
  4. Select the model and tune max tokens / temperature as needed
  5. If you plan to use the image features, configure Product Image Generation Configuration and Category Image Generation Configuration — each group has its own prompts, image model, size and quality, so category banners can differ from product shots (category images default to a landscape banner)
  6. Save the configuration

All features below work on both new (unsaved) and existing products. Remember to save the product to persist generated content and images.

Generate Descriptions

  1. Open any product and locate the Short or Long Description editor
  2. Click "Generate with MageAI"
  3. The AI generates polished, HTML-ready content based on the product name and the attributes you selected in config
  4. Review and save the product

Custom Prompt (Descriptions)

Click "Advanced Generate with MageAI" to open the custom prompt modal and type any free-form instruction — the module skips attribute lookup and sends your prompt directly to the AI.

Generate Product Image

Click "Generate Image with MageAI" next to the Add Video button in the Images And Videos section. Enter a prompt (or leave it empty to use the default configured prompt) and the generated image is added straight to the product gallery. Available with the OpenAI and Gemini providers.

Edit Product Image

Click "Edit Image with MageAI" (next to the generate button) to open a popup listing the product's current images. Click "Edit with MageAI" under any image, describe the change in a prompt (or leave it empty to use the default configured modify prompt), and the AI returns an edited version shown side-by-side with the original. Click Confirm & Replace to swap the original image with the edited one — its base/role, position, and visibility are preserved, and the change is saved with the product. Available with the OpenAI and Gemini providers.

Generate Category Image

Open any category and click "Generate Image with MageAI" next to the Upload / Select from Gallery buttons of the Category Image field. Enter a prompt (or leave it empty to use the default configured category prompt, which produces a wide banner-style image) and the generated image is set as the category image straight away. Save the category to persist it. Available with the OpenAI and Gemini providers.

Edit Category Image

Click "Edit Image with MageAI" next to the generate button, describe the change in a prompt (or leave it empty to use the default configured category modify prompt), and the AI returns an edited version shown side-by-side with the original. Click Confirm & Replace to make it the category image. Available with the OpenAI and Gemini providers.

Prompt Templates

Product description and product image prompts support two variables:

Category image prompts support:

How to Install

Install via Composer

Run the following commands in your Magento 2 root folder:

Contribution

Contributions are highly welcome and encouraged! 🙌

This project is a personal open-source effort to bring the power of AI to Magento 2. Whether you want to:

You're very welcome to join in.

To contribute:

  1. Fork the repository
  2. Create your feature branch: git checkout -b feature/my-feature
  3. Commit your changes: git commit -m 'Add new feature'
  4. Push to the branch: git push origin feature/my-feature
  5. Create a new Pull Request

Screenshots

Edit Product Image

mageprince-mageai-edit-image

Generate Product Image

mageprince-mageai-image-generati

Generate Descriptions with Custom Prompt

mageprince-mageai-final

Generate Product Short Description

short-description

Generate Product Long Description With Page Builder

full-description-short


All versions of magento2-mage-ai with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mageprince/magento2-mage-ai contains the following files

Loading the files please wait ...