Gemini

Google’s chat assistant also writes and explains code: describe what you need, or build a small app in Canvas

Google•Write code•Earliest fact checked 2026-11-12
Free to start
Get started Official site We only link to official sites.

Good for: You want help with code without installing developer tools: it works in the browser and the Gemini apps

Not for: You don’t want your code used for training: on a personal account Keep Activity is on by default, and Google uses that activity to train its AI models. Turn it off first, or use a temporary chat

What it does

Ask in a chat and Gemini writes, explains and debugs code. In Canvas it turns a description into a working app or game you can share, and you can open the code and edit it yourself. On a computer you can also import a GitHub repository and ask questions about it.

Checked 2026-11-14 · Source · Source 2 · Source 3 · Source 4 · Source 5

Good for you if…

  • You want help with code without installing developer tools: it works in the browser and the Gemini apps
  • You want to start for free: a free Google account can ask for code and use Canvas, within usage limits
  • You want to turn an idea into a small web app or game and try it right away in Canvas

Think twice if…

  • You don’t want your code used for training: on a personal account Keep Activity is on by default, and Google uses that activity to train its AI models. Turn it off first, or use a temporary chat
  • You want to work on a large codebase for free: the free plan’s context window is 32k tokens, compared with 1 million on Google AI Pro
  • You want an AI to edit the files in your project and run commands for you: Gemini helps in a chat, and it can read an imported GitHub repository but not write to it

How to start

  1. Go to gemini.google.com, or open the Gemini app, and sign in with your Google account.
  2. Say what the code should do and which programming language you use, or paste the code you want fixed or explained.
  3. To build a small app or game, click Add files below the text box, choose Canvas and describe it. Click Code at the top right of the Canvas panel to see and edit the code.
  4. Copy the code into your project and try it. If you get an error, paste the error message back into the chat.

Will it train AI on my code?

With a personal Google account, yes by default: if you’re 18 or over, Keep Activity is on by default, and Google uses that activity, including code you paste in, to improve its services, including training generative AI models; human reviewers read some chats. To turn it off, open Settings & help › Activity in Gemini and turn off Keep Activity: your future chats then aren’t used to train Google’s AI models unless you send feedback. Temporary chats aren’t used for training either. Importing a GitHub repository needs Keep Activity on. With a qualifying Google Workspace work or school account, Google says your content isn’t used for model training outside your organization without permission.

Applies to The Gemini app (web, desktop and mobile apps) sending your code to Google’s own Gemini models. Personal Google accounts, free or with a Google AI plan, follow the Gemini Apps Privacy Notice; the on-by-default rule is stated for users 18 or over. Work or school accounts with a qualifying Google Workspace edition follow Workspace terms. Gemini CLI, Gemini Code Assist and Google Antigravity have their own terms, not covered here.

From the official terms
Google uses your activity to provide, develop, and improve its services (including training generative AI models), as well as to protect Google, its users, and the public with the help of human reviewers.
  • Google uses your activity to provide, develop, and improve its services (including training generative AI models), as well as to protect Google, its users, and the public with the help of human reviewers. Source 2
  • Human reviewers (including trained reviewers from our service providers) review some of the data we collect for these purposes. Source 3
  • You can review your prompts, delete your Gemini Apps activity, and turn off Keep Activity in My Activity at any time. Source 4
  • Your future chats won’t appear in your Activity, and won’t be used to train our AI models, unless you choose to send Google feedback. Source 5
  • Temporary chats are not used to train Google’s AI models. Source 6
  • Have Keep Activity on. Source 7
  • Your content is not human reviewed or otherwise used for Generative AI model training outside your domain without permission. Source 8
Checked 2026-11-14 · Source · Source 2 · Source 3 · Source 4 · Source 5 · Source 6 · Source 7 · Source 8

Summary of the maker’s terms as checked on 2026-11-14. Always read the official terms; this is not legal advice.