Gemini is now accessible from the OpenAI Library- Google Developers Blog
Nov 8, 2024Logan Kilpatrick

Summary
This post announces the integration of Gemini models with the OpenAI Library and REST API, enabling developers to access Gemini via familiar OpenAI tools. It provides code examples for Python, TypeScript/JavaScript, and REST to demonstrate how to use the Chat Completions API and Embeddings API with Gemini models. It also mentions plans for further compatibility and directs users to Gemini API docs and Vertex AI Enterprise customer support for OpenAI compatibility.
More from the Google Developer Platform trail
- Autonomous LLM post-training with Tunix on TPUs- Google Developers Blog
- HeyGen x Google Cloud: Bringing Avatar IV to TPUs- Google Developers Blog
- Run Ray on TPU, Part 2: Ray AI libraries- Google Developers Blog
- Scaling Agentic RL: High-Throughput Agentic Training with Tunix- Google Developers Blog
- Run Ray on TPU, Part 1: The foundations- Google Developers Blog