Maho_Ai_Model_Platform_ImageProviderInterface
in
Table of Contents
Methods
- generateImage() : string
- Generate an image from a text prompt.
- getImagePlatformCode() : string
- Get the platform code (e.g. 'openai', 'google')
- getLastImageModel() : string
- Get the model used in the last generateImage() call
Methods
generateImage()
Generate an image from a text prompt.
public
generateImage(string $prompt[, array<string, mixed> $options = [] ]) : string
Parameters
- $prompt : string
- $options : array<string, mixed> = []
-
Supports: width (int), height (int), quality (string), style (string), model (string)
Return values
string —URL (https://...) for providers that return URLs, or data URI (data:image/png;base64,...) for providers that return binary
getImagePlatformCode()
Get the platform code (e.g. 'openai', 'google')
public
getImagePlatformCode() : string
Return values
stringgetLastImageModel()
Get the model used in the last generateImage() call
public
getLastImageModel() : string