Gemini Developer API বনাম Gemini প্ল্যাটফর্ম

Gemini-র মাধ্যমে জেনারেটিভ AI সলিউশন ডেভেলপ করার সময়, Google দুটি API প্রোডাক্ট অফার করে: Gemini Developer API এবং Gemini platform API.

Gemini Developer API, Gemini দ্বারা পরিচালিত অ্যাপ্লিকেশন তৈরি, প্রোডাকশনাইজ ও স্কেল করার সবচেয়ে দ্রুত উপায় প্রদান করে। নির্দিষ্ট এন্টারপ্রাইজ কন্ট্রোলের প্রয়োজন না থাকলে, বেশিরভাগ ডেভেলপারদের Gemini Developer API ব্যবহার করা উচিত।

Gemini প্ল্যাটফর্ম, Google Cloud-এর সাহায্যে জেনারেটিভ AI অ্যাপ্লিকেশন তৈরি ও ডিপ্লয় করার জন্য এন্টারপ্রাইজ রেডি ফিচার ও পরিষেবার একটি বিস্তৃত ইকোসিস্টেম অফার করে।

আমরা সম্প্রতি এই পরিষেবাগুলির মধ্যে মাইগ্রেট করার প্রসেস সহজ করেছি। Gemini Developer API এবং Gemini প্ল্যাটফর্ম API, দুটিই এখন একত্রিত Google GenAI SDK এবং Interactions API-এর মাধ্যমে অ্যাক্সেস করা যায়।

কোড তুলনা: Interactions API (সাজেস্ট করা)

Gemini মডেল ও এজেন্টের সাথে কাজ করার জন্য Interactions API হল সাজেস্ট করা উপায়। Gemini Developer API ও Gemini প্ল্যাটফর্মের মধ্যে টেক্সট জেনারেশন তুলনা করে নিম্নলিখিত উদাহরণ দেওয়া হল।

Python

আপনি google-genai লাইব্রেরির (>= 2.3.0) মাধ্যমে Gemini Developer API ও Gemini প্ল্যাটফর্ম পরিষেবা অ্যাক্সেস করতে পারবেন। কীভাবে google-genai ইনস্টল করতে হয় সেই সংক্রান্ত নির্দেশাবলীর জন্য লাইব্রেরি পৃষ্ঠা দেখুন।

Gemini Developer API

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)

Gemini প্ল্যাটফর্ম API

from google import genai

client = genai.Client(
    enterprise=True, project="your-project-id", location="global"
)

interaction = client.interactions.create(
    model="gemini-3.8-flash",
    input="Explain how AI works in a few words",
)
print(interaction.output_text)

JavaScript ও TypeScript

আপনি @google/genai লাইব্রেরির (>= 2.3.0) মাধ্যমে Gemini Developer API ও Gemini প্ল্যাটফর্ম পরিষেবা অ্যাক্সেস করতে পারবেন। কীভাবে @google/genai ইনস্টল করতে হয় সেই সংক্রান্ত নির্দেশাবলী পেতে লাইব্রেরি পৃষ্ঠা দেখুন।

Gemini Developer API

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);

Gemini প্ল্যাটফর্ম API

import { GoogleGenAI } from "@google/genai";

const ai = new GoogleGenAI({
  enterprise: true,
  project: "your_project",
  location: "global",
});

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);

কোড তুলনা: generateContent API

নতুন প্রোজেক্টের জন্য Interactions API সাজেস্ট করা হলেও, generateContent API কাজ করে।

Python

আপনি google-genai লাইব্রেরির মাধ্যমে Gemini Developer API ও Gemini প্ল্যাটফর্ম পরিষেবা, দু'টিই অ্যাক্সেস করতে পারবেন। কীভাবে ইনস্টল করতে হয় সেই বিষয়ে নির্দেশাবলী পেতে google-genai লাইব্রেরি পৃষ্ঠা দেখুন।

Gemini Developer API

