Google Debuts OpenAI-compatible API for Gemini
Briefly

Google has introduced a beta endpoint for its Gemini API that facilitates a smoother transition for developers switching from OpenAI to Gemini, although this feature currently has limited capabilities.
This new endpoint allows existing OpenAI SDK users to easily adapt their code to Google's models, fostering a more accessible development environment for those transitioning between the two services.
Developers can easily replace OpenAI's client initialization code with Google's equivalent, enabling the integration of Gemini's capabilities such as text generation and embeddings into their applications.
The Gemini API incorporates support for OpenAI's Embeddings API, allowing developers to calculate text relation and leverage functionalities like clustering and recommendation systems.
Read at InfoQ
[
|
]