google/gemini-3.1-flash-lite
Google's cheapest GA model in the 3.x series. Matches Gemini 2.5 Flash quality at a fraction of the cost. Optimized for low-latency, high-volume workloads: classification, summarization, simple generation, and RAG at scale.
åºå ž: gemini_x0.5 · ç¢ºèªæ¥ 2026-06-05
ãã£ãã·ã¥èªã¿åã $0.0125/M · ãã£ãã·ã¥æžã蟌㿠â/M
ã©ã¡ãã® ID ã䜿ã£ãŠã API ã§ãã®ã¢ãã«ãåŒã³åºããŸãã
google/gemini-3.1-flash-liteONEHOP_KEY ãã¬ãŒã¹ãã«ããŒããèªèº«ã® API Key ã«çœ®ãæããŠãã ããã äœæãã â
from openai import OpenAI
client = OpenAI(
base_url="https://api.onehop.ai/v1",
api_key="<ONEHOP_KEY>",
)
completion = client.chat.completions.create(
model="google/gemini-3.1-flash-lite",
messages=[{"role": "user", "content": "What is the meaning of life?"}],
)
print(completion.choices[0].message.content)éå» 30 æ¥éã§ 456 ä»¶ã®ãªã¯ãšã¹ã