Gemini 3.8 Flash (gemini-3.8-flash) अब सामान्य तौर पर उपलब्ध है. इसका इस्तेमाल प्रोडक्शन के लिए किया जा सकता है. यह हमारा सबसे स्मार्ट Flash मॉडल है. इसे सॉफ़्टवेयर इंजीनियरिंग, ऑटोनॉमस एजेंट, और एंटरप्राइज़ के मुश्किल वर्कफ़्लो के लिए डिज़ाइन किया गया है.
इस गाइड में, Gemini 3.8 Flash में नया क्या है, एपीआई में हुए बदलाव, कोड के उदाहरण, और माइग्रेशन के बारे में जानकारी दी गई है.
नया मॉडल
| मॉडल | मॉडल आईडी | सोचने का डिफ़ॉल्ट लेवल | कीमत | ब्यौरा |
|---|---|---|---|---|
| Gemini 3.8 Flash | gemini-3.8-flash |
medium |
3.8 Flash, साल के आखिर तक शुरुआती कीमत पर उपलब्ध है. इसके लिए, इनपुट टोकन के 10 लाख के लिए 0.75 डॉलर और आउटपुट टोकन के 10 लाख के लिए 3.75 डॉलर चुकाने होंगे. ज़्यादा जानकारी के लिए, कीमत तय करने से जुड़ा पेज देखें. | यह हमारा सबसे स्मार्ट Flash मॉडल है. इसे सॉफ़्टवेयर इंजीनियरिंग, ऑटोनॉमस एजेंट, और एंटरप्राइज़ के मुश्किल वर्कफ़्लो के लिए डिज़ाइन किया गया है. |
Gemini 3.8 Flash, 10 लाख टोकन वाली कॉन्टेक्स्ट विंडो, ज़्यादा से ज़्यादा 64 हज़ार आउटपुट टोकन, सोचने के लेवल (low, medium, high) को अपनी ज़रूरत के हिसाब से सेट करने की सुविधा, और पहले से मौजूद टूल के एक ही सुइट के साथ काम करता है.
पूरी जानकारी के लिए, Gemini 3.8 Flash मॉडल का पेज देखें. शुरुआती कीमत के बारे में जानकारी के लिए, नीचे दिया गया कीमत तय करने से जुड़ा सेक्शन या कीमत तय करने से जुड़ा पेज देखें.
क्विकस्टार्ट
Python
from google import genai
client = genai.Client()
interaction = client.interactions.create(
model="gemini-3.8-flash",
input="Write a three.js script that renders a realistic 3D black hole."
)
print(interaction.output_text)
JavaScript
import { GoogleGenAI } from "@google/genai";
const client = new GoogleGenAI({});
const interaction = await client.interactions.create({
model: "gemini-3.8-flash",
input: "Write a three.js script that renders a realistic 3D black hole.",
});
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 req = CreateModelInteraction.builder()
.model(Model.of("gemini-3.8-flash"))
.input(InteractionsInput.of("Hello world"))
.build();
Interaction interaction =
client.interactions.create(CreateInteractionRequestBody.of(req)).interaction().get();
System.out.println(interaction.outputText().orElse(""));
REST
curl "https://generativelanguage.googleapis.com/v1beta/interactions" \
-H "x-goog-api-key: $GEMINI_API_KEY" \
-H 'Content-Type: application/json' \
-X POST \
-d '{
"model": "gemini-3.8-flash",
"input": "Write a three.js script that renders a realistic 3D black hole."
}'
Gemini 3.8 Flash में नया क्या है
- सॉफ़्टवेयर इंजीनियरिंग: यह कोडिंग के असल बेंचमार्क, कई फ़ाइलों को रिफ़ैक्टर करने, और टूल को तय तरीके से एक्ज़ीक्यूट करने में बेहतर नतीजे देता है. ज़्यादा जानकारी के लिए, आकलन करने के तरीके के बारे में पढ़ें.
- ऑटोनॉमस एजेंट: इसकी मदद से, कई चरणों में प्लानिंग करने और टूल ऑर्केस्ट्रेशन के ऐसे वर्कफ़्लो बनाए जा सकते हैं जो गड़बड़ियों को कम करते हैं. इससे, लूप और गड़बड़ियां काफ़ी कम हो जाती हैं.
- एंटरप्राइज़ के मुश्किल वर्कफ़्लो: यह मुश्किल डोमेन टास्क और बड़े पैमाने पर डेटा पाइपलाइन में, सटीक नतीजे, गहराई से विश्लेषण, और सटीक जानकारी देता है.
- मैनेज किए गए एजेंट बनाने और मैनेज करने की सुविधा के लिए डिफ़ॉल्ट मॉडल: मैनेज किए गए एजेंट बनाने और मैनेज करने की सुविधा के लिए डिफ़ॉल्ट एजेंट: Antigravity एजेंट, अब Gemini 3.8 Flash का इस्तेमाल करता है. Antigravity SDK भी डिफ़ॉल्ट रूप से Gemini 3.8 Flash का इस्तेमाल करता है.
- शुरुआती कीमत: Gemini 3.8 Flash, 31 दिसंबर, 2026 तक शुरुआती कीमत पर उपलब्ध है. इसके लिए, इनपुट टोकन के 10 लाख के लिए 0.75 डॉलर और आउटपुट टोकन के 10 लाख के लिए 3.75 डॉलर चुकाने होंगे. 1 जनवरी, 2027 से, इसकी कीमत इनपुट टोकन के 10 लाख के लिए 1.50 डॉलर और आउटपुट टोकन के 10 लाख के लिए 7.50 डॉलर हो जाएगी.
Gemini 3.8 Flash, लंबे समय तक चलने वाले और मुश्किल टास्क के लिए, ज़्यादा टोकन इस्तेमाल कर सकता है. मुश्किल और कई चरणों वाले लक्ष्यों के लिए, बेहतर क्वालिटी के नतीजे देने के लिए, यह मॉडल गहराई से विश्लेषण के छोटे-छोटे चरण लेता है, बार-बार टूल कॉल करता है, और साथ-साथ अपने काम की पुष्टि करता है. हर वर्कफ़्लो के लिए, पुष्टि के इस लेवल की ज़रूरत नहीं होती. रोज़मर्रा के टास्क के लिए, टोकन की खपत कम करने के लिए, गहराई से विश्लेषण के लेवल को कम किया जा सकता है. इसके अलावा, Gemini 3.7 Flash अब भी पूरी तरह से काम करता है.
रीज़निंग के लेवल की जानकारी
Gemini 3.8 Flash, मॉडल के सोचने के लेवल को अडजस्ट करके, लेटेंसी और इंटेलिजेंस को कंट्रोल करने की सुविधा देता है:
- सोचने का लेवल कम: इससे, लेटेंसी वाले ज़रूरी टास्क के लिए जवाब देने में लगने वाला समय कम हो जाता है. जैसे, गड़बड़ी की रिपोर्टिंग, रीयल-टाइम चैट, ड्राफ़्ट लिखना, और डेटा का तेज़ी से विश्लेषण करना.
- मीडियम (डिफ़ॉल्ट): ज़्यादातर टास्क के लिए, यह सबसे अच्छी क्वालिटी देता है. यह मुश्किल कोड और एजेंटिक इस्तेमाल के मामलों के लिए सुझाया जाता है. इससे, पहली बार में ही ज़्यादा सटीक नतीजे मिलते हैं.
- सोचने का ज़्यादा एफ़र्ट: इससे, मॉडल की गहराई से विश्लेषण और टूल आयोजन सेवाओं की क्षमताओं को बढ़ाया जा सकता है. यह डीप रीज़निंग, गणित, और कई चरणों वाले मुश्किल टास्क के लिए सबसे सही है.
यहां दिए गए उदाहरण में, मुश्किल कोड के विश्लेषण के अनुरोध के लिए, thinking_level को medium पर सेट किया गया है:
Python
from google import genai
client = genai.Client()
interaction = client.interactions.create(
model="gemini-3.8-flash",
input="Analyze this payment processing pipeline for race conditions during retry attempts and rewrite the transaction locks safely.",
generation_config={
"thinking_level": "medium" # Balanced reasoning effort for complex tasks
}
)
print(interaction.output_text)
JavaScript
import { GoogleGenAI } from "@google/genai";
const client = new GoogleGenAI({});
const interaction = await client.interactions.create({
model: "gemini-3.8-flash",
input: "Analyze this payment processing pipeline for race conditions during retry attempts and rewrite the transaction locks safely.",
generation_config: {
thinking_level: "medium"
}
});
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 req = CreateModelInteraction.builder()
.model(Model.of("gemini-3.8-flash"))
.input(InteractionsInput.of("Hello world"))
.build();
Interaction interaction =
client.interactions.create(CreateInteractionRequestBody.of(req)).interaction().get();
System.out.println(interaction.outputText().orElse(""));
REST
curl "https://generativelanguage.googleapis.com/v1beta/interactions" \
-H "x-goog-api-key: $GEMINI_API_KEY" \
-H 'Content-Type: application/json' \
-X POST \
-d '{
"model": "gemini-3.8-flash",
"input": "Analyze this payment processing pipeline for race conditions during retry attempts and rewrite the transaction locks safely.",
"generation_config": {
"thinking_level": "medium"
}
}'
अपडेट किया गया Antigravity एजेंट
Gemini Managed Agents में मौजूद Antigravity एजेंट, अब डिफ़ॉल्ट रूप से Gemini 3.8 Flash के साथ काम करता है. इसकी परफ़ॉर्मेंस और रीज़निंग में सुधार हुआ है.
Python
from google import genai
client = genai.Client()
interaction = client.interactions.create(
agent="antigravity-preview-05-2026",
input=(
"Audit https://web.dev for performance, Core Web Vitals, and SEO. "
"Query Google's PageSpeed Insights API for both Mobile and Desktop strategies. "
"Check search indexing with Google Search for site:web.dev. "
"Format the output as a side-by-side scorecard table with prioritized fixes."
),
environment="remote",
)
print(interaction.output_text)
JavaScript
import { GoogleGenAI } from "@google/genai";
const client = new GoogleGenAI({});
const interaction = await client.interactions.create({
agent: "antigravity-preview-05-2026",
input: "Audit https://web.dev for performance, Core Web Vitals, and SEO. Query Google's PageSpeed Insights API for both Mobile and Desktop strategies. Check search indexing with Google Search for site:web.dev. Format the output as a side-by-side scorecard table with prioritized fixes.",
environment: "remote",
}, { timeout: 300000 });
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 req = CreateModelInteraction.builder()
.model(Model.of("gemini-3.8-flash"))
.input(InteractionsInput.of("Hello world"))
.build();
Interaction interaction =
client.interactions.create(CreateInteractionRequestBody.of(req)).interaction().get();
System.out.println(interaction.outputText().orElse(""));
REST
curl -X POST "https://generativelanguage.googleapis.com/v1beta/interactions" \
-H "Content-Type: application/json" \
-H "x-goog-api-key: $GEMINI_API_KEY" \
-d '{
"agent": "antigravity-preview-05-2026",
"input": "Audit https://web.dev for performance, Core Web Vitals, and SEO. Query Google'\''s PageSpeed Insights API for both Mobile and Desktop strategies. Check search indexing with Google Search for site:web.dev. Format the output as a side-by-side scorecard table with prioritized fixes.",
"environment": "remote"
}'
Gemini के मॉडल को कॉन्फ़िगर किया जा सकता है agent_config का इस्तेमाल करके.
माइग्रेशन के लिए चेकलिस्ट
`/gemini-api-dev migrate my app to Gemini 3.8 Flash`
gemini-3.8-flash पर माइग्रेट करना
- मॉडल आईडी अपडेट करना: अपने टारगेट मॉडल स्ट्रिंग को
gemini-3.8-flashमें बदलें. - सैंपलिंग के बंद किए गए पैरामीटर हटाना:
- जनरेशन कॉन्फ़िगरेशन से
temperature,top_p, औरtop_kहटाएं. thinking_budgetकी जगह, स्ट्रिंग enumthinking_levelका इस्तेमाल करें. ध्यान दें कि 3.8 Flash परminimalकाम नहीं करता.candidate_countहटाएं. यह Gemini 3 और उसके बाद के वर्शन में काम नहीं करता.
- जनरेशन कॉन्फ़िगरेशन से
- टर्न की पुष्टि करने के नियम लागू करना:
- सर्वर-साइड
previous_interaction_idपर, सिलसिलेवार बातचीत को स्टैंडर्ड बनाना. - पहले से भरे गए मॉडल टर्न हटाना.
- सर्वर-साइड
- फ़ंक्शन कॉल का ऑडिट करना:
- मल्टीमॉडल ऐसेट को जवाब के पेलोड में रखना.
\n\nका इस्तेमाल करके, इनलाइन निर्देशों को फ़ॉर्मैट करना.- अगर आपको टूल से पहले के टेक्स्ट से जुड़ी
Malformed_Function_Callगड़बड़ियां दिखती हैं, तो टूल से पहले के टेक्स्ट की ज़रूरी शर्तों के लिए, कामचलाऊ समाधान देखें. - सिर्फ़ generateContent API का इस्तेमाल करने पर: पक्का करें कि सभी
FunctionResponseऑब्जेक्ट मेंcall_idऔरnameशामिल हों.
- Gemini 3 की ज़रूरी शर्तें: SDK टूल के अपडेट और थॉट सिग्नेचर को सुरक्षित रखने के लिए, Gemini 3.5 के माइग्रेशन की चेकलिस्ट देखें.
कीमत
Gemini 3.8 Flash, Gemini 3.7 Flash, और Gemini 3.6 Flash के लिए, Google AI Studio और Gemini Enterprise Agent Platform पर, 31 दिसंबर, 2026 तक शुरुआती कीमत का फ़ायदा पाएं. 1 जनवरी, 2027 से, इनकी कीमत बढ़ जाएगी. कीमत के सभी लेवल की जानकारी के लिए, कीमत तय करने से जुड़ा पेज देखें.
अगले चरण
- मॉडल की खास जानकारी में, एपीआई की खास जानकारी देखें.
- Interactions API की खास जानकारी में, एक से ज़्यादा एजेंट के ऑर्केस्ट्रेशन के बारे में जानें.
- Google AI Studio में, प्रॉम्प्ट की जांच करें और उन्हें बेहतर बनाएं.