Gemini 2.0 Flash is available in Gemini API and Google AI Studio. Building on the success of Gemini 1.5 Flash, the 2.0 release introduces performance improvements, new Multimodal Live API, expanded output modalities, and native tool use.
Here's a breakdown of what's new:
• Improved Performance: Gemini 2.0 Flash Experimental provides double the speed of Gemini 1.5 Pro, with enhanced capabilities across multimodal understanding, text, code, video, and spatial reasoning.
• Multimodal Live API: Develop real-time applications with streaming audio and video, natural conversational patterns, and tool integration via the new Multimodal Live API.
• Native Tool Use: Build intelligent agentic features with integrated tools such as Google Search (including parallel search), code execution, and custom function calling.
Sample code is as below
import google.generativeai as genai
genai.configure(api_key="YOUR_API_KEY")
model = genai.GenerativeModel("gemini-1.5-flash")
response = model.generate_content("Explain how AI works")
print(response.text)
Gemini 2.0 is a multi modal model. which has capabilites as given below
references:
No comments:
Post a Comment