(edited)
I have been seeing the doc and I had only find the below example. Someone knows how to get it?
import { generateText } from 'ai';import 'dotenv/config'; async function main() { const result = await generateText({ model: 'google/gemini-3-pro-image', prompt: `Create a detailed illustration of a turquoise-throated puffleg hummingbird resting on a branch covered with dew at sunrise`, }); // Print any text response from the model if (result.text) { console.log(result.text); } // Images are available in result.files console.log(`Generated ${result.files.length} image(s)`); console.log('Usage:', JSON.stringify(result.usage, null, 2));} main().catch(console.error);