Gemini 3.8 Flash
API identifier: gemini-3.8-flash
Prices per 1M tokens
- Input tokens
- ₽8.272
- Output tokens
- ₽33.09
Limits
- Context
- 1M tokens
- Max response
- 66K tokens
Capabilities
- Tool calling
- Yes
- Reasoning level
- Yes
Supported parameters
max_tokensmax_completion_tokenstemperaturetop_ppresence_penaltyfrequency_penaltyseedusertoolstool_choiceparallel_tool_callsreasoning_effortreasoning
Example request
Example calculation
A request with 2,000 input and 500 output tokens costs ₽0.0331.
Caching not included. The actual cost comes back in the API response in the usage.cost field.
shell
curl https://llm.liho.dev/v1/chat/completions \
-H "Authorization: Bearer $LIHO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-3.8-flash",
"max_tokens": 512,
"messages": [
{"role": "user", "content": "Explain what an API gateway is in two sentences."}
]
}'python
import os
from openai import OpenAI
client = OpenAI(
base_url="https://llm.liho.dev/v1",
api_key=os.environ["LIHO_API_KEY"],
timeout=900,
)
response = client.chat.completions.create(
model="gemini-3.8-flash",
max_tokens=512,
messages=[{"role": "user", "content": "Explain what an API gateway is in two sentences."}],
)
print(response.choices[0].message.content)