Gemini 2.0 Pro(Experiment)
Gemini 2.0 Pro is Google's most advanced AI model to date, designed to excel in complex tasks such as coding and handling intricate prompts. It features a substantial context window of 2 million tokens, enabling comprehensive analysis of extensive information. The model also integrates seamlessly with tools like Google Search and code execution environments, enhancing its utility for developers. Currently available in experimental form through Google AI Studio and Vertex AI, as well as to Gemini Advanced users, Gemini 2.0 Pro represents a significant leap forward in AI capabilities. citeturn0search1
Capability
Vision Support
Tools
Function Calling
Context Window
1,048,576
Max Output Tokens
8,192
Using Gemini 2.0 Pro(Experiment) with Python API
Using Gemini 2.0 Pro(Experiment) with OpenAI compatible API
import openai
client = openai.Client(
api_key= '{your_api_key}',
base_url="https://api.model.box/v1",
)
response = client.chat.completions.create(
model="google/gemini-2.0-pro-exp",
messages: [
{
role: 'user',
content:
'introduce your self',
},
]
)
print(response)