=== MxChat Video Generation ===
Contributors: mxchat
Tags: ai, video generation, google veo, openai sora, veo 3, sora 2, artificial intelligence, video creation
Requires at least: 5.8
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Generate stunning AI videos using Google Veo and OpenAI Sora models directly from your WordPress dashboard.

== Description ==

MxChat Video Generation is a powerful addon plugin for MxChat that integrates both Google's Veo and OpenAI's Sora video generation models. Create high-quality AI-generated videos from text prompts with advanced features like audio generation, multiple aspect ratios, and optimized generation speeds.

= Key Features =

* **Multiple Video Providers**: Support for both Google Veo and OpenAI Sora models
* **Google Veo Models**: Veo 3.1, Veo 3.1 Fast, Veo 3, Veo 3 Fast, and Veo 2
* **OpenAI Sora Models**: Sora 2 (fast iteration) and Sora 2 Pro (production quality)
* **Audio Generation**: Veo 3.x and Sora models generate videos with native audio
* **Flexible Durations**: 4-8 seconds for Veo, 4-12 seconds for Sora
* **Multiple Resolutions**: 720p and 1080p options
* **Multiple Aspect Ratios**: 16:9 widescreen and 9:16 portrait
* **Reference Image Support**: Use images to guide video generation
* **Advanced Controls**: Negative prompts (Veo), aspect ratio, resolution, and duration selection
* **Automatic Save**: Generated videos are automatically saved to WordPress media library
* **Media Library Integration**: Seamless integration with WordPress media management
* **Generation History**: Track and manage previously generated videos
* **Real-time Status Tracking**: Monitor video generation progress with estimated completion times
* **Professional Interface**: Modern, intuitive admin interface with progress indicators

= Supported Models =

== Google Veo ==
* **Veo 3.1 (Preview)**: Latest model with enhanced video/audio, video extension, and reference images
* **Veo 3.1 Fast (Preview)**: Fast generation optimized for speed
* **Veo 3**: 720p/1080p videos with native audio, dialogue, and sound effects
* **Veo 3 Fast**: Optimized for faster generation while maintaining quality
* **Veo 2**: 5-8 second silent videos with stable performance

== OpenAI Sora ==
* **Sora 2**: Fast and flexible video generation for rapid iteration and exploration
* **Sora 2 Pro**: Production-quality output with higher fidelity for cinematic footage

= Model Specifications =

| Feature | Veo 3.x | Veo 2 | Sora 2 | Sora 2 Pro |
|---------|---------|-------|--------|------------|
| Aspect Ratios | 16:9, 9:16 | 16:9, 9:16 | 16:9, 9:16 | 16:9, 9:16 |
| Resolutions | 720p, 1080p | 720p | 720p, 1080p | 720p, 1080p |
| Durations | 4-8s | 5-8s | 4, 8, 12s | 4, 8, 12s |
| Audio | Yes | No | Yes | Yes |
| Reference Images | Yes | Yes | Yes | Yes |

= Important Requirements =

This plugin requires:
* Active MxChat installation with Pro license
* Google Gemini API key for Veo models
* OpenAI API key for Sora models
* Proper API permissions for video generation

== Installation ==

