Gemini 3.7 Flash

1M context
ПровайдерGoogle

gemini-3-7-flash — текстовая модель-модель от Google.

audio_inputcode_executiondocument_understandingfunction_callingprompt_cachingreasoningstreamingstructured_outputvisionweb_search

Попробуйте прямо здесь

Что умеет Gemini 3.7 Flash

  • Audio Input
  • Code Execution
  • Document Understanding
  • Function Calling
  • Prompt Caching
  • Reasoning
  • Streaming
  • Structured Output
  • Vision
  • Веб-поиск

Стоимость

за 1М cache read
единый
24.94 ₽
за 1М input
единый
249 ₽
за 1М output
единый
1 247 ₽
web_search
единый
4.66 ₽

Цены указаны в рублях и списываются с баланса проекта за успешные запросы. Надбавки (+) суммируются с базовой ставкой.

Технические характеристики

Контекст
1,048,576
токенов
Output
65,536
токенов
Vendor
google
Modality
text

Параметры запроса

Параметры, которые принимает модель. Передаются в теле запроса.

ПараметрТипДиапазон / значенияПо умолчаниюОписание
messagesreq
array
Сообщения в OpenAI-compatible формате; поддерживаются текст и изображения.
max_completion_tokens
integer
min: 1 · max: 65536
8192
Максимум токенов ответа. Нативный generateContent: maxOutputTokens.
stop
array of strings
Стоп-последовательности. Нативный generateContent: stopSequences.
seed
integer
Сид для воспроизводимости.
reasoning_effort
enum
low, medium, high
Глубина рассуждений. Gemini 3.7 Flash не поддерживает none/minimal.
tools
array
OpenAI-compatible function definitions.
tool_choice
string
auto, none, required или выбор функции.
response_format
object
json_object или json_schema.
stream
boolean
false
SSE-стриминг.
stream_options
object
Для финального usage используйте include_usage=true.
extra_body
object
Gemini-only параметры для OpenAI-compatible endpoint.

Пример кода

gemini-3-7-flash_example.py
from openai import OpenAI

client = OpenAI(api_key="rk_live_...", base_url="https://api.ranvik.ru/v1")
resp = client.chat.completions.create(
    model="gemini-3-7-flash",
    messages=[{"role": "user", "content": "Привет!"}],
)
print(resp.choices[0].message.content)

# ── С веб-поиском ──
resp = client.chat.completions.create(
    model="gemini-3-7-flash",
    messages=[{"role": "user", "content": "Что нового в AI сегодня?"}],
    tools=[{"type": "web_search"}],
)
print(resp.choices[0].message.content)
Полная документация модели