WordPress\AiClient\Providers\Models\ImageGeneration\Contracts

ImageGenerationModelInterface::generateImageResult │ public │ WP 0.1.0

Generates images from a prompt.

Метод класса: ImageGenerationModelInterface{}

Хуков нет.

Возвращает

GenerativeAiResult. Result containing generated images.

Использование

$ImageGenerationModelInterface = new ImageGenerationModelInterface();
$ImageGenerationModelInterface->generateImageResult( $prompt ): GenerativeAiResult;
$prompt(list) (обязательный)
Array of messages containing the image generation prompt.

Список изменений

С версии 0.1.0 Введена.

Код ImageGenerationModelInterface::generateImageResult() WP 7.1.2

public function generateImageResult(array $prompt): GenerativeAiResult;