from google import genai

client = genai.Client()

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

Gemini প্ল্যাটফর্ম API

from google import genai

client = genai.Client(
    vertexai=True, project='your-project-id', location='us-central1'
)

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

JavaScript ও TypeScript

আপনি @google/genai লাইব্রেরির মাধ্যমে Gemini Developer API ও Gemini প্ল্যাটফর্ম পরিষেবা, দু'টিই অ্যাক্সেস করতে পারবেন। কীভাবে ইনস্টল করতে হয় সেই বিষয়ে নির্দেশাবলী পেতে @google/genai, লাইব্রেরি পৃষ্ঠা দেখুন।

Gemini Developer API

import { GoogleGenAI } from "@google/genai";

const ai = new GoogleGenAI({});

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

main();

Gemini প্ল্যাটফর্ম API

import { GoogleGenAI } from '@google/genai';
const ai = new GoogleGenAI({
  vertexai: true,
  project: 'your_project',
  location: 'your_location',
});

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

main();

খুলুন

আপনি google.golang.org/genai লাইব্রেরির মাধ্যমে Gemini Developer API ও Gemini প্ল্যাটফর্ম পরিষেবা, দু'টিই অ্যাক্সেস করতে পারবেন। কীভাবে ইনস্টল করতে হয় সেই বিষয়ে নির্দেশাবলী পেতে google.golang.org/genai, লাইব্রেরি পৃষ্ঠা দেখুন।

Gemini Developer API

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

// Your Google API key
const apiKey = "your-api-key"

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

  // Call the GenerateContent method.
  result, err := client.Models.GenerateContent(ctx, "gemini-3.8-flash", genai.Text("Tell me about New York?"), nil)

}

Gemini প্ল্যাটফর্ম API

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

// Your Google Cloud project
const project = "your-project"

// A Google Cloud location like "us-central1"
const location = "some-gcp-location"

func main() {
  ctx := context.Background()
  client, err := genai.NewClient(ctx, &genai.ClientConfig
  {
        Project:  project,
      Location: location,
      Backend:  genai.BackendVertexAI,
  })

  // Call the GenerateContent method.
  result, err := client.Models.GenerateContent(ctx, "gemini-3.8-flash", genai.Text("Tell me about New York?"), nil)

}

অন্যান্য ব্যবহারিক ক্ষেত্র ও প্ল্যাটফর্ম

অন্যান্য প্ল্যাটফর্ম ও ব্যবহারের ক্ষেত্রে Gemini Developer API ডকুমেন্টেশন ও Gemini প্ল্যাটফর্ম ডকুমেন্টেশনে ব্যবহারের ক্ষেত্রে নির্দিষ্ট গাইড দেখুন।

মাইগ্রেশন সংক্রান্ত বিবেচ্য বিষয়

আপনি মাইগ্রেট করলে:

Gemini Developer API-এর জন্য আপনার Gemini API key আর ব্যবহার করার প্রয়োজন না হলে, নিরাপত্তা সংক্রান্ত সেরা পদ্ধতি অনুসরণ করে এটি মুছে দিন।

API key মুছে দিতে:

  1. Google Cloud API ক্রেডেনশিয়াল পৃষ্ঠা খুলুন।

  2. আপনি যে API কী মুছতে চান সেটি খুঁজে বের করুন এবং অ্যাকশন আইকনে ক্লিক করুন।

  3. API কী মুছুন বিকল্প বেছে নিন।

  4. ক্রেডেনশিয়াল মুছুন মডেলে, মুছুন বিকল্প বেছে নিন।

    API কী মুছে ফেলার পরে তা কার্যকর হতে কয়েক মিনিট সময় লাগে। প্রোপাগেশন সম্পূর্ণ হওয়ার পরে, মুছে দেওয়া API কী ব্যবহার করে এমন যেকোনও ট্রাফিক বাতিল করা হয়।

পরবর্তী ধাপ