Fix error

How do I fix

Error: Model not found. Please ensure your API key is valid, the ‘Generative Language API’ or ‘Vertex AI API’ is enabled in your Google Cloud project, and that billing is configured correctly. Then, restart the development server.

at (rsc://React/Server/file:///home/user/studio/.next/server/chunks/ssr/%5Broot-of-the-server%5D__2526bc42._.js?10:325:19)

at resolveErrorDev (https://6000-firebase-studio-1750787433817.cluster-ve345ymguzcd6qqzuko2qbxtfe.cloudworkstations.dev/next/static/chunks/node_modules_next_dist_compiled_2ce9398a..js:17582:48)

at processFullStringRow (https://6000-firebase-studio-1750787433817.cluster-ve345ymguzcd6qqzuko2qbxtfe.cloudworkstations.dev/next/static/chunks/node_modules_next_dist_compiled_2ce9398a..js:17798:23)

at processFullBinaryRow (https://6000-firebase-studio-1750787433817.cluster-ve345ymguzcd6qqzuko2qbxtfe.cloudworkstations.dev/next/static/chunks/node_modules_next_dist_compiled_2ce9398a..js:17786:9)

at progress (https://6000-firebase-studio-1750787433817.cluster-ve345ymguzcd6qqzuko2qbxtfe.cloudworkstations.dev/next/static/chunks/node_modules_next_dist_compiled_2ce9398a..js:17932:102)