AI Product Video — Product Video Generation + Pop-up Gallery
The module has been tested on OpenCart 3.x. Operation on other versions is not guaranteed.
Sales and technical support of the module for online stores are not provided in the Russian Federation and the Republic of Belarus.
The module code is unencrypted, without ionCube or obfuscation. You can freely view and modify the code.
AI Product Video — Automatic Product Video Generation with Google Veo
AI Product Video is a module for OpenCart and ocStore that automatically creates promotional videos based on a product image and product information.
The module sends the product’s main image, name, description, model, SKU, attributes, and a prepared prompt to Google Veo. Once generation is complete, the finished MP4 file is automatically downloaded to the store server, linked to the product, and can be displayed in its gallery.
The package also includes the advanced Product Video in a Pop-up Window modification, which allows you to manage generated and manually added videos directly from the product edit page.
Main Module Features
- Product video generation via the Google Gemini API and Veo 3.1 models
- Vertical 9:16 video creation for Shorts, Reels, and TikTok
- Horizontal 16:9 video creation
- Support for 720p and 1080p resolutions
- Video duration: 4, 6, or 8 seconds
- Support for Veo 3.1 Lite, Fast, and Standard models
- Automatic upload of the finished MP4 file to the store server
- Automatic linking of the generated video to the corresponding product
- Manual generation or automatic processing via cron
- Persistent task queue showing the status of each video
Using Product Information
The module automatically creates a prompt based on product data. The following variables can be used in the prompt template:
- {name} — product name
- {description} — product description
- {model} — product model
- {sku} — product SKU
- {attributes} — product attributes and specifications
A custom prompt can be specified for an individual product. If the field is left empty, the module will use the general template from the settings.
Flexible Generation Settings
- Google Veo model selection
- 9:16 or 16:9 format selection
- 720p or 1080p resolution selection
- 4, 6, or 8 second duration selection
- Custom prompt template
- Option to prevent new text from being added to the video
- Option to allow text only in the selected language
- Preservation of original logos and text on the product or packaging
- Audio settings: no audio, background sounds, or instrumental music
Adding Products to the Queue
The module allows you to add either individual products or groups of products to the queue based on specified conditions.
- One selected product
- Products without videos
- All store products
- Products from a selected category
- Products from a selected manufacturer
- Filter by product status
- Filter by date added
- Limit the number of products added to the queue
Task Statuses
- Pending — the product has been added to the queue but has not yet been sent to Google
- Processing — Google Veo is creating the video
- Completed — the video has been uploaded to the server and linked to the product
- Error — a Google API message or a local error is displayed
Automatic Processing via Cron
In the settings, the module generates a ready-to-use cron URL and a crontab command. The recommended run frequency is once per minute.
- Cron starts new tasks from the queue
- Checks the status of videos that are already being generated
- No more than two requests are sent to Google per run
- No more than one new video is started per run
- The cron URL is protected by a secret key
- If the module is disabled, cron does not start generation or contact the Google API
- If a quota limit error occurs, the task remains in the queue for retrying
Managing Finished Videos
A separate tab is provided in the administration panel for generated videos.
- Preview the finished video
- Download the MP4 file to your computer
- Open the product page in the storefront
- Go to the product video editing page
- Display the product name and model
- Delete the video file and remove its link to the product
- Pagination for the finished video list
Storage and File Names
- A custom storage directory can be specified inside the image/ directory
- The directory is created automatically
- A custom video file name template can be configured
- The variables {name}, {model}, {sku}, {product_id}, and {number} are supported
- The video number prevents overwriting when several videos are created for the same product
The Product Video in a Pop-up Window Modification Is Included
An advanced modification for managing videos on the product page is installed together with the generator.
Supported Video Sources
- AI 9:16 — vertical video created by the module
- AI 16:9 — horizontal video created by the module
- URL — local or external video file
- YouTube — horizontal 16:9 video
- YouTube Shorts — vertical 9:16 video
- Vimeo
Product Video Management Features
- A separate “Video” tab on the product edit page
- Add multiple videos to one product
- Enable or disable an individual video
- Configure the sort order
- Video preview in the administration panel
- Select a local video file using the OpenCart file manager
- Automatic detection and normalization of YouTube, Shorts, and Vimeo IDs
For YouTube, YouTube Shorts, and Vimeo, only the video ID is stored in the database. Full links are automatically converted to IDs when the product is saved.
Displaying Videos on the Product Page
- Videos are displayed among the product’s additional images
- The original video thumbnail is used for YouTube and Vimeo
- The main product image is used for local and AI-generated videos
- The video opens in a pop-up window without redirecting to a third-party website
- Correct display of 9:16 and 16:9 formats
- Support for local MP4 files
SEO and Structured Data
The modification adds Schema.org VideoObject structured data to the product page.
The structured data includes:
- Video name
- Video description
- Thumbnail URL
- Video URL
- Embedded player URL
- Product publication date
Theme Compatibility
- default — integration is included in the main modification
Other custom themes may require a separate gallery structure adaptation. Adaptation of third-party themes is not included in the module’s standard price.
Google Veo Generation Cost
Important: video generation is performed through the paid Google Gemini API. Google API usage fees are not included in the module price and are paid directly to Google by the store owner.
To use the module, you must create an API key in Google AI Studio and enable paid billing. A free tier is not available for Veo.
Below is an approximate calculation based on the official Google Veo 3.1 pricing. The VAT columns include 20% VAT.
| Model | Resolution | Price per second excluding VAT | Price per second including 20% VAT | 4 seconds incl. VAT | 6 seconds incl. VAT | 8 seconds incl. VAT |
|---|---|---|---|---|---|---|
| Veo 3.1 Lite | 720p | $0.05 | $0.06 | ≈ $0.24 | ≈ $0.36 | ≈ $0.48 |
| Veo 3.1 Lite | 1080p | $0.08 | $0.096 | — | — | ≈ $0.77 |
| Veo 3.1 Fast | 720p | $0.10 | $0.12 | ≈ $0.48 | ≈ $0.72 | ≈ $0.96 |
| Veo 3.1 Fast | 1080p | $0.12 | $0.144 | — | — | ≈ $1.15 |
| Veo 3.1 Standard | 720p | $0.40 | $0.48 | ≈ $1.92 | ≈ $2.88 | ≈ $3.84 |
| Veo 3.1 Standard | 1080p | $0.40 | $0.48 | — | — | ≈ $3.84 |
Note: for 1080p, Google supports only an 8-second duration. According to Google, you are charged only for successfully generated videos.
Google pricing, taxes, billing rules, and preview model availability may change. The actual amount charged depends on the country and type of payment profile, the bank’s exchange rate, currency conversion, and Google Billing tax settings.
Current pricing is available on the official page: Google Gemini API Pricing.
Benefits
- Automation of video content creation for large catalogs
- No need to edit each product video manually
- Professional product presentation in the catalog
- Support for popular vertical and horizontal formats
- Improved visitor engagement
- Increased trust in the product and the store
- Potential to improve product page conversion rates
- Finished videos can be used on the website and uploaded to social media
- Automatic storage of videos on your own server
- Convenient management of all videos from the administration panel
Security
- The cron URL is protected by a separate secret key
- When the module is disabled, both manual and automatic generation are blocked
Compatibility
- OpenCart 3.x
- ocStore 3.x
- Tested on ocStore/OpenCart 3.0.4.x
- PHP 7.2 or a newer compatible version
System Requirements
- PHP cURL
- PHP mbstring
- Ability to make outbound HTTPS requests to the Google API
- Writable image/catalog directory
- Cron configured on the server or in the hosting control panel
- Active paid Google Gemini API billing
Important Limitations
- Currently, one main product image is sent to Google
- The Google Veo result is saved in MP4 format
- Available durations are 4, 6, or 8 seconds
- Only an 8-second duration is available for 1080p
- The generated result depends on the image, prompt, and capabilities of the Google model
- The module does not guarantee identical results when generation is repeated
- Model limits and availability are determined by Google
Installation
- Upload the module archive via “Extensions → Installer”
- Go to “Extensions → Modifications” and refresh the modification cache
- Open “Extensions → Extensions → Modules”
- Install the “AI Product Video (Google Veo)” module
- Open the module settings
- Enter the Gemini API key and generation parameters
- Save the settings
- Add the generated cron URL or crontab command in your hosting control panel
There is no need to run SQL queries manually. The required database tables are created automatically during module installation using the OpenCart database prefix.
What Is Included
- AI Product Video generation module
- Manual and automatic generation queue
- Finished video management page
- Product Video in a Pop-up Window modification for the product page
- Integration with the standard default theme
- Ukrainian, Russian, and English localizations
- Built-in step-by-step setup guide
License
One license applies to one domain and its subdomains.
Google Gemini API services, video generation fees, third-party hosting configuration, and adaptation of custom themes are not included in the module license price.
ocStore 3.x
English
Russian
English
Russian
PHP 8.0-8.3
There are no reviews for this product, be the first to leave your review.