AI for every developer
Build with state-of-the-art generative models and tools to make AI helpful for everyone
Learn more about Google Cloud's enterprise-ready AI
Build with the Gemini API
Easily integrate Google’s largest and most capable AI model to your apps
1
2
3
4
5
6
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),
]);
Build with Vertex AI on Google Cloud
Develop with Gemini assistance
Innovate with Gemma open models
Accelerate responsible AI development with unprecedented flexibility and access to lightweight, customizable models
Join the community
Tap into the power of our community forum. Get answers, build together, and be part of the conversation.