Not generating image as stated in the prompt in AI Studio

As shown in this screenshot, instead of giving the image it gives me these codes…

Code pasted here but there’s some formatting issue regarding the math equation…

[asy]
size(8cm);
import graph;
real f(real x) {return x^2;}
real g(real x) {return 0.5x^2;}
real h(real x) {return 0.25x^2;}

draw(graph(f,-3,3), linewidth(2));
draw(graph(g,-3,3), dashed, linewidth(1.5)+green);
draw(graph(h,-3,3), dotted, linewidth(1.5)+blue);

xaxis("
x
x
",Arrows);
yaxis("
y
y
",Arrows);

label("
f
(
x
)
=
x
2
f(x)=x 
2
 
", (3,9), E);
label("
g
(
x
)
=
1
2
x
2
g(x)= 
2
1
​
 x 
2
 
", (3,4.5), E, green);
label("
h
(
x
)
=
(
1
2
x
)
2
h(x)=( 
2
1
​
 x) 
2
 
", (3, 2.25), E, blue);
[/asy]

Is it because we can generate images in AI studio? Or some other reasons I didn’t know about?

Hi @libre , Welcome to the forum.

The current available models pro and flash doesn’t support multi-model output .It only generate text as output. However, it supports multi-model input.

1 Like