# optin/trunk/includes/integrations/base/class-ai-integration.php

WowOptin: Next-Gen Popup Maker – Create Stunning Popups and Optins for Lead Generation, version trunk. 37 lines.

- Page: https://pluginprobe.com/plugins/optin/trunk/code/includes/integrations/base/class-ai-integration.php
- Raw: https://pluginprobe.com/plugins/optin/trunk/raw/includes/integrations/base/class-ai-integration.php
- Modified: 2026-05-06T10:46:56+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/optin/trunk/code/includes/integrations/base/class-ai-integration.php#L10-L20`.

```php
<?php // phpcs:ignore
/**
 * AI Integration Interface
 *
 * @package optin
 * @subpackage optin/intergrtions
 */

namespace OPTN\Includes\Integrations\Base;

use OPTN\Includes\Dto\ModelInput;

interface AiIntegration {

	/**
	 * Constructor
	 *
	 * @param int $account_id account id.
	 */
	public function __construct( $account_id );

	/**
	 * Generate text.
	 *
	 * @param ModelInput $input model input.
	 * @return string|WP_Error
	 */
	public function generate_text( ModelInput $input );

	/**
	 * Get models.
	 *
	 * @return array
	 */
	public static function get_models();
}

```
