Gemini 3.1 Pro

API identifier: gemini-3.1-pro

Prices per 1M tokens

Input tokens
₽16.54
Output tokens
₽66.18

Limits

Context
1M tokens
Max response
66K tokens

Capabilities

Tool calling
Yes
Reasoning level
Yes

Supported parameters

  • max_tokens
  • max_completion_tokens
  • temperature
  • top_p
  • presence_penalty
  • frequency_penalty
  • seed
  • user
  • tools
  • tool_choice
  • parallel_tool_calls
  • reasoning_effort
  • reasoning

Example request

Example calculation

A request with 2,000 input and 500 output tokens costs ₽0.0662.

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.1-pro",
    "max_tokens": 512,
    "messages": [
      {"role": "user", "content": "Explain what an API gateway is in two sentences."}
    ]
  }'