HeadsUpAI

Google adds Veo and Gemini image models to OpenAI compatibility layer

ยท Updated

Google updated its OpenAI compatibility layer to support Veo video generation and Gemini image models. Developers using the OpenAI Python or JavaScript SDKs can now access veo-3.1-generate-preview, gemini-2.5-flash-image, and gemini-3-pro-image-preview. The integration requires minimal changes, specifically updating the api_key, base_url, and model parameters.

This update targets the high switching costs of proprietary SDKs. By adopting the OpenAI API specification for multimodal models, Google allows teams to benchmark performance against competitors with zero code rewrites. It also introduces a standardized way to handle long-running video generation tasks through a Sora-compatible /v1/videos endpoint.

You can now trigger generation using familiar workflows, passing parameters like aspect_ratio or safety_settings through the extra_body field. Video generation returns an operation ID for polling until the status is completed. These features are in beta and available via the Gemini API using a standard API key.

Google AI Developers
Google AI Developers
@googleaidevs
X

Veo and Gemini image models such as Nano Banana are now live in the OpenAI compatibility layer! Test our models in your existing Python/JS pipelines with zero SDK rewrite. Just update exactly 3 lines of code (๐šŠ๐š™๐š’_๐š”๐šŽ๐šข, ๐š‹๐šŠ๐šœ๐šŽ_๐šž๐š›๐š•, ๐š–๐š˜๐š๐šŽ๐š•). https://t.co/C0eIZq4jqg

16retweets
View on X

Share this update