Loading the Kaya editor…
// Uses the Image model you configure in Settings → Images.
let image = generateImage(
prompt: "A serene mountain landscape at sunset",
filename: "sunset.png"
)
"Generated: {{image.filename}} ({{image.mimeType}}, {{image.size}} bytes)"
"Here's the sunset: {{image | image}}"