AI code generation

Use AI to generate code with human language prompts

Generate code for development tasks in programming languages like Python, JavaScript, Prolog, Fortran, and Verilog with human language descriptions. 

New customers get up to $300 in free credits to generate code and more in Vertex AI.

Overview

What is AI code generation?

AI code generation is the use of artificial intelligence (AI) and machine learning (ML) to create code based on a user’s conversational prompt. For example, Gemini Code Assist offers developer code generation and completion capabilities. Code can be generated based on general best practices, organizational governance, and even a natural language description of the desired code. 

Is there an AI that can create code?

Google's most capable model, Gemini not only generates code, but also helps with debugging and code explanation. Gemini can handle more than 20 programming languages, including C++, Go, Java, Javascript, Python and Typescript. Google Cloud’s Gemini Code Assist can also generate code, write functions, and aid in code completion. Vertex AI also includes a suite of models called Codey APIs that generate code, power chats, and aid in code completion. 

What is the best AI for code generation?

Developers now have access to a wide variety of AI solutions for code generation. Google Cloud’s Vertex AI offers generative AI models that allow for all types of content generation, including code. Vertex AI leverages Google's cutting edge Gemini models to generate text and code in response to conversational prompts—even across various human languages. 

What is an AI tool that generates code?

Google Cloud’s Vertex AI includes Gemini, an advanced, multimodal model than can output code. These APIs include three models that not only generate code, but can suggest code for code completion and let developers get code-related questions through a conversational interface.

Can AI write Python code?

Vertex AI’s Codey APIs supports Python and many other programming languages including: C++, C#, Go, GoogleSQL, Java, JavaScript, Kotlin, PHP, Python, Ruby, Rust, Scala. Swift, TypeScript. Codey APIs also supports the following infrastructure as code interfaces: Google Cloud CLI, Kubernetes Resource Model (KRM), and Terraform.

How It Works

AI code generation uses machine learning models and algorithms trained on programming languages and publicly available source code to generate code. Google Cloud’s foundation models allow developers to build next-generation applications with access to multimodal models from Google in Vertex AI.

Code generation in a code editor
Drive developer productivity with code assistance

Common Uses

AI code generation and completion

Generate code with Vertex AI

Vertex AI includes a suite of models that work with code referred to as the Codey APIs. Codey can generate code based on a natural language description of the desired code, power a chatbot that assists with code-related questions, and provide auto-completion suggestions as you code. 

Learn more about Codey APIs
Codey at event with Google Cloud CEO on stage

Generate code with Vertex AI

Vertex AI includes a suite of models that work with code referred to as the Codey APIs. Codey can generate code based on a natural language description of the desired code, power a chatbot that assists with code-related questions, and provide auto-completion suggestions as you code. 

Learn more about Codey APIs
Codey at event with Google Cloud CEO on stage

AI-powered coding assistant

Get code assistance in Google Cloud console

Gemini Code Assist gives application developers and data engineers code recommendations in real time, full function and code blocks, and identifies vulnerabilities and errors in the code, while suggesting fixes. Developers will find code assistance through a chat interface, Cloud Shell Editor, or via our Cloud Code IDE extensions for VSCode and JetBrains IDEs. It supports multiple languages including Go, Java, Javascript, Python, and SQL.

Learn more about Gemini Code Assist
Code assistance auto-generates code for creating a Google Cloud Storage bucket

Get code assistance in Google Cloud console

Gemini Code Assist gives application developers and data engineers code recommendations in real time, full function and code blocks, and identifies vulnerabilities and errors in the code, while suggesting fixes. Developers will find code assistance through a chat interface, Cloud Shell Editor, or via our Cloud Code IDE extensions for VSCode and JetBrains IDEs. It supports multiple languages including Go, Java, Javascript, Python, and SQL.

Learn more about Gemini Code Assist
Code assistance auto-generates code for creating a Google Cloud Storage bucket

Start your generative AI proof of concept

New customers get up to $300 in free credits to spend on Vertex AI

Generate prompts in Generative AI Studio

Build, tune, deploy generative AI models

Code models overview

Take free generative AI courses

Google Cloud
  • ‪English‬
  • ‪Deutsch‬
  • ‪Español‬
  • ‪Español (Latinoamérica)‬
  • ‪Français‬
  • ‪Indonesia‬
  • ‪Italiano‬
  • ‪Português (Brasil)‬
  • ‪简体中文‬
  • ‪繁體中文‬
  • ‪日本語‬
  • ‪한국어‬
Console
Google Cloud