Getting started with Google AI Studio and the Gemini API using Node.js
Learn how to prototype text-based prompts with Google AI Studio and get started writing your first Gemini API Node.js script.
Go back
Overview: Getting started with the Gemini API
Learn how to use Google AI Studio to prototype text prompts with Gemini, the different types of text prompts that you can use for prompt engineering and how to write your first Node.js script with the Gemini API.
Google AI Studio quickstart
Get started with the Gemini API through this quickstart guide. This documentation highlights the three types of text prompts available via Google AI Studio including freeform, structured and chat prompts.
Creating text prompts with Google AI Studio and the Gemini API
In this codelab, you will write a variety of prompts using Google AI Studio and real-world scenarios with Gemini. You will learn how three different text-based prompts in Google AI Studio work including freeform prompts, structured prompts and chat prompts.
Writing scripts with the Gemini API
In this second codelab, we will write a prompt in Google AI Studio with Gemini and migrate it into a stand-alone script we can run in a NodeJS environment. Our script will leverage the Gemini API to access the Gemini model.
Gemini API Prompt Examples
Explore example prompts for the Gemini API in Google AI Studio. Browse examples for different use cases and learn how to design your own prompts.