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.
Source : https://ai.google.dev/gemini-api/docs/pricing · Vérifié le 2026-10-30
Lecture cache $0.075/M · Écriture cache —/M
Utilisez l'un ou l'autre des IDs pour appeler ce modèle via l'API.
google/gemini-3.8-flashRemplacez le placeholder ONEHOP_KEY par votre API key. Créer →
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)