⚠️
View Alternatives →Model No Longer Available
This model has been delisted from the API. This page is preserved for reference purposes only.
G
gemini-1.5-pro
1000k ContextTextPopular
Google's gemini-1.5-pro - compact and efficient. Google's advanced AI research.
Technical Specifications
Context Window
1M
Max Output
4,096 tokens
Knowledge Domain
Chat, Text
Provider
Google
Quick Start Guide
example.tsTypeScript
import OpenAI from "openai";
const openai = new OpenAI({
baseURL: "https://api.okrouter.com/v1",
apiKey: "<YOUR_OKROUTER_KEY>",
});
async function main() {
const completion = await openai.chat.completions.create({
model: "gemini-1.5-pro",
messages: [
{ role: "user", content: "Hello! What can you do?" }
],
});
console.log(completion.choices[0].message);
}
main();Getting started with gemini-1.5-pro is easy. Since OkRouter is fully compatible with the OpenAI SDK, you can use existing libraries to access this model immediately. gemini-1.5-pro is fully compatible with the OpenAI Chat Completions API. distinctive features include Expanded context window and Text support.