Gemini 1.5 Pro

by Google

Google pioneering long-context multimodal model supporting up to 2 million tokens with robust reasoning and analysis.

Parameters
Pro (2M Context)
Context Length
2M
Category
chat
Available Serverless

Run queries immediately, pay only for usage

$1.31in|$5.25out

Per 1M Tokens

Try this modelView documentation

About this model

Gemini 1.5 Pro pioneered large context windows with up to 2 million tokens, capable of analyzing hours of audio, full code repositories, or hundreds of pages of technical documentation in a single prompt.

Capabilities

2M context windowMultimodalAudio and video analysisTool calling

Use Cases

  • Massive document review
  • Full-repo code analysis
  • Long video/audio understanding

Model Details

Provider
Google
Model ID
gemini-1.5-pro
Parameters
Pro (2M Context)
Context Length
2M tokens
Category
chat

API Usage

Use the DOS API to integrate Gemini 1.5 Pro into your applications. Our API is compatible with OpenAI's client libraries for easy migration.

Model ID

gemini-1.5-pro

Python

python
from dos import DOS

client = DOS()

response = client.chat.completions.create(
    model="gemini-1.5-pro",
    messages=[
        {"role": "user", "content": "Hello, how are you?"}
    ]
)

print(response.choices[0].message.content)

cURL

bash
curl https://api.dos.ai/v1/chat/completions \
  -H "Authorization: Bearer $DOS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-1.5-pro",
    "messages": [
      {"role": "user", "content": "Hello, how are you?"}
    ]
  }'

Node.js

javascript
import DOS from 'dos-ai';

const client = new DOS();

const response = await client.chat.completions.create({
  model: "gemini-1.5-pro",
  messages: [
    { role: "user", content: "Hello, how are you?" }
  ]
});

console.log(response.choices[0].message.content);