1. Install and activate the MxChat plugin with an active Pro license
2. Upload the plugin files to the `/wp-content/plugins/mxchat-veo` directory, or install directly through WordPress
3. Activate the plugin through the 'Plugins' menu in WordPress
4. Obtain a Google Gemini API key from [Google AI Studio](https://makersuite.google.com/app/apikey)
5. Navigate to MxChat → Video Generation in your WordPress admin
6. Configure your API key and enable video generation
7. Start creating AI videos from text prompts!

== Configuration ==

1. **Enable the Plugin**: Toggle video generation on in the settings modal
2. **Add API Key**: Enter your Google Gemini API key (starts with "AIza...")
3. **Test Generation**: Create your first video with a simple prompt like "A French bulldog running through a field of flowers"

== Frequently Asked Questions ==

= Do I need MxChat Pro to use this plugin? =

Yes, this addon requires an active MxChat Pro license to function.

= What API key do I need? =

You need a Google Gemini API key with access to Veo models. Get yours from Google AI Studio.

= How long does video generation take? =

Generation times vary by model:
* Veo 3.1 Fast / Veo 3 Fast: 8 seconds to 3 minutes
* Veo 3.1 / Veo 3: 11 seconds to 6 minutes
* Veo 2: 15 seconds to 5 minutes

= What video formats are supported? =

All models generate MP4 videos at 24fps. Resolution options:
* 720p: Available for all models
* 1080p: Available for Veo 3.x models only

= What durations are available? =

* Veo 3.x models: 4, 6, or 8 seconds
* Veo 2: 5, 6, or 8 seconds
* Sora 2 / Sora 2 Pro: 4, 8, or 12 seconds

= Can I generate videos with audio? =

Yes! Veo 3.1, Veo 3.1 Fast, Veo 3, and Veo 3 Fast models support native audio generation including dialogue and sound effects. Veo 2 generates silent videos.

= What aspect ratios are available? =

All models now support both aspect ratios:
* 16:9 Widescreen
* 9:16 Portrait

= Can I use reference images? =

Yes! All models support using a reference image as the starting frame. Veo 3.1 models additionally support up to 3 reference images to guide content generation and maintain character/style consistency throughout the video.

= Are there any content restrictions? =

The plugin includes built-in person generation controls and follows Google's AI usage policies for safe content generation.

= Where are generated videos stored? =

Videos are automatically saved to your WordPress media library and can be managed like any other media file.

= Do videos save automatically? =

Yes! As of version 1.0.52, all generated videos are automatically saved to your WordPress media library immediately after generation completes. No manual clicking required!

== Screenshots ==

1. Video Generation Interface - Create videos with advanced controls
2. Model Selection - Choose between Veo 3.1, Veo 3.1 Fast, Veo 3, Veo 3 Fast, and Veo 2
3. Generation Progress - Real-time status tracking with progress indicators
4. Video Results - Preview and save generated videos
5. Settings Panel - Configure API key and enable features
6. Video History - Browse previously generated videos

== Changelog ==

= 1.1.0 = 11.30.25
* NEW: Videos now save automatically to media library after generation
* Improved user experience - no need to manually click save
* Enhanced auto-save feedback with real-time status updates
* Manual save button still available as fallback option
* Better error handling for save operations

= 1.0.51 =
* Bug fixes and performance improvements

= 1.0.5 =
* Added support for OpenAI Sora 2 and Sora 2 Pro models
* Multiple provider support: Google Veo and OpenAI Sora
* Unified video generation interface
* Enhanced model selection with detailed specifications
* Improved API key management for multiple providers

= 1.0.4 = 28.11.25
* Added support for Veo 3.1 (Preview) model - latest with enhanced video and audio generation
* Added support for Veo 3.1 Fast (Preview) model - optimized for speed and business use cases
* Updated Veo 3 model code from preview to stable (veo-3.0-generate-001)
* Updated Veo 3 Fast model code from preview to stable (veo-3.0-fast-generate-001)
* Fixed Veo 3 API errors caused by outdated model endpoint names
* Added resolution selection (720p/1080p) - 1080p available for Veo 3.x models
* Added duration selection (4s, 5s, 6s, 8s) - model dependent options
* All models now support both 16:9 and 9:16 aspect ratios
* Veo 3.1 models support up to 3 reference images for content guidance
* Veo 3.1 models support video extension (extend previously generated videos)

= 1.0.3 = 9.8.25
* Added the ability to generate videos with a reference image.

= 1.0.2 =
* Bug fix with video history gallery. Added delete and download buttons.

= 1.0.1 =
* Updated Google Veo 3 API integration
* Improved error handling and user feedback
* Enhanced video download and save functionality
* Added support for new Veo 3 Fast model
* Better aspect ratio handling for different models

= 1.0.0 =
* Initial release
* Support for Google Veo 2 and Veo 3 models
* Text-to-video generation
* WordPress media library integration
* Advanced configuration options

== Upgrade Notice ==

= 1.0.52 =
Important update: Videos now save automatically to media library! No more manual saving required. Improved workflow and user experience.

= 1.0.5 =
Major update: Added OpenAI Sora 2 and Sora 2 Pro support! Now supports both Google Veo and OpenAI Sora models with unified interface.

= 1.0.4 =
Major update: Added Veo 3.1 and Veo 3.1 Fast preview models with video extension and multi-reference image support. Added resolution (720p/1080p) and duration (4-8s) selection. All models now support both aspect ratios. Fixed Veo 3 API errors.

== Privacy and Data ==

This plugin sends text prompts to Google's Veo API for video generation. Please review Google's privacy policies and ensure compliance with your local data protection regulations. Generated videos are stored locally in your WordPress media library.

== Support ==

For support and documentation, visit [MxChat.ai](https://mxchat.ai) or contact the MxChat support team.


mxchat-veo/
├── mxchat-veo.php                          # Main plugin file
├── readme.txt                              # WordPress plugin readme
├── update-checker.php                      # Update checker (copy from vision plugin)
├── includes/
│   ├── class-mxchat-veo-core.php          # Core functionality
│   ├── class-mxchat-veo-settings.php      # Admin settings page
│   ├── class-veo-processor.php            # Veo API processor
│   ├── class-sora-processor.php           # Sora API processor
│   └── class-veo-models.php               # Veo models handler
└── admin/
    ├── css/
    │   └── veo-admin.css                   # Admin styles
    └── js/
        └── veo-admin.js                    # Admin JavaScript