Google/Gemini-2.5-Flash-Preview-04-17

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.

Spesifikasi Model
JenisLarge Language Model
Konteks Maksimum1048576 token
Dukungan MultimodalTidak
StatusAktif
Update Terakhir28 Mei 2025
Rp 10.000 / 1jt token

Pembayaran mudah dengan metode lokal Indonesia

Fitur & Keunggulan
Keunggulan Utama

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.

Fitur
  • text-generation
  • chat

Cara Menggunakan Google/Gemini-2.5-Flash-Preview-04-17

Berikut adalah contoh penggunaan Google/Gemini-2.5-Flash-Preview-04-17 dengan berbagai bahasa pemrograman menggunakan vikey.ai API.

Python
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)
Node.js
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();
OpenAI JavaScript SDK
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();

Kasus Penggunaan

Contoh aplikasi dan solusi yang dapat dibangun dengan Google/Gemini-2.5-Flash-Preview-04-17

Pembuatan Konten

Hasilkan berbagai jenis konten kreatif seperti artikel, iklan, atau deskripsi produk dengan gaya yang konsisten.

Asisten Percakapan

Buat chatbot yang dapat memahami konteks percakapan dan memberikan respons yang relevan dan informatif.

Analisis Data

Bantu menganalisis dan mendapatkan insight dari data teks dengan pemahaman kontekstual yang mendalam.

Mulai Gunakan Google/Gemini-2.5-Flash-Preview-04-17 Sekarang

Daftar akun vikey.ai untuk mendapatkan akses ke model ini dan model lainnya dengan harga terjangkau.

Daftar Gratis