OpenAIImages class
OpenAI Image Generation capability implementation
This module handles image generation functionality for OpenAI providers.
- Implemented types
Constructors
- OpenAIImages.new(OpenAIClient client, OpenAIConfig config)
Properties
- client → OpenAIClient
-
final
- config → OpenAIConfig
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- supportsImageEditing → bool
-
Check if the provider supports image editing
no setteroverride
- supportsImageVariations → bool
-
Check if the provider supports image variations
no setteroverride
Methods
-
createVariation(
ImageVariationRequest request) → Future< ImageGenerationResponse> -
Create variations of an existing image
override
-
editImage(
ImageEditRequest request) → Future< ImageGenerationResponse> -
Edit an existing image based on a prompt
override
-
generateImage(
{required String prompt, String? model, String? negativePrompt, String? imageSize, int? batchSize, String? seed, int? numInferenceSteps, double? guidanceScale, bool? promptEnhancement}) → Future< List< String> > -
Simple image generation (convenience method)
override
-
generateImages(
ImageGenerationRequest request) → Future< ImageGenerationResponse> -
Generate images from text prompts
override
-
getSupportedFormats(
) → List< String> -
Get supported response formats for this provider
override
-
getSupportedSizes(
) → List< String> -
Get supported image sizes for this provider
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited