Gemini 2.5 Flash is Google's state-of-the-art workhorse model, specifically designed for advanced reasoning, coding, mathematics, and scientific tasks. It includes built-in "thinking" capabilities, enabling it to provide responses with greater accuracy and nuanced context handling. Note: This model is available in two variants: thinking and non-thinking. The output pricing varies significantly depending on whether the thinking capability is active. If you select the standard variant (without the ":thinking" suffix), the model will explicitly avoid generating thinking tokens. To utilize the thinking capability and receive thinking tokens, you must choose the ":thinking" variant, which will then incur the higher thinking-output pricing.
Jenis | Large Language Model |
Konteks Maksimum | 1048576 token |
Dukungan Multimodal | Tidak |
Status | Aktif |
Update Terakhir | 28 Mei 2025 |
Pembayaran mudah dengan metode lokal Indonesia
Gemini 2.5 Flash is Google's state-of-the-art workhorse model, specifically designed for advanced reasoning, coding, mathematics, and scientific tasks. It includes built-in "thinking" capabilities, enabling it to provide responses with greater accuracy and nuanced context handling. Note: This model is available in two variants: thinking and non-thinking. The output pricing varies significantly depending on whether the thinking capability is active. If you select the standard variant (without the ":thinking" suffix), the model will explicitly avoid generating thinking tokens. To utilize the thinking capability and receive thinking tokens, you must choose the ":thinking" variant, which will then incur the higher thinking-output pricing.
Berikut adalah contoh penggunaan Google/Gemini-2.5-Flash-Preview-04-17 dengan berbagai bahasa pemrograman menggunakan vikey.ai API.
import requests
API_KEY = "vikey_sk_xxxxx" # Ganti dengan API key Anda
API_URL = "https://api.vikey.ai/v1/chat/completions"
headers = {
"Content-Type": "application/json",
"Authorization": f"Bearer {API_KEY}"
}
payload = {
"model": "gemini-2.5-flash-preview-04-17",
"messages": [
{"role": "system", "content": "Kamu adalah asisten yang membantu."},
{"role": "user", "content": "Jelaskan tentang kecerdasan buatan dalam bahasa Indonesia."}
],
"temperature": 0.7,
"max_tokens": 500
}
response = requests.post(API_URL, headers=headers, json=payload)
if response.status_code == 200:
result = response.json()
print(result["choices"][0]["message"]["content"])
else:
print(f"Error: {response.status_code}")
print(response.text)
const axios = require('axios');
const API_KEY = 'vikey_sk_xxxxx'; // Ganti dengan API key Anda
const API_URL = 'https://api.vikey.ai/v1/chat/completions';
const payload = {
model: 'gemini-2.5-flash-preview-04-17',
messages: [
{ role: 'system', content: 'Kamu adalah asisten yang membantu.' },
{ role: 'user', content: 'Jelaskan tentang kecerdasan buatan dalam bahasa Indonesia.' }
],
temperature: 0.7,
max_tokens: 500
};
const headers = {
'Content-Type': 'application/json',
'Authorization': `Bearer ${API_KEY}`
};
async function generateResponse() {
try {
const response = await axios.post(API_URL, payload, { headers });
console.log(response.data.choices[0].message.content);
} catch (error) {
console.error('Error:', error.response ? error.response.status : error.message);
console.error(error.response ? error.response.data : error);
}
}
generateResponse();
import OpenAI from 'openai';
// Buat klien OpenAI dengan base URL vikey.ai
const openai = new OpenAI({
apiKey: 'vikey_sk_xxxxx', // Ganti dengan API key Anda
baseURL: 'https://api.vikey.ai/v1',
});
async function main() {
try {
const chatCompletion = await openai.chat.completions.create({
model: 'gemini-2.5-flash-preview-04-17',
messages: [
{ role: 'system', content: 'Kamu adalah asisten yang membantu.' },
{ role: 'user', content: 'Jelaskan tentang kecerdasan buatan dalam bahasa Indonesia.' }
],
temperature: 0.7,
max_tokens: 500
});
console.log(chatCompletion.choices[0].message.content);
} catch (error) {
console.error('Error:', error);
}
}
main();
Contoh aplikasi dan solusi yang dapat dibangun dengan Google/Gemini-2.5-Flash-Preview-04-17
Hasilkan berbagai jenis konten kreatif seperti artikel, iklan, atau deskripsi produk dengan gaya yang konsisten.
Buat chatbot yang dapat memahami konteks percakapan dan memberikan respons yang relevan dan informatif.
Bantu menganalisis dan mendapatkan insight dari data teks dengan pemahaman kontekstual yang mendalam.
Daftar akun vikey.ai untuk mendapatkan akses ke model ini dan model lainnya dengan harga terjangkau.
Daftar Gratis