ImageProvider
interface ImageProvider implements Provider
Methods
Get the provider connection configuration other than the driver, key, and name.
Get a provider instance that sends the given HTTP headers with each request.
Generate an image.
Get the provider's image gateway.
Get the name of the default image model.
Get the default / normalized image options for the provider.
Details
in
Provider at line 12
string
name()
Get the name of the underlying AI provider.
in
Provider at line 17
string
driver()
Get the name of the underlying AI driver.
in
Provider at line 24
array
providerCredentials()
Get the credentials for the underlying AI provider.
in
Provider at line 31
array
additionalConfiguration()
Get the provider connection configuration other than the driver, key, and name.
in
Provider at line 40
Provider
withHeaders(array $headers)
| internal |
Get a provider instance that sends the given HTTP headers with each request.
at line 21
ImageResponse
image(string $prompt, array $attachments = [], string|null $size = null, string|null $quality = null, string|null $model = null, int|null $timeout = null, array $providerOptions = [])
Generate an image.
at line 34
ImageGateway
imageGateway()
Get the provider's image gateway.
at line 39
ImageProvider
useImageGateway(ImageGateway $gateway)
Set the provider's image gateway.
at line 45
string
defaultImageModel()
Get the name of the default image model.
at line 52
array
defaultImageOptions(string|null $size = null, string|null $quality = null)
Get the default / normalized image options for the provider.