Gemini API হল Gemini, Veo, Nano Banana ও আরও অনেক কিছুর মাধ্যমে প্রম্পট থেকে প্রোডাকশনে যাওয়ার সবচেয়ে দ্রুত উপায়। এটি আপনাকে টেক্সট ও ছবি জেনারেট করতে, মাল্টিমোডাল ইনপুট বিশ্লেষণ করতে এবং কথোপকথনমূলক এজেন্ট তৈরি করতে আপনার অ্যাপ্লিকেশনে এইসব জেনারেটিভ মডেল ইন্টিগ্রেট করতে দেয়।
Python
from google import genai
client = genai.Client()
interaction = client.interactions.create(
model="gemini-3.8-flash",
input="Explain how AI works in a few words"
)
print(interaction.output_text)
জাভাস্ক্রিপ্ট
import { GoogleGenAI } from "@google/genai";
const ai = new GoogleGenAI({});
const interaction = await ai.interactions.create({
model: "gemini-3.8-flash",
input: "Explain how AI works in a few words",
});
console.log(interaction.output_text);
Java
import com.google.genai.Client;
import com.google.genai.gaos.models.interactions.CreateModelInteraction;
import com.google.genai.gaos.models.interactions.Interaction;
import com.google.genai.gaos.models.interactions.InteractionsInput;
import com.google.genai.gaos.models.interactions.Model;
import com.google.genai.gaos.models.operations.CreateInteractionRequestBody;
Client client = new Client();
CreateModelInteraction params =
CreateModelInteraction.builder()
.model(Model.of("gemini-3.7-flash"))
.input(InteractionsInput.of("Explain how AI works in a few words"))
.build();
Interaction interaction =
client.interactions.create(CreateInteractionRequestBody.of(params)).interaction().get();
System.out.println(interaction.outputText().orElse(""));
খুলুন
package main
import (
"context"
"fmt"
"log"
"google.golang.org/genai"
"google.golang.org/genai/interactions/models/interactions"
"google.golang.org/genai/interactions/models/operations"
)
func main() {
ctx := context.Background()
client, err := genai.NewClient(ctx, nil)
if err != nil {
log.Fatal(err)
}
res, err := client.Interactions.Create(ctx, operations.CreateInteractionRequest{
Body: operations.NewCreateInteractionRequestBody(interactions.CreateModelInteraction{
Model: interactions.Model("gemini-3.8-flash"),
Input: interactions.NewInteractionsInput("Explain how AI works in a few words"),
}),
})
if err != nil {
log.Fatal(err)
}
if res.Interaction.OutputText != nil {
fmt.Println(*res.Interaction.OutputText)
}
}
REST
curl -X POST "https://generativelanguage.googleapis.com/v1beta/interactions" \
-H "x-goog-api-key: $GEMINI_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "gemini-3.8-flash",
"input": "Explain how AI works in a few words"
}'
মডেলদের সাথে পরিচিত হন
সবকটি দেখুনGemini 3.8 Flash নতুন
আমাদের সবচেয়ে বুদ্ধিমান Flash মডেল, যা দীর্ঘমেয়াদী সফ্টওয়্যার ইঞ্জিনিয়ারিং, স্বতন্ত্র এজেন্ট ও জটিল এন্টারপ্রাইজ ওয়ার্কফ্লোর জন্য তৈরি করা হয়েছে।
Gemini 3.8 Flash TTS নতুন
এক্সপ্রেসিভ অ্যাক্টিং, কাস্টম ভয়েস ডিজাইন ও ভয়েস রেপ্লিকেশন সহ স্টুডিও-গ্রেড টেক্সট-টু-স্পিচ মডেল।
Gemini 3.5 Flash-Lite
কম লেটেন্সি ও হাই থ্রুপুট সাব-এজেন্ট টাস্কের জন্য অপ্টিমাইজ করা বেশি ভলিউম ও খরচ-সংবেদনশীল মডেল।
Gemini 3.1 Pro
আমাদের সবচেয়ে বুদ্ধিমান মডেল, মাল্টিমোডাল বোঝার জন্য বিশ্বের সেরা, সব অত্যাধুনিক রিজনিংয়ের উপর ভিত্তি করে তৈরি।
Nano Banana
অত্যাধুনিক ইমেজ জেনারেশন ও এডিটিং মডেল।
Gemini Omni Flash
আমাদের অত্যাধুনিক ভিডিও জেনারেশন ও এডিটিং মডেল।
Gemini 3.5 Transcribe নতুন
উচ্চারণ-ভিত্তিক ভাষা শনাক্তকরণ, স্পিকার ডায়ারাইজেশন ও শব্দের টাইমস্ট্যাম্প সহ কম লেটেন্সিযুক্ত স্পিচ-টু-টেক্সট মডেল।
Gemini Robotics
একটি ভিশন-ল্যাঙ্গুয়েজ মডেল (VLM) যা রোবোটিক্সের ক্ষেত্রে Gemini-র এজেন্ট সংক্রান্ত ক্ষমতা নিয়ে আসে এবং বাস্তব জগতে উন্নত রিজনিং করার সুবিধা দেয়।
ক্ষমতা এক্সপ্লোর করা
ইমেজ জেনারেশন
Nano Banana-র সাহায্যে নেটিভ উপায়ে অত্যন্ত প্রাসঙ্গিক ছবি তৈরি ও এডিট করুন।
অনেক বড় প্রসঙ্গ
Gemini মডেলে লক্ষ লক্ষ টোকেন ইনপুট করুন এবং আনস্ট্রাকচার্ড ছবি, ভিডিও ও ডকুমেন্ট থেকে তথ্য পান।
স্ট্রাকচার্ড আউটপুট
Gemini-কে JSON-এর মাধ্যমে উত্তর দেওয়ার জন্য সীমাবদ্ধ করুন, এটি হল অটোমেটিক প্রসেসিংয়ের জন্য উপযুক্ত একটি স্ট্রাকচার্ড ডেটা ফর্ম্যাট।
ফাংশন কলিং
এক্সটার্নাল API ও টুলের সাথে Gemini কানেক্ট করে এজেন্টিক ওয়ার্কফ্লো তৈরি করুন।
Veo 3.1-এর মাধ্যমে ভিডিও জেনারেশন
আমাদের অত্যাধুনিক মডেলের সাহায্যে টেক্সট বা ছবির প্রম্পট থেকে খুব ভালো কোয়ালিটির ভিডিও কন্টেন্ট তৈরি করুন।
Live API সহ ভয়েস এজেন্ট
Live API-এর সাহায্যে রিয়েল-টাইম ভয়েস অ্যাপ্লিকেশন ও এজেন্ট তৈরি করুন।
টুল
Google Search, URL Context, Google Maps, Code Execution ও Computer Use-এর মতো বিল্ট-ইন টুলের মাধ্যমে Gemini-কে বিশ্বের সাথে কানেক্ট করুন।
ডকুমেন্ট বোঝা
সম্পূর্ণ মাল্টিমোডাল জ্ঞান বা অন্যান্য টেক্সট-ভিত্তিক ফাইলের ধরন সহ সর্বাধিক ১০০০ পৃষ্ঠার পিডিএফ ফাইল প্রসেস করুন।
Thinking
জটিল টাস্ক ও এজেন্টের ক্ষেত্রে চিন্তাশক্তি কীভাবে যুক্তিপূর্ণ সিদ্ধান্ত নেওয়ার ক্ষমতা বাড়ায় তা এক্সপ্লোর করুন।
এজেন্ট তৈরি করা
ম্যানেজ করা এজেন্টরা Gemini-কে এমন একটি ওয়ার্কস্পেস দেয় যেখানে এটি নিজে থেকেই টাস্ক প্ল্যান ও সম্পূর্ণ করতে পারে। একটি অনুরোধে, Gemini কোড লিখতে ও রান করাতে, ওয়েব সার্চ করতে এবং হোস্ট করা স্যান্ডবক্স এনভায়রনমেন্টে ফাইল তৈরি করতে পারে। আমাদের আগে থেকে তৈরি করা Antigravity এজেন্ট ব্যবহার করে শুরু করুন অথবা আপনার নিজস্ব নির্দেশাবলী ও টুল ব্যবহার করে এটি কাস্টমাইজ করুন।
Python
from google import genai
client = genai.Client()
interaction = client.interactions.create(
agent="antigravity-preview-09-2026",
input=(
"Research the top 5 sustainable fashion brands, "
"compare their materials and pricing tiers, and "
"build an interactive dashboard in analysis.html."
),
environment="remote"
)
print(interaction.output_text)
জাভাস্ক্রিপ্ট
import { GoogleGenAI } from "@google/genai";
const ai = new GoogleGenAI({});
const interaction = await ai.interactions.create({
agent: "antigravity-preview-09-2026",
input:
"Research the top 5 sustainable fashion brands, " +
"compare their materials and pricing tiers, and " +
"build an interactive dashboard in analysis.html.",
environment: "remote",
});
console.log(interaction.output_text);
Java
import com.google.genai.Client;
import com.google.genai.gaos.models.interactions.AgentOption;
import com.google.genai.gaos.models.interactions.CreateAgentInteraction;
import com.google.genai.gaos.models.interactions.CreateAgentInteractionEnvironment;
import com.google.genai.gaos.models.interactions.Interaction;
import com.google.genai.gaos.models.interactions.InteractionsInput;
import com.google.genai.gaos.models.operations.CreateInteractionRequestBody;
Client client = new Client();
CreateAgentInteraction params =
CreateAgentInteraction.builder()
.agent(AgentOption.of("antigravity-preview-09-2026"))
.input(
InteractionsInput.of(
"Research the top 5 sustainable fashion brands, "
+ "compare their materials and pricing tiers, and "
+ "build an interactive dashboard in analysis.html."))
.environment(CreateAgentInteractionEnvironment.of("remote"))
.build();
Interaction interaction =
client.interactions.create(CreateInteractionRequestBody.of(params))
.interaction()
.get();
System.out.println(interaction.outputText().orElse(""));
খুলুন
package main
import (
"context"
"fmt"
"log"
"google.golang.org/genai"
"google.golang.org/genai/interactions/models/interactions"
"google.golang.org/genai/interactions/models/operations"
)
func main() {
ctx := context.Background()
client, err := genai.NewClient(ctx, nil)
if err != nil {
log.Fatal(err)
}
res, err := client.Interactions.Create(ctx, operations.CreateInteractionRequest{
Body: operations.NewCreateInteractionRequestBody(interactions.CreateAgentInteraction{
Agent: interactions.AgentOption("antigravity-preview-09-2026"),
Input: interactions.NewInteractionsInput(
"Research the top 5 sustainable fashion brands, " +
"compare their materials and pricing tiers, and " +
"build an interactive dashboard in analysis.html.",
),
Environment: genai.Ptr(interactions.NewCreateAgentInteractionEnvironment("remote")),
}),
})
if err != nil {
log.Fatal(err)
}
if res.Interaction.OutputText != nil {
fmt.Println(*res.Interaction.OutputText)
}
}
REST
curl -X POST \
"https://generativelanguage.googleapis.com/v1beta/interactions" \
-H "x-goog-api-key: $GEMINI_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"agent": "antigravity-preview-09-2026",
"input": "Research the top 5 sustainable fashion brands, compare their materials and pricing tiers, and build an interactive dashboard in analysis.html.",
"environment": "remote"
}'
Interactions API
২০২৬ সালের জুন মাস থেকে Interactions API আমাদের ডিফল্ট ইন্টারফেস হয়ে গেছে এবং Gemini মডেল ও এজেন্টদের সাথে কাজ করার সবচেয়ে ভালো উপায় হল এই API ব্যবহার করা। আপনি নতুন প্রোজেক্ট শুরু করলে, আপনার Interactions API ব্যবহার করা উচিত। এটি এখনও কাজ করলেও, generateContent API এখন পুরনো হয়ে গেছে বলে মনে করা হয়।