Google
Google

Gemini Pro 1.5 (preview)

google/gemini-pro-1.5

Google's latest multimodal model, supporting image and video in text or chat prompts.

Optimized for language tasks including:

  • Code generation
  • Text generation
  • Text editing
  • Problem solving
  • Recommendations
  • Information extraction
  • Data extraction or generation
  • AI agents

Usage of Gemini is subject to Google's Gemini Terms of Use.

Note: Preview models are offered for testing purposes and should not be used in production apps. This model is heavily rate limited.

#multimodal

Context Window

2,800,000

Max Output Tokens

8,192

Using Gemini Pro 1.5 (preview) with Python API

Using Gemini Pro 1.5 (preview) 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-1.5",
messages: [
  {
    role: 'user',
    content:
      'introduce your self',
    },
  ]
)
print(response)