google/gemini-3.8-flash
Gemini 3.8 Flash through OneHop. Supports text generation, streaming and function calling. Billed by input, output and cached tokens. Prices follow the current Google standard tier.
來源:https://ai.google.dev/gemini-api/docs/pricing · 核驗於 2026-10-30
快取讀取 $0.075/M · 快取寫入 —/M
API 呼叫時用任一 ID 都可以。
google/gemini-3.8-flash把 ONEHOP_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.8-flash",
messages=[{"role": "user", "content": "What is the meaning of life?"}],
)
print(completion.choices[0].message.content)