Stay organized with collections Save and categorize content based on your preferences. Getting started with the Gemini API and Web Apps Return to pathway How do images need to be encoded when supplying image data inline for a multimodal prompt using the Google Gen AI SDK for JavaScript and TypeScript? No encoding is needed base64 base32 hexadecimal Which of these is the correct way to start a multi-turn chat conversation using the Google Gen AI SDK for JavaScript and TypeScript? ai.chats.create({history: ...}, ...) model.generateContent(history) chat.sendMessage(...) model.beginChat() True or False: The Google Gen AI SDK for JavaScript and TypeScript only supports streaming responses for text prompts. True False What is NOT required to use the Google Gen AI SDK for JavaScript and TypeScript in a web application? Configure your prompts in the Google AI Studio before launch. Get an API Key for the Gemini API. Import the Google Gen AI SDK into your app. Initialize the Generative Model before making an API call. Submit answers error_outline An error occurred when grading the quiz. Please try again.