Google
Gemini Pro 1.0
google/gemini-pro
Google's flagship text generation model. Designed to handle natural language tasks, multiturn text and code chat, and code generation.
See the benchmarks and prompting guidelines from Deepmind.
Usage of Gemini is subject to Google's Gemini Terms of Use.
Context Window
91,728
Max Output Tokens
2,048
Using Gemini Pro 1.0 with Python API
Using Gemini Pro 1.0 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-pro",
messages: [
{
role: 'user',
content:
'introduce your self',
},
]
)
print(response)