Google Gemini and Duet AI: New Developments in Code Generation and AI-Assisted Development

Google launches Gemini, a powerful code generation tool, and Duet AI for Developers, an AI coding assistant. Gemini outperforms GPT-3.5, with free trials and $0.001 per 1,000 tokens. Duet AI, supporting 20+ languages, boosts productivity. Subscription at $19/month from January.

Home > Blog > Google Gemini and Duet AI: New Developments in Code Generation and AI-Assisted Development

One week after the release of Google Gemini, the developer API has finally gone online.Currently, both Gemini Pro and Gemini Pro Vision can be tried for free.

Although the maximum is 60 requests per minute, it can basically meet the needs of most application development.

When it officially launches early next year, Google will start charging.The API pricing will also be in line with GPT-3.5, both at $0.001 per 1,000 tokens input and $0.002 per 1,000 tokens output.Specifically:

  • Currently supports a 32K context window, which will be further expanded later.
  • Other basic functions are also supported: function calls, embeddings, semantic retrieval, custom knowledge.
  • Supports 38 languages across more than 180 countries and regions globally.
  • Supports text API output, but output is still text-only for now.
  • Provides SDK support for Python, Android (Kotlin), Node.js, Swift and JavaScript.

For fine-tuning, users can directly access the Gemini Pro API through Google AI Studio, and users can also fully customize Gemini through Vertex AI.

Users can build their own Gemini conversational AI in a no-code environment using their own data, with support for RAG, search, embeddings, conversational scripts and more.

Google guarantees that no user data or IP will be used to train models.

In terms of capabilities, according to Google's benchmarks, Gemini Pro outperforms GPT-3.5 in most text benchmarks, and directly achieves dimensional reduction strikes in image evaluations thanks to native multi-modality support.

Code Generation Tool Officially Launched

Also announced today, Google has fully launched Duet AI for Developers, an AI assistant toolkit for code completion and generation.

More excitingly, it will be empowered by the Gemini model in the next few weeks.It is known that GitHub's Copilot is the most popular code platform tool among developers today.

Unlike Copilot, Google uses dataset from 25 companies to help developers build applications and eliminate code bugs.For example, Confluent, HashiCorp and MongoDB will provide data to train Duet AI for Developers to help developers write code for their platforms.Although the data from these partner companies is mostly useful in the code completion and generation experience, Datadog, JetBrains and LangChain will provide documentation and knowledge sources.

These documents and knowledge sources may be most useful in the Duet AI for Developers conversational experience.For example, with this data, the service will be able to provide information to dev and ops teams on how to create test automation, troubleshoot issues in production, and fix vulnerabilities.

Richard Seroter, an evangelist at Google Cloud, said how does AI help us get away from things we don't like to do? How do we make coding better? That's a lot of what we've been chasing after. How do we build an AI assistant that both meets the tools developers are using but also puts a little Google twist on it?So how do you put a Google twist on these tools?

For example, ensure that the models are trained on the latest cloud-native practices, especially those above all the popular integrated development environments that developers already use, and integrate them into the Google Cloud console.Seroter emphasized that Google is looking at the entire Duet AI product line, where Duet AI in Security Operations is now also officially launched as an enterprise product.

Google's AI coding tool development process is basically the same as all other tech companies' products.For example, Seroter points out that auto-completion in IDEs developers are already familiar with helps keep developers' workflows unchanged.Like other tech giants, Google itself does not believe these tools will replace coding skills, but they do help improve developer productivity.

Currently, after adopting Duet AI for Developers, a "AI-driven tech services company" Turing has increased productivity by 33%.Duet AI for Developers currently supports 20+ languages, including C, C++, Java, JavaScript and Python.

In addition to common coding capabilities, it also includes support for AI log summarization and error explanation. It also supports integration with Cloud Logging and Smart Actions, which Google describes as one-click shortcuts for executing tasks like unit test generation.

Before the end of January next year, Duet AI for Developers will be open for free. After that, Google will also adopt a fee model, $19 per month, on an annual basis.

Learn more:

Google Gemini and Duet AI: New Developments in Code Generation and AI-Assisted Development
Google launches Gemini, a powerful code generation tool, and Duet AI for Developers, an AI coding assistant. Gemini outperforms GPT-3.5, with free trials and $0.001 per 1,000 tokens. Duet AI, supporting 20+ languages, boosts productivity. Subscription at $19/month from January.
ZGY:Share more fun programming knowledge.