[ Web Proxy ]
URL:
Viewing: https://developers.google.com/ [Back]  [Original]

Google for Developers | Build with Gemini Skip to main content
Google for Developers [Google for Developers]
Stay organized with collections Save and categorize content based on your preferences.

Build with Gemini

Unlock AI models to build innovative apps and transform development workflows with tools across platforms.

pen_spark Start building with Gemini expand_content

The fastest path from prompt to production app with Gemini.

code Develop with agents expand_content

Experience our agent-first platform built for the next era of how you build, work, and automate.

automatic_cluster Deploy on scalable infrastructure expand_content

Build and scale your apps without needing to manage the infrastructure with Google Cloud Run.

android Create Android apps expand_content

Build high-quality Android apps faster with Gemini in Android Studio.

sort_spark Build apps and agents with Gemini models expand_content

Develop next-generation apps and agents by integrating Google's most advanced reasoning and generative models and agent-first APIs.

web Develop web AI features expand_content

Discover how your web applications can perform AI tasks with browser-managed AI models and APIs.

stacks Build enterprise agents expand_content

Build, scale, govern, and optimize enterprise agents.

close
GEMINI API

Integrate Gemini directly into your apps

Unleash the full potential of your applications by integrating Gemini's long context window and native multimodal reasoning to process massive codebases, complex media, and real-time agentic workflows with a single API.

View documentation
from google import genai

client = genai.Client()

response = client.models.generate_content(
  model="gemini-3.5-flash",
  contents="Explain how AI works in a few words",
)

print(response.text)
import { GoogleGenAI } from "@google/genai";

const ai = new GoogleGenAI({});

async function main() {
  const response = await ai.models.generateContent({
    model: "gemini-3.5-flash",
    contents: "Explain how AI works in a few words",
  });
  console.log(response.text);
}

await main();
package main

import (
    "context"
    "fmt"
    "log"
    "google.golang.org/genai"
)

func main() {
    ctx := context.Background()
    client, err := genai.NewClient(ctx, nil)
    if err != nil {
        log.Fatal(err)
    }

    result, err := client.Models.GenerateContent(
        ctx,
        "gemini-3.5-flash",
        genai.Text("Explain how AI works in a few words"),
        nil,
    )
    if err != nil {
        log.Fatal(err)
    }
    fmt.Println(result.Text())
}
package com.example;

import com.google.genai.Client;
import com.google.genai.types.GenerateContentResponse;

public class GenerateTextFromTextInput {
  public static void main(String[] args) {
    Client client = new Client();

    GenerateContentResponse response =
        client.models.generateContent(
            "gemini-3.5-flash",
            "Explain how AI works in a few words",
            null);

    System.out.println(response.text());
  }
}
curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-3-5-flash:generateContent" \
  -H "x-goog-api-key: $GEMINI_API_KEY" \
  -H 'Content-Type: application/json' \
  -X POST \
  -d '{
    "contents": [
      {
        "parts": [
          {
            "text": "Explain how AI works in a few words"
          }
        ]
      }
    ]
  }'

News & Announcements

AI Agents
Treat agent prompts like software artifacts
add remove

Use build-time validation and modular architectures to make your agents production-ready.

Learn more prompts-as-coded.png [prompts-as-coded.png]
Google Play
Play billing and fee updates
add remove

Google Play is evolving from a standard billing system to a flexible ecosystem built for high-quality experiences. Learn how to set the new standard for user experience and unlock lower rates.

Learn more play-symbol.png [play-symbol.png]
Google I/O
All the news from the Google I/O 2026 Developer keynote
add remove

Explore the latest developer updates from Android, AI, Chrome, and Cloud.

Learn more io-dev-keynote.png [io-dev-keynote.png]
Antigravity CLI
Gemini CLI Transitions to Antigravity CLI
add remove

Discover the new Antigravity CLI and migrate by June 18

Learn more antigravity-cli.png [antigravity-cli.png]
AI Studio
Build anything, ship everywhere: Google AI Studio at Google I/O 2026
add remove

At Google I/O 2026, we're expanding not just how you build, but what you can build.

Learn more ai-studio-build-new.png [ai-studio-build-new.png]
Android
17 Things to know for Android developers at Google I/O
add remove

Read 17 key announcements for Android developers, focusing on agent-led productivity and more.

Learn more android-io-2026.png [android-io-2026.png]
Google Play
I/O 2026: What's New in Google Play
add remove

Catch up on the latest Play developer news and announcements from Google I/O

Learn more google-play-news-thumb.png [google-play-news-thumb.png]

Community & Events

Google I/O Connect

I/O Connect China

Connect with fellow professional developers and Google experts, get inspired by the latest tools and tech, accelerate your development, and create cutting-edge applications.

August 12-13 / Shanghai
Google Cloud

Build with Gemini

Move beyond basic chatbots. Join Google Cloud experts for a hands-on day building, scaling, and deploying secure, production-ready AI agents.

Aug - Oct / Multi-city
Google Cloud

Google Cloud Summit Doha

Join the annual Google Cloud event to discover the latest technological innovations in AI, security, application development, collaboration, and more.

September 22 / Doha, Qatar

Build and manage in one place

Access specialized AI workspaces, learn from 700+ hands-on codelabs, and manage projects from a centralized Builders Hub as you move from prototype to production.

Join the program
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],[],[],["Google I/O is happening May 20-21; register to attend. Developers can utilize various tools like Android, Google Cloud (with $300 free credits), Google AI Studio, Gemini API, Chrome, and others. New releases include Gemini 2.0 and AI assistance in Chrome DevTools. Ladybug has integrated Gemini into Android Studio. Explore developer events, learning resources, and communities. Stay updated on Google technology via YouTube, Instagram, LinkedIn, and X. They are also hosting GDC.\n"]]

Web Proxy Viewer  |  New URL  |  Original Page