Article Complete
AIM
Google Opens Access to Gemini 1.5 Pro 2M Context Window, Enables Code Execution for Gemini API
Google Opens Access to Gemini 1.5 Pro 2M Context Window, Enables Code Execution for Gemini API
Contextual Overload

Google Opens Access to Gemini 1.5 Pro 2M Context Window, Enables Code Execution for Gemini API

The added features are a massive boon to developers, as they serve to improve the functionalities of both Gemini 1.5 Pro and the Gemini API.

Published Updated

Key takeaways

  • Google DeepMind introduces Gemini 1.5 Pro with a two million context window for enhanced functionality.
  • Developers gain code execution capabilities on the Gemini API, allowing Python code generation and execution.
  • Billing for the code execution feature is based on output tokens, not internet connectivity.
  • New API features include video frame extraction and parallel function calling, enhancing developer tools.
  • These updates position Gemini as a competitive player in AI development environments.
5 min

Google DeepMind announced several new developer-centric features and capabilities for Gemini 1.5 and its Gemini API. Developers are now allowed access to the two million context window for Gemini 1.5 Pro, as well as code execution capabilities when using the Gemini API. These features were announced along with Gemma 2.

https://twitter.com/GoogleDeepMind/status/1806345612184482149

The added features are a massive boon to developers, as they serve to improve the functionalities of both Gemini 1.5 Pro and the Gemini API. 

Code Execution for Gemini API

In March, Google announced additional API features, like video frame extraction and parallel function calling. With the new code execution feature, developers can now generate and run Python on the model. This is now available on both AI Studio and the Gemini API.

However, the execution feature is not connected to the internet and billing will be based on the amount of output tokens from the model.

“Once turned on, the code-execution feature can be dynamically leveraged by the model to generate and run Python code and learn iteratively from the results until it gets to a desired final output,” the company stated.

Access to Gemini 1.5 Pro’s Two Million Context Window

At I/O in May this year, Google announced an expansion to Gemini 1.5 Pro’s context window, going from one million to two million. However, this was behind a waitlist and in private preview. With the latest announcement, Google has opened access to the two million context window, specifically to developers.

In opening access, Google has also announced the launch of context caching in the Gemini API for both Gemini 1.5 Pro and Flash. “Using the Gemini API context caching feature, you can pass some content to the model once, cache the input tokens, and then refer to the cached tokens for subsequent requests,” the company stated.

Red-Teaming Ongoing for Gemini 1.5 Flash Tuning

Additionally, Google also stated that more features will soon be announced for Gemini 1.5 Flash. In particular, the company is working on allowing access to tuning the model for developers. As of June 27, the company is rolling out access to developers in order to red-team the feature. It is expected to release by mid-July.

Membership

Stay ahead with AI insights.

Unlimited access to premium articles, exclusive analysis, and the stories shaping India's AI economy.

Subscribe now

AIM Americas

1190 Miraloma Way Suite P, Sunnyvale, CA 94085

AIM India

1st Floor, Sakti Statesman, Bellandur, Bengaluru – 560103

Β© 2026 AIM. All rights reserved.