Build with the Gemini API
Easily integrate Google’s largest and most capable AI model to your apps
Learn more about Google Cloud's enterprise-ready AI
Preview access
2 million tokens
Sign up now to explore our longest context window yet in Gemini 1.5 Pro. Build and experiment with the Gemini API in Google AI Studio.
Multiple Gemini sizes
for unmatched versatility
Integrate 1.5 Flash into your app with the Gemini API
It's fast and free to start building with Gemini models in Google AI Studio
2
3
4
5
6
model = genai.GenerativeModel(model_name="gemini-1.5-flash-latest")
response = model.generate_content(["What's in this photo?", img])
val model = GenerativeModel("gemini-1.5-flash-latest")
val response = model.generateContent(content {
text("What's in this photo?")
image(ingredientsBitmap)
})
const model = genAI.getGenerativeModel({ model: "gemini-1.5-flash-latest"});
const result = await model.generateContent([
"What's in this photo?",
{inlineData: {data: imgDataInBase64, mimeType: 'image/png'}}
]);
let model = GenerativeModel(name: "gemini-1.5-flash-latest")
let response =
try await model.generateContent("What's in this photo?", image)
const model = genAI.getGenerativeModel({ model: "gemini-1.5-flash-latest"});
const result = await model.generateContent([
"What's in this photo?",
{inlineData: {data: imgDataInBase64, mimeType: 'image/png'}}
]);
model := client.GenerativeModel("gemini-1.5-flash-latest")
resp, err := model.GenerateContent(
ctx,
genai.Text("What's is in this photo?"),
genai.ImageData("jpeg", imgData))
final model = GenerativeModel(model: "gemini-1.5-flash-latest", apiKey: apiKey);
final response = await model.generateContent([
Content.text("What's in this photo?"),
Content.data("image/png", imageBytes),
]);
Enterprise-ready AI
Create agents grounded with your data
Develop, deploy, and manage generative AI agents and apps at scale with your enterprise data.
Build enterprise-grade AI
Integrate AI models into your services with Google Cloud's robust security, privacy, and compliance framework.
Gemini developer ecosystem
Google tools
Partners
Gemini Nano
Android AICore enables powerful phones to run Gemini Nano, making it easy for you to build on-device AI experiences that use sensitive info or need to work even when the device is offline.
AVAILABLE ON PIXEL 8 PRO AND SAMSUNG S24 SERIES, WITH MORE COMING SOON