model / google / gemini-3.1-pro-preview
Gemini 3.1 Pro Preview
Google · US · konteks 1.048.576 · maks output 65.536
Status live: memuat… (data live sedang dimuat; tabel harga statis di bawah tetap berlaku)
Gemini 3.1 Pro Preview (Google) lewat satu kunci Ngoding. Harga tier dasar: 64 credit/1M token input (Rp6.400) dan 384 credit/1M token output — ≥ 80,00% lebih murah dari harga resmi (kurs ≥ Rp16.000). Catatan: Prompt di atas 200K token: seluruh request memakai tarif panjang resmi.
HARGA PER TIER
| Prompt ≥ | Input /1M | Output /1M | Cache baca /1M | Harga resmi in (dicoret) | Diskon min. |
|---|---|---|---|---|---|
| 0 | 64 credit Rp6.400 | 384 credit Rp38.400 | 6,4 credit | | 82,12% |
| 200.001 | 128 credit Rp12.800 | 576 credit Rp57.600 | 12,8 credit | | 82,12% |
Sumber harga resmi: tautan provider. Cache tulis 5 mnt / 1 jam mengikuti tarif tier — lihat tabel lengkap di /pricing/.
KALKULATOR BIAYA
Contoh: 10.000 token input + 2.000 token output = 1,408 credit (Rp141).
PAKAI MODEL INI
Ganti base URL ke https://api.ngoding.in dan
isi model dengan gemini-3.1-pro-preview.
OpenAI SDK
from openai import OpenAI
client = OpenAI(
base_url="https://api.ngoding.in/v1",
api_key="sk-ngd-...",
)
r = client.chat.completions.create(
model="gemini-3.1-pro-preview",
messages=[{"role": "user", "content": "Halo!"}],
) curl
curl https://api.ngoding.in/v1/chat/completions \
-H "Authorization: Bearer sk-ngd-..." \
-d '{"model": "gemini-3.1-pro-preview",
"messages": [{"role": "user",
"content": "Halo!"}]}'