Getting started with the Gemini API and Web Apps

  1. How do images need to be encoded when supplying images for a multimodal prompt using the Google AI Javascript SDK?

  2. Which of these is the correct way to start a multi-turn chat conversation using the Google AI Javascript SDK?

  3. True or False: The Google AI Javascript SDK only supports streaming responses for text prompts.

  4. What is NOT required to use the Google AI Javascript SDK in a web application?