from google import genaifrom google.genai import typesclient = genai.Client(api_key="<GEMINI_API_KEY>")response = client.models.generate_content( model="gemini-2.5-flash", contents="Summarize ApiGo in three sentences.", config=types.GenerateContentConfig( system_instruction="You are a concise assistant." ),)print(response.text)
import { GoogleGenAI } from "@google/genai";const ai = new GoogleGenAI({ apiKey: process.env.GEMINI_API_KEY });const response = await ai.models.generateContent({ model: "gemini-2.5-flash", contents: "Summarize ApiGo in three sentences.", config: { systemInstruction: "You are a concise assistant." }});console.log(response.text);