Image generation options including model, prompt, and optional parameters.
A promise resolving to the generation result with image data and metadata.
const result = await generateImage({
model: 'openai:dall-e-3',
prompt: 'A photorealistic red panda sitting on a moonlit rooftop.',
size: '1024x1024',
});
console.log(result.images[0].url);
Generates one or more images using a provider-agnostic
provider:modelstring.Resolves credentials via
resolveMediaProvider(), initialises the matching image provider, and returns a normalised GenerateImageResult.