diff --git a/src/Contracts/ImageProviderInterface.php b/src/Contracts/ImageProviderInterface.php index c42461b..7e5a8cd 100644 --- a/src/Contracts/ImageProviderInterface.php +++ b/src/Contracts/ImageProviderInterface.php @@ -25,11 +25,14 @@ interface ImageProviderInterface /** * Generate images from a text prompt. * + * Providers name their own sizes, so `imageSize` is whatever string the provider + * understands: "1K", "2K" and "4K" on Google, "1024x1024" on OpenAI. + * * @param string $prompt The image generation prompt * @param array{ * model?: string, * aspectRatio?: string, - * imageSize?: int, + * imageSize?: string, * numberOfImages?: int, * } $options Provider-specific options * @return array{images: array} @@ -44,7 +47,7 @@ public function generateImage(string $prompt, array $options = []): array; * @param array{ * model?: string, * aspectRatio?: string, - * imageSize?: int, + * imageSize?: string, * } $options Provider-specific options * @return array{images: array, text: string